{
  "name": "Create AI-driven social media posts and publish to all major platforms",
  "nodes": [
    {
      "id": "e5bf2846-7844-4c8b-882b-160230af6a1a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1296,
        1088
      ],
      "parameters": {
        "width": 1740,
        "height": 1204,
        "content": "# Flow 3+4: Auto-Posting & Repurposing"
      }
    },
    {
      "id": "e9dd0feb-8b59-48b5-bcd6-1d08ed6fde96",
      "name": "X",
      "type": "n8n-nodes-base.twitter",
      "position": [
        128,
        1104
      ]
    },
    {
      "id": "33a50993-9d8c-4ec5-815d-9e95ad78ffc0",
      "name": "Facebook",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        128,
        1760
      ]
    },
    {
      "id": "c20a32c7-868d-47ac-8cd4-8b0e8946bf9b",
      "name": "LinkedIn",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        128,
        1536
      ]
    },
    {
      "id": "31f48749-de65-4fd8-a595-b648782e5732",
      "name": "Threads",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        128,
        1296
      ]
    },
    {
      "id": "6abce79d-ca66-4cf2-bb7b-d468af2f929b",
      "name": "Writing Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        656,
        608
      ]
    },
    {
      "id": "ed865cd6-1571-455b-88d3-7da479f9dd6e",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1312,
        464
      ],
      "parameters": {
        "width": 3160,
        "height": 468,
        "content": "# Flow 1+2: Research & Recreating"
      }
    },
    {
      "id": "1dc11fbb-8386-4481-9999-ba58d9dfc2e5",
      "name": "Scrape Tweets",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        -720,
        608
      ]
    },
    {
      "id": "23f3a44c-3029-48e5-ac1f-b1188c96a719",
      "name": "Analysis Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        240,
        608
      ]
    },
    {
      "id": "39d5493a-5f8b-4a69-b249-e2e8433a959e",
      "name": "Get Username",
      "type": "n8n-nodes-base.airtable",
      "position": [
        -992,
        608
      ]
    },
    {
      "id": "e358d1f2-ab6a-48d7-956e-e259003bfdd4",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        0,
        608
      ]
    },
    {
      "id": "a47189dc-b92f-420b-b7aa-e362ab6c02a0",
      "name": "Sort by Views",
      "type": "n8n-nodes-base.sort",
      "position": [
        -224,
        608
      ]
    },
    {
      "id": "360ab0c1-d64b-4fb0-95a3-6f2bb979e687",
      "name": "Filter",
      "type": "n8n-nodes-base.filter",
      "position": [
        -464,
        608
      ]
    },
    {
      "id": "baeeb513-58ff-4382-8d25-2526d5b0adac",
      "name": "Scraped?",
      "type": "n8n-nodes-base.airtable",
      "position": [
        1664,
        608
      ]
    },
    {
      "id": "07c03044-076f-404b-ac94-6edebf1cb64e",
      "name": "Create records",
      "type": "n8n-nodes-base.airtable",
      "position": [
        1440,
        608
      ]
    },
    {
      "id": "2c7a74f4-be2a-4940-9e6e-e4e43f1a1e2f",
      "name": "Approved Trigger",
      "type": "n8n-nodes-base.airtableTrigger",
      "position": [
        -1232,
        1664
      ]
    },
    {
      "id": "79c6b2b4-2303-4f1d-97af-2f01cfa3bcbe",
      "name": "Mark as Posted",
      "type": "n8n-nodes-base.airtable",
      "position": [
        128,
        2144
      ]
    },
    {
      "id": "602c26fe-20b9-4953-b513-012b776f317e",
      "name": "Instagram",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        128,
        1968
      ]
    },
    {
      "id": "00088dc1-dd79-4260-b163-85398939a136",
      "name": "Generate an image",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -800,
        1664
      ]
    },
    {
      "id": "415e9735-8527-48ad-849b-66173d4c9aaa",
      "name": "Caption Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1072,
        608
      ]
    },
    {
      "id": "c81b787a-2d06-417f-8c56-abc5e896298f",
      "name": "Upload Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -544,
        1776
      ]
    },
    {
      "id": "bb58d070-1335-4408-97d7-284bfdff6a6a",
      "name": "Wait 5s",
      "type": "n8n-nodes-base.wait",
      "position": [
        -48,
        1296
      ]
    },
    {
      "id": "ef49b2eb-c542-40d7-9e35-1173dd8afb15",
      "name": "Threads Container",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -224,
        1296
      ]
    },
    {
      "id": "ebd354d7-a628-47d5-9e2e-163dbd0cc70e",
      "name": "Wait 5 sec",
      "type": "n8n-nodes-base.wait",
      "position": [
        -48,
        1968
      ]
    },
    {
      "id": "3e751cbd-2b85-47ed-bf46-1dd4566aaa34",
      "name": "Instagram Container",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        -224,
        1968
      ]
    },
    {
      "id": "4d9ae902-37f4-4d6a-a947-da4a8928f982",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1248,
        608
      ]
    },
    {
      "id": "18a22468-6fe3-41c3-893c-0329ed75fbca",
      "name": "Gemini 3 Flash",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        160,
        816
      ]
    },
    {
      "id": "83a68f0e-12e2-44b3-99ae-5517fbfdce0a",
      "name": "GPT 5.2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        864,
        816
      ]
    },
    {
      "id": "284453f7-4240-4521-a270-f238382a9f87",
      "name": "Wait 5sec",
      "type": "n8n-nodes-base.wait",
      "position": [
        -400,
        1888
      ]
    },
    {
      "id": "5fbe259d-6817-4562-bcbb-7eb21606550c",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2432,
        704
      ],
      "parameters": {
        "width": 976,
        "height": 1264,
        "content": "# Social Media Post Automation for Content Creators\nThis n8n template is a complete, two-part social media engine: it automates competitor/inspiration research, uses AI to recreate viral formats for y"
      }
    },
    {
      "id": "d8577aad-e76f-4775-849a-1e98b76626e6",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1008,
        192
      ],
      "parameters": {
        "width": 448,
        "height": 240,
        "content": "### 1. Research & Scrape Top Content\n\nA Schedule Trigger runs daily to find inspiration.\n\nEach run:\n\n* Pulls a target username from Airtable\n* Uses Apify to scrape their recent posts\n* Filters out jun"
      }
    },
    {
      "id": "43eb49a9-1b0f-4b8d-a7c5-753eb7e7525e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        256,
        192
      ],
      "parameters": {
        "width": 624,
        "height": 240,
        "content": "### 2. AI Analysis & Rewriting\n\nThe top-performing post is sent through three AI agents:\n\n* **Analysis Agent (Gemini):** Breaks down the psychology and structure of the post.\n* **Writing Agent (GPT):*"
      }
    },
    {
      "id": "46f76efa-7222-4cb8-a771-0e7de149f773",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1392,
        192
      ],
      "parameters": {
        "width": 448,
        "height": 240,
        "content": "### 3. Save Drafts for Approval\n\nThe generated content isn't posted immediately.\n\nInstead:\n\n* The original post, AI analysis, new short post, and new caption are saved as a new row in Airtable.\n* The "
      }
    },
    {
      "id": "edb041dd-d40d-4f98-88aa-6ea2de2544a0",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1200,
        1856
      ],
      "parameters": {
        "width": 448,
        "height": 240,
        "content": "### 4. Approval Trigger & Image Generation\n\nThe publishing sequence is completely controlled by you.\n\n* An Airtable trigger listens for any record where **Status = Approved**.\n* Once triggered, an Ope"
      }
    },
    {
      "id": "7c85b19b-d874-42ff-9bf4-d651a9d8d908",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        1120
      ],
      "parameters": {
        "width": 454,
        "height": 192,
        "content": "### 5. Publish Text to X and Threads\n\nYour short-form post is sent to text-first platforms:\n\n* X (Twitter) via the native node\n* Threads via an HTTP request (using n8n's secure credential manager)"
      }
    },
    {
      "id": "3f90b377-9b3c-4fc4-9a88-ce769222f54a",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        1648
      ],
      "parameters": {
        "width": 358,
        "height": 304,
        "content": "### 6. Publish Visuals to LinkedIn, Facebook & Instagram\nThe hosted AI image + your long-form caption are posted to:\n\n* LinkedIn\n* Facebook\n* Instagram (using a container + publish sequence via Facebo"
      }
    }
  ],
  "connections": {
    "X": {
      "main": [
        []
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "Analysis Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter": {
      "main": [
        [
          {
            "node": "Sort by Views",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT 5.2": {
      "ai_languageModel": [
        [
          {
            "node": "Writing Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Caption Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Threads": {
      "main": [
        []
      ]
    },
    "Wait 5s": {
      "main": [
        [
          {
            "node": "Threads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Facebook": {
      "main": [
        []
      ]
    },
    "LinkedIn": {
      "main": [
        []
      ]
    },
    "Wait 5sec": {
      "main": [
        [
          {
            "node": "Instagram Container",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 5 sec": {
      "main": [
        [
          {
            "node": "Instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Username": {
      "main": [
        [
          {
            "node": "Scrape Tweets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Image": {
      "main": [
        [
          {
            "node": "Wait 5sec",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Caption Agent": {
      "main": [
        [
          {
            "node": "Create records",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Tweets": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sort by Views": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Writing Agent": {
      "main": [
        [
          {
            "node": "Caption Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analysis Agent": {
      "main": [
        [
          {
            "node": "Writing Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create records": {
      "main": [
        [
          {
            "node": "Scraped?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini 3 Flash": {
      "ai_languageModel": [
        [
          {
            "node": "Analysis Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Mark as Posted": {
      "main": [
        []
      ]
    },
    "Approved Trigger": {
      "main": [
        [
          {
            "node": "X",
            "type": "main",
            "index": 0
          },
          {
            "node": "Mark as Posted",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate an image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Username",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate an image": {
      "main": [
        [
          {
            "node": "Facebook",
            "type": "main",
            "index": 0
          },
          {
            "node": "LinkedIn",
            "type": "main",
            "index": 0
          },
          {
            "node": "Upload Image",
            "type": "main",
            "index": 0
          },
          {
            "node": "Threads Container",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Threads Container": {
      "main": [
        [
          {
            "node": "Wait 5s",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Instagram Container": {
      "main": [
        [
          {
            "node": "Wait 5 sec",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}