AutomationFlowsAI & RAG › The Ultimate Instagram Automation for High-quality Images & Text with Gpt-image

The Ultimate Instagram Automation for High-quality Images & Text with Gpt-image

ByTianyi @muzi on n8n.io

This n8n workflow revolutionizes Instagram content creation by automating everything from idea input to publishing high-quality, AI-generated posts with realistic images or infographics. Whether you're an entrepreneur, a content creator, or a marketer, this workflow lets you…

Cron / scheduled trigger★★★★★ complexityAI-powered46 nodesOpenAI ChatFacebook Graph ApiAgentHTTP Request ToolForm TriggerOutput Parser StructuredGoogle Cloud StorageHTTP Request
AI & RAG Trigger: Cron / scheduled Nodes: 46 Complexity: ★★★★★ AI nodes: yes Added:
The Ultimate Instagram Automation for High-quality Images & Text with Gpt-image — n8n workflow card showing OpenAI Chat, Facebook Graph Api, Agent integration

This workflow corresponds to n8n.io template #3741 — we link there as the canonical source.

This workflow follows the Agent → Facebookgraphapi recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "6J7cS46EIw9z9Q8u",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "The Ultimate Instagram Automation Workflow [GPT-image] Public",
  "tags": [
    {
      "id": "6GZou5jPBu5cwGST",
      "name": "N8N Course",
      "createdAt": "2025-04-04T18:21:22.721Z",
      "updatedAt": "2025-04-04T18:21:22.721Z"
    },
    {
      "id": "Hf04AVlu1zr8nTpB",
      "name": "GPT",
      "createdAt": "2025-04-24T18:16:56.636Z",
      "updatedAt": "2025-04-24T18:16:56.636Z"
    },
    {
      "id": "a6P3MYttG3GVaj88",
      "name": "Instagram",
      "createdAt": "2025-04-24T18:17:04.552Z",
      "updatedAt": "2025-04-24T18:17:04.552Z"
    },
    {
      "id": "dNuSmJmhSOBNp9lV",
      "name": "Social Media",
      "createdAt": "2025-01-26T15:22:52.143Z",
      "updatedAt": "2025-01-26T15:22:52.143Z"
    }
  ],
  "nodes": [
    {
      "id": "b86e2630-5775-4e30-bb14-36541cda7318",
      "name": "Input",
      "type": "n8n-nodes-base.set",
      "position": [
        -2340,
        300
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "c479940e-11cf-4bab-848a-5c3a980e37c7",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1100,
        220
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "defc4865-0de1-4ab4-bcfd-31605a0a2467",
      "name": "Wait1",
      "type": "n8n-nodes-base.wait",
      "position": [
        1160,
        1000
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "e6c0cf4d-302d-48f9-8b29-ad0258633821",
      "name": "CreateContainerImage1",
      "type": "n8n-nodes-base.facebookGraphApi",
      "maxTries": 2,
      "position": [
        1000,
        1000
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1
    },
    {
      "id": "fd5d8728-f414-4941-86ca-4a6e90686f74",
      "name": "PublishImageToIG1",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1320,
        1000
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "24cf08b7-6ced-4a82-be58-027d6600d28e",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2600,
        -240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c8822e37-316b-4941-848b-85eb51c18d2f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3020,
        300
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f4050c46-2e28-4df7-a458-af9bdd0f41fc",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -440,
        -280
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bf0b5fbf-04ee-4efc-aaba-9e251f3ef1fe",
      "name": "Sticky Note14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        -280
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3f106ce4-fad8-47a1-997f-b309c4f47fb7",
      "name": "Sticky Note17",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        -160
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1dec07f7-cecc-48e4-a0f5-6479d67b253e",
      "name": "Sticky Note20",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3040,
        -1000
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d8e90385-d71a-4d9f-8aec-51483aab59de",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "disabled": true,
      "position": [
        -2920,
        120
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "10c0b6c5-bbaa-43be-9251-7028840a5926",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1000,
        -80
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "820d6265-8978-4c7e-8a62-3b4d1fb5ef57",
      "name": "Tavily WebSearch",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -880,
        200
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "e7e5904f-9206-44b6-bdba-577ec22d0deb",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3020,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "745daf41-5566-41b6-b019-5403d1758e9d",
      "name": "On form submission - Post Idea",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -2920,
        420
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "e5497281-f720-4abb-b342-0ac1c0bc12ba",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -660,
        200
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "84405b06-4f3c-4ce3-8ef4-847c601b06ba",
      "name": "Tavily WebSearch1",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -860,
        1160
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "7a3d9b5a-34c3-424a-aad7-76cd3f3f1199",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -700,
        1160
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "94408bc3-568c-4be6-92b7-a4649e1fac84",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1060,
        1180
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "2154513d-86f8-4559-89cc-d7eba40754f4",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        1140,
        -80
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "985978b8-ac18-4ca3-b7cc-8fe7c98b03dc",
      "name": "CreateContainerImage",
      "type": "n8n-nodes-base.facebookGraphApi",
      "maxTries": 2,
      "position": [
        940,
        -80
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1
    },
    {
      "id": "59256ab1-70a9-4487-8656-b442390adf86",
      "name": "PublishImageToIG",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1320,
        -80
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0d5c0a17-90c1-4bad-b301-5c38b47050c2",
      "name": "Sticky Note18",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        -200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "61f43a85-5b70-4cd5-8445-68eb697f9633",
      "name": "Google Cloud Storage1",
      "type": "n8n-nodes-base.googleCloudStorage",
      "maxTries": 2,
      "position": [
        400,
        -80
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1
    },
    {
      "id": "7b9f660d-93f8-419f-b549-cde894dae0cd",
      "name": "AI Agent realistic Image",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -980,
        900
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "a3e57b3f-b9d1-4289-b9a1-aea45c91b5ec",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3040,
        -220
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7fdf0ecd-c31a-471d-b706-1c1484e8bcb7",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1920,
        -240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8b4dc0dc-b4ae-4013-a110-ef25a5fe3e64",
      "name": "Route by Image Style",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1640,
        300
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "a6942d43-c033-4a97-a0af-18f1a1499b97",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1180,
        -320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "12b1cf61-a573-405f-9894-d909dc92031c",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1180,
        660
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "01498a34-d1b8-4584-97da-d85bf031c16a",
      "name": "GPT Image Generation 2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -340,
        1000
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "4ab92f97-fadb-4afb-b371-44641427e05a",
      "name": "GPT Image Generation 1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -340,
        -80
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "73bc14db-d250-49ee-8f5d-c49e90931181",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -960,
        120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "535dde9e-95cd-4d72-a3a6-7b5901437e05",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -940,
        1080
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d4dca5c6-3119-4b1d-9621-4a8a4a8ed101",
      "name": "Convert to Binary File1",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        -20,
        -80
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "5f601327-5b4f-4895-8eaa-66af76589d46",
      "name": "Convert to Binary File2",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        -20,
        1000
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "f19ca930-8fa1-4713-a972-bc8c6f0e3cd6",
      "name": "Sticky Note15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -440,
        820
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3913d6a6-153f-4972-ac18-ce089eca0aa3",
      "name": "Sticky Note19",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        820
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6f3c01f8-8df4-4038-816c-afce62832f3c",
      "name": "SetImageURL1",
      "type": "n8n-nodes-base.set",
      "position": [
        620,
        1000
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "fd9a2116-9917-470a-ab0b-3c1e21b1929e",
      "name": "Google Cloud Storage 2",
      "type": "n8n-nodes-base.googleCloudStorage",
      "maxTries": 2,
      "position": [
        400,
        1000
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1
    },
    {
      "id": "bf1675f3-fca8-47dd-a021-15198135f2a2",
      "name": "SetImageURL2",
      "type": "n8n-nodes-base.set",
      "position": [
        660,
        -80
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "b6ef3156-4554-453a-924f-c21cc753e55c",
      "name": "Sticky Note21",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        900
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ed3c9229-d944-4eab-9c4d-8ef10e70d6e7",
      "name": "Sticky Note22",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        860
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bd5087d0-ea1b-4446-9c73-bde7d88a4006",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1220,
        -420
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ad8d0a9c-2537-4b06-9494-d9300e32ccbf",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1220,
        560
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "timezone": "Europe/London",
    "callerPolicy": "workflowsFromSameOwner",
    "errorWorkflow": "DmAbBBIenIBq7D7F",
    "executionOrder": "v1"
  },
  "versionId": "e91c589e-9b10-4074-a526-34cd962ab1e1",
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "PublishImageToIG",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Input": {
      "main": [
        [
          {
            "node": "Route by Image Style",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "PublishImageToIG1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "GPT Image Generation 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SetImageURL1": {
      "main": [
        [
          {
            "node": "CreateContainerImage1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SetImageURL2": {
      "main": [
        [
          {
            "node": "CreateContainerImage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tavily WebSearch": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent realistic Image",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "PublishImageToIG1": {
      "main": [
        []
      ]
    },
    "Tavily WebSearch1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent realistic Image",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "CreateContainerImage": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Image Style": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent realistic Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "CreateContainerImage1": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Cloud Storage1": {
      "main": [
        [
          {
            "node": "SetImageURL2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT Image Generation 1": {
      "main": [
        [
          {
            "node": "Convert to Binary File1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT Image Generation 2": {
      "main": [
        [
          {
            "node": "Convert to Binary File2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Cloud Storage 2": {
      "main": [
        [
          {
            "node": "SetImageURL1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to Binary File1": {
      "main": [
        [
          {
            "node": "Google Cloud Storage1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to Binary File2": {
      "main": [
        [
          {
            "node": "Google Cloud Storage 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent realistic Image": {
      "main": [
        [
          {
            "node": "GPT Image Generation 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent realistic Image",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "On form submission - Post Idea": {
      "main": [
        [
          {
            "node": "Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This n8n workflow revolutionizes Instagram content creation by automating everything from idea input to publishing high-quality, AI-generated posts with realistic images or infographics. Whether you're an entrepreneur, a content creator, or a marketer, this workflow lets you…

Source: https://n8n.io/workflows/3741/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

This n8n workflow is designed for content creators, digital marketers, and social media managers who want to automate their entire content creation and publishing process across multiple platforms. It

Google Sheets, WordPress, Edit Image +13
AI & RAG

This n8n workflow automates the process of creating and sending high-quality newsletters with images generated by a GPT image generator. It is triggered on a schedule. 1 n8n workflow (json) 1 Setup tu

Output Parser Structured, OpenAI Chat, Google Cloud Storage +5
AI & RAG

This workflow is designed for: Content creators and marketers E-commerce and product-based businesses Agencies producing social media visuals and videos Automation builders looking for AI-powered crea

HTTP Request, Edit Image, Google Drive +7
AI & RAG

🧠 Automate end-to-end SEO blog creation and WordPress publishing using a GPT-5 multi-agent workflow with real-time research, metadata generation, and optional featured images.

Output Parser Structured, HTTP Request, OpenAI +10
AI & RAG

This is an automated blog post generation system that: Researches topics using AI agents and web search tools Writes complete blog posts with proper SEO structure Generates custom images for each post

Output Parser Structured, Google Gemini Chat, HTTP Request Tool +11