8
n8n 中文网amn8n.com

终极 Instagram 自动化工作流 [GPT 图像] 公开版

高级

这是一个Design, AI, Marketing领域的自动化工作流,包含 46 个节点。主要使用 Set, Wait, Switch, FormTrigger, HttpRequest 等节点,结合人工智能技术实现智能自动化。 使用 GPT-Image 实现高质量图像和文本的终极 Instagram 自动化

前置要求
  • 可能需要目标 API 的认证凭证
  • Facebook Graph API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "6J7cS46EIw9z9Q8u",
  "meta": {
    "instanceId": "f638a47e4e563f91fde8b98ed9f5fa6a9faa41a207143e9ce05d85200c905524",
    "templateCredsSetupCompleted": true
  },
  "name": "终极Instagram自动化工作流[GPT图像]公开版",
  "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": "输入",
      "type": "n8n-nodes-base.set",
      "position": [
        -2340,
        300
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "c479940e-11cf-4bab-848a-5c3a980e37c7",
      "name": "OpenAI 聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1100,
        220
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "defc4865-0de1-4ab4-bcfd-31605a0a2467",
      "name": "等待1",
      "type": "n8n-nodes-base.wait",
      "position": [
        1160,
        1000
      ],
      "webhookId": "3c6b3aac-bc5c-4f1f-a01a-38b376f839f8",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "e6c0cf4d-302d-48f9-8b29-ad0258633821",
      "name": "创建容器镜像1",
      "type": "n8n-nodes-base.facebookGraphApi",
      "maxTries": 2,
      "position": [
        1000,
        1000
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1
    },
    {
      "id": "fd5d8728-f414-4941-86ca-4a6e90686f74",
      "name": "发布图片到IG1",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1320,
        1000
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "24cf08b7-6ced-4a82-be58-027d6600d28e",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2600,
        -240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c8822e37-316b-4941-848b-85eb51c18d2f",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3020,
        300
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f4050c46-2e28-4df7-a458-af9bdd0f41fc",
      "name": "便签13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -440,
        -280
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bf0b5fbf-04ee-4efc-aaba-9e251f3ef1fe",
      "name": "便签14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        -280
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3f106ce4-fad8-47a1-997f-b309c4f47fb7",
      "name": "便签17",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        -160
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1dec07f7-cecc-48e4-a0f5-6479d67b253e",
      "name": "便签20",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3040,
        -1000
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d8e90385-d71a-4d9f-8aec-51483aab59de",
      "name": "定时触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "disabled": true,
      "position": [
        -2920,
        120
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "10c0b6c5-bbaa-43be-9251-7028840a5926",
      "name": "AI 代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1000,
        -80
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "820d6265-8978-4c7e-8a62-3b4d1fb5ef57",
      "name": "Tavily网络搜索",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -880,
        200
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "e7e5904f-9206-44b6-bdba-577ec22d0deb",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3020,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "745daf41-5566-41b6-b019-5403d1758e9d",
      "name": "表单提交时 - 发布想法",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -2920,
        420
      ],
      "webhookId": "4a9ffbef-3bf4-4882-b26e-91de76f1a9d8",
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "e5497281-f720-4abb-b342-0ac1c0bc12ba",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -660,
        200
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "84405b06-4f3c-4ce3-8ef4-847c601b06ba",
      "name": "Tavily网络搜索1",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -860,
        1160
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "7a3d9b5a-34c3-424a-aad7-76cd3f3f1199",
      "name": "结构化输出解析器1",
      "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": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        1140,
        -80
      ],
      "webhookId": "fb7bd9e1-c621-4fdf-8af6-79ae9f240875",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "985978b8-ac18-4ca3-b7cc-8fe7c98b03dc",
      "name": "创建容器镜像",
      "type": "n8n-nodes-base.facebookGraphApi",
      "maxTries": 2,
      "position": [
        940,
        -80
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1
    },
    {
      "id": "59256ab1-70a9-4487-8656-b442390adf86",
      "name": "发布图片到IG",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1320,
        -80
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0d5c0a17-90c1-4bad-b301-5c38b47050c2",
      "name": "便签18",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        -200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "61f43a85-5b70-4cd5-8445-68eb697f9633",
      "name": "Google云存储1",
      "type": "n8n-nodes-base.googleCloudStorage",
      "maxTries": 2,
      "position": [
        400,
        -80
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1
    },
    {
      "id": "7b9f660d-93f8-419f-b549-cde894dae0cd",
      "name": "AI代理真实感图像",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -980,
        900
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "a3e57b3f-b9d1-4289-b9a1-aea45c91b5ec",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3040,
        -220
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7fdf0ecd-c31a-471d-b706-1c1484e8bcb7",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1920,
        -240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8b4dc0dc-b4ae-4013-a110-ef25a5fe3e64",
      "name": "按图像风格路由",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1640,
        300
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "a6942d43-c033-4a97-a0af-18f1a1499b97",
      "name": "### 替换 Airtable 连接",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1180,
        -320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "12b1cf61-a573-405f-9894-d909dc92031c",
      "name": "便签10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1180,
        660
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "01498a34-d1b8-4584-97da-d85bf031c16a",
      "name": "GPT图像生成2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -340,
        1000
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "4ab92f97-fadb-4afb-b371-44641427e05a",
      "name": "GPT图像生成1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -340,
        -80
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "73bc14db-d250-49ee-8f5d-c49e90931181",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -960,
        120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "535dde9e-95cd-4d72-a3a6-7b5901437e05",
      "name": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -940,
        1080
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d4dca5c6-3119-4b1d-9621-4a8a4a8ed101",
      "name": "转换为二进制文件1",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        -20,
        -80
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "5f601327-5b4f-4895-8eaa-66af76589d46",
      "name": "转换为二进制文件2",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        -20,
        1000
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "f19ca930-8fa1-4713-a972-bc8c6f0e3cd6",
      "name": "便签15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -440,
        820
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3913d6a6-153f-4972-ac18-ce089eca0aa3",
      "name": "便签19",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        820
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6f3c01f8-8df4-4038-816c-afce62832f3c",
      "name": "设置图片URL1",
      "type": "n8n-nodes-base.set",
      "position": [
        620,
        1000
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "fd9a2116-9917-470a-ab0b-3c1e21b1929e",
      "name": "Google云存储2",
      "type": "n8n-nodes-base.googleCloudStorage",
      "maxTries": 2,
      "position": [
        400,
        1000
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1
    },
    {
      "id": "bf1675f3-fca8-47dd-a021-15198135f2a2",
      "name": "设置图片URL2",
      "type": "n8n-nodes-base.set",
      "position": [
        660,
        -80
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "b6ef3156-4554-453a-924f-c21cc753e55c",
      "name": "便签21",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        900
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ed3c9229-d944-4eab-9c4d-8ef10e70d6e7",
      "name": "便签22",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        860
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bd5087d0-ea1b-4446-9c73-bde7d88a4006",
      "name": "便签 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1220,
        -420
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ad8d0a9c-2537-4b06-9494-d9300e32ccbf",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1220,
        560
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "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
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 设计, 人工智能, 营销

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量46
分类3
节点类型14
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
Tianyi

Tianyi

@muzi

Ph.D. in Machine Learning from the University of Toulouse. Experienced automation consultant specializing in optimizing workflows for Content creation and Marketing teams.

外部链接
在 n8n.io 查看

分享此工作流