{
  "name": "Praxica LinkedIn Ghostwriter",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 9 * * *"
            }
          ]
        }
      },
      "id": "1",
      "name": "Daily at 9AM",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.1,
      "position": [400, 400]
    },
    {
      "parameters": {
        "url": "https://techcrunch.com/category/artificial-intelligence/feed/"
      },
      "id": "2",
      "name": "Get Niche News",
      "type": "n8n-nodes-base.rssFeedRead",
      "typeVersion": 1,
      "position": [600, 400]
    },
    {
      "parameters": {
        "operation": "list",
        "base": "your_airtable_base_id",
        "table": "StyleGuide"
      },
      "id": "3",
      "name": "Fetch Style Guide",
      "type": "n8n-nodes-base.airtable",
      "typeVersion": 1,
      "position": [600, 600]
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "Analyze this news: {{ $node[\"Get Niche News\"].json[\"title\"] }}. \n\nContext: {{ $node[\"Get Niche News\"].json[\"content\"] }}\n\nReference my past posts for style: {{ $node[\"Fetch Style Guide\"].json[\"PostContent\"] }}\n\nTask: Write a viral LinkedIn post about this news in my specific voice. Start with a strong hook, use short sentences, and end with a question.",
        "options": {
          "systemMessage": "You are an elite ghostwriter for a high-performance founder. Your goal is to write insightful, non-cringey LinkedIn content."
        }
      },
      "id": "4",
      "name": "AI Ghostwriter",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1,
      "position": [850, 500]
    },
    {
      "parameters": {
        "operation": "append",
        "base": "your_airtable_base_id",
        "table": "Drafts",
        "columns": {
          "mappingMode": "defineEverything",
          "value": {
            "Topic": "={{ $node[\"Get Niche News\"].json[\"title\"] }}",
            "Content": "={{ $json[\"output\"] }}",
            "Status": "To Review"
          }
        }
      },
      "id": "5",
      "name": "Save to Queue",
      "type": "n8n-nodes-base.airtable",
      "typeVersion": 1,
      "position": [1100, 500]
    },
    {
      "parameters": {
        "channel": "general",
        "text": "🚀 *New LinkedIn Draft Ready!*\n\n*Topic:* {{ $node[\"Get Niche News\"].json[\"title\"] }}\n\nReview it here: https://airtable.com/your_table_link"
      },
      "id": "6",
      "name": "Slack Notification",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2,
      "position": [1300, 500]
    }
  ],
  "connections": {
    "Daily at 9AM": {
      "main": [
        [
          {
            "node": "Get Niche News",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Niche News": {
      "main": [
        [
          {
            "node": "Fetch Style Guide",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Style Guide": {
      "main": [
        [
          {
            "node": "AI Ghostwriter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Ghostwriter": {
      "main": [
        [
          {
            "node": "Save to Queue",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save to Queue": {
      "main": [
        [
          {
            "node": "Slack Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
