{
  "name": "Cross-post social content from Google Sheets to 5 platforms with OpenAI images",
  "nodes": [
    {
      "id": "f3f5e54a-b91e-4a25-81a7-b4066053212d",
      "name": "Get Content",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -336,
        576
      ]
    },
    {
      "id": "1f4b46df-2a61-4494-bd32-f4389cae3ddf",
      "name": "Image Prompt Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        48,
        576
      ]
    },
    {
      "id": "a9181bdb-c186-469f-bad3-f86642576eae",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        48,
        800
      ],
      "parameters": {
        "width": 460,
        "height": 228,
        "content": "## 3. AI Image Generation\n\nYour post is analyzed by an AI agent that creates a visual prompt.\n\nThen:\n* GPT-Image generates a matching graphic  \n* The image is uploaded to ImgBB  \n* A shareable image U"
      }
    },
    {
      "id": "7f47c4eb-137d-44ea-8793-d0a9b1c918c2",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        -224
      ],
      "parameters": {
        "width": 400,
        "height": 212,
        "content": "## 2. Publish Text to X and Threads\n\nYour post text is sent directly to:\n* X (Twitter)\n* Threads  \n\nNo images are required for this part — it’s pure text posting.\n"
      }
    },
    {
      "id": "70096271-6ce2-48cb-af43-85054408c108",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -656,
        304
      ],
      "parameters": {
        "width": 440,
        "height": 244,
        "content": "## 1. Trigger + Get Content\n\nA Schedule Trigger runs the workflow at set times.\n\nEach run:\n* Looks at your Google Sheet  \n* Finds one row where **Status = Ready To Post**  \n* Sends that post into the "
      }
    },
    {
      "id": "8c11be2a-fbc7-49fd-be36-bf09b22f85a5",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        672,
        928
      ],
      "parameters": {
        "width": 406,
        "height": 228,
        "content": "## 4. Publish Image Posts\n\nThe hosted AI image + your caption are posted to:\n* LinkedIn  \n* Facebook  \n* Instagram  \n\nEach platform receives the same message with the same custom visual."
      }
    },
    {
      "id": "f2c87ac1-eae7-4f49-af0a-d90f3854dcc5",
      "name": "X",
      "type": "n8n-nodes-base.twitter",
      "position": [
        976,
        16
      ]
    },
    {
      "id": "73973a2d-077c-4644-9912-33d4e762f1e1",
      "name": "Instagram",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        976,
        752
      ]
    },
    {
      "id": "7b8ab850-288f-45a9-8192-5babf903ea0b",
      "name": "Facebook",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        976,
        576
      ]
    },
    {
      "id": "b9397dd6-35a8-4d2b-b946-5c1a10e73b27",
      "name": "Instagram Image",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        784,
        736
      ]
    },
    {
      "id": "432dd904-63e9-4d2c-b397-7e4be6763603",
      "name": "ImgBB",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        608,
        656
      ]
    },
    {
      "id": "dc9fd802-bbe1-4630-8667-1680a885372d",
      "name": "LinkedIn",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        976,
        416
      ]
    },
    {
      "id": "6e0d373f-062d-4ad2-87a2-ffff5888c8fe",
      "name": "Create Threads",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        784,
        176
      ]
    },
    {
      "id": "5fbac1ca-ff04-4638-969b-4fd787a26275",
      "name": "Threads",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        976,
        176
      ]
    },
    {
      "id": "a1e2784e-5a5e-4a0f-8085-0220dfb178f0",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -656,
        576
      ]
    },
    {
      "id": "56cc7d40-481b-47f8-ad9b-b7fd80fbbeda",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1392,
        512
      ],
      "parameters": {
        "width": 464,
        "height": 240,
        "content": "## 5. Update Google Sheet\n\nIf everything works:\nStatus → Posted  \n\nIf anything fails:\nStatus → Errored  \n\nThis makes it easy to track what went live and what needs fixing."
      }
    },
    {
      "id": "6373518c-5d60-4247-a781-d0656d2c5ea1",
      "name": "Error",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1296,
        800
      ]
    },
    {
      "id": "0fcb568e-b632-4d88-8650-80e1ea6c36dc",
      "name": "Done",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1296,
        352
      ]
    },
    {
      "id": "393ba727-d6c0-4985-80cb-c6c931b61f02",
      "name": "Generate an image",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        400,
        576
      ]
    },
    {
      "id": "3badd741-21f1-4890-8287-4d61bef2bbe9",
      "name": "OpenRouter Gemini 2.5 Flash",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -96,
        784
      ]
    },
    {
      "id": "d1302b30-d0a8-4270-90b7-76e9eeb19bb2",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1648,
        80
      ],
      "parameters": {
        "width": 816,
        "height": 1072,
        "content": "## Auto Cross-Posting with AI Images\n\n### This n8n template shows how to fully automate your social media workflow from Google Sheets to X, Threads, LinkedIn, Facebook, and Instagram — with AI-generat"
      }
    }
  ],
  "connections": {
    "ImgBB": {
      "main": [
        [
          {
            "node": "Instagram Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Content": {
      "main": [
        [
          {
            "node": "Image Prompt Agent",
            "type": "main",
            "index": 0
          },
          {
            "node": "Error",
            "type": "main",
            "index": 0
          },
          {
            "node": "Done",
            "type": "main",
            "index": 0
          },
          {
            "node": "X",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create Threads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Threads": {
      "main": [
        [
          {
            "node": "Threads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Instagram Image": {
      "main": [
        [
          {
            "node": "Instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate an image": {
      "main": [
        [
          {
            "node": "ImgBB",
            "type": "main",
            "index": 0
          },
          {
            "node": "LinkedIn",
            "type": "main",
            "index": 0
          },
          {
            "node": "Facebook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Prompt Agent": {
      "main": [
        [
          {
            "node": "Generate an image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Gemini 2.5 Flash": {
      "ai_languageModel": [
        [
          {
            "node": "Image Prompt Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}