8
n8n 中文网amn8n.com

使用Blotato + GPT-4.1自动发布Instagram轮播帖子

高级

这是一个自动化工作流,包含 17 个节点。主要使用 If, Set, Wait, Agent, ScheduleTrigger 等节点。 使用GPT-4.1和Blotato自动创建和发布Instagram轮播

前置要求
  • OpenAI API Key

分类

-
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "OGnTnfFq2fjXQchR",
  "meta": {
    "instanceId": "a287613f1596da776459594685fbf4e2b4a12124f80ab8c8772f5e37bff103ae",
    "templateCredsSetupCompleted": true
  },
  "name": "使用 Blotato + Gpt 4.1 自动发布 Instagram 轮播帖子",
  "tags": [],
  "nodes": [
    {
      "id": "b5cad4b8-c263-4b98-8998-dd2365e2a92f",
      "name": "便签10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2544,
        0
      ],
      "parameters": {
        "color": 3,
        "width": 368,
        "height": 272,
        "content": "# 发布 Instagram"
      },
      "typeVersion": 1
    },
    {
      "id": "5c7e311a-144c-4c28-a710-31f46d99c240",
      "name": "便利贴12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        0
      ],
      "parameters": {
        "color": 3,
        "width": 976,
        "height": 564,
        "content": "# 通过 ChatGPT 和 Blotato 创建 Instagram 轮播"
      },
      "typeVersion": 1
    },
    {
      "id": "544eb9d9-348a-42a8-9b8a-d04849e85802",
      "name": "Instagram [BLOTATO]",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "onError": "continueErrorOutput",
      "maxTries": 2,
      "position": [
        2672,
        80
      ],
      "parameters": {
        "options": {},
        "accountId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "postContentText": "={{ $('AI Agent Carousel Maker').item.json.output.caption }}",
        "postContentMediaUrls": "={{ $('Get carousel').item.json.item.imageUrls.map(url => url) }}\n"
      },
      "credentials": {
        "blotatoApi": {
          "id": "SWAuDTT3KV2SbR1P",
          "name": "temp"
        }
      },
      "retryOnFail": true,
      "typeVersion": 2,
      "waitBetweenTries": 5000
    },
    {
      "id": "caf985d7-e625-4d7d-8849-3f03ca94ab54",
      "name": "获取轮播",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        2160,
        144
      ],
      "parameters": {
        "videoId": "={{ $json.output.id }}",
        "resource": "video",
        "operation": "get"
      },
      "credentials": {
        "blotatoApi": {
          "id": "SWAuDTT3KV2SbR1P",
          "name": "temp"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "033bbb48-1143-4075-ac9f-055a6bea85ef",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        1968,
        160
      ],
      "webhookId": "cc59ec13-c7ae-49b5-b7ad-711079e3121e",
      "parameters": {
        "unit": "minutes",
        "amount": 3
      },
      "typeVersion": 1.1,
      "alwaysOutputData": false
    },
    {
      "id": "748c99be-4b4d-42b8-a05c-1ea933d3eb7b",
      "name": "AI 代理轮播制作器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1248,
        160
      ],
      "parameters": {
        "text": "={{ $json.output }}",
        "options": {
          "systemMessage": "=# TASK\nYou are a direct-response copywriter specialized in short-form content like Alex Hormozi. \nYour task is to create an Instagram carousel that educates and grabs attention fast. \nThe first slide must always be a HOOK short, bold, and curiosity-driven.\nNext slides should deliver valuable insights related to the topic with simple, high-impact language.\nThe final slide should include a short CTA (example: “Follow for more AI automation ideas”).\n\n# STRUCTURE\nYou will output a list of carousel texts (each representing one slide). \nEach slide should have 1–2 short sentences only. DO NOT ADD THE TITLE INSIDE THE CONTENT\n\n# REQUIREMENTS\n– Use strong, emotional, or benefit-driven language.  \n– Avoid generic or vague ideas.  \n– It must be scroll-stopping, controversial, or create “fear of missing out”.  \n– Don’t use quotation marks in your output.\n- Don't add the title inside content\n- Do not include the title or slide numbers inside the content.\n- No Emojis\n\n# STYLE\n- Humanize\n– Write like a founder who’s confident and tactical.\n– Use bold, short, no-fluff lines.\n– Avoid hashtags or emojis unless they add emphasis.\n– Each carousel should feel like “value + punchline”.\n\n# OUTPUT\nYou SHOULD always output the following format, where `id` contains the video id returned by the tool call. Leave `id` as an empty string \"\" if you did not make a carousel:\n\nAlways respond in the following structured JSON:\n{\n\t\"output\": \"Output from AI\",\n        \"caption\": \"Long carousel caption, explain each tools detaily\",\n        \"title\": \"Short carousel title, 8 words max\",\n\t\"id\": \"\"\n}"
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "f602a797-2e83-44ce-b8ea-ec6d76b58ad3",
      "name": "简单推文卡片单色版",
      "type": "@blotato/n8n-nodes-blotato.blotatoTool",
      "position": [
        1440,
        384
      ],
      "parameters": {
        "resource": "video",
        "templateId": {
          "__rl": true,
          "mode": "list",
          "value": "/base/v2/tweet-card/ba413be6-a840-4e60-8fd6-0066d3b427df/v1",
          "cachedResultName": "Twitter/X style quote cards with minimal style"
        },
        "templateInputs": {
          "value": {
            "theme": "dark",
            "handle": "Marth",
            "quotes": "={{ $fromAI('Quotes__e_g____item_1____item_2___', ``, 'string').split(/\\n|\\|/).map(s => s.trim()).filter(Boolean) }}",
            "verified": true,
            "authorName": "Marthe ",
            "aspectRatio": "4:5",
            "profileImage": "https://media.licdn.com/dms/image/v2/D4D03AQG_IUb08UaJxQ/profile-displayphoto-shrink_800_800/B4DZZoORRbGgAg-/0/1745505294351?e=1762992000&v=beta&t=ly4ze3F2Kp2Jewg8zHA9cl-um7bV8TT_GHteCbnpxMw"
          },
          "schema": [
            {
              "id": "quotes",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Quotes (e.g. [\"item 1\", \"item 2\"])",
              "defaultMatch": false,
              "canBeUsedToMatch": false
            },
            {
              "id": "authorName",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Name",
              "defaultMatch": false,
              "canBeUsedToMatch": false
            },
            {
              "id": "handle",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Social Media Handle",
              "defaultMatch": false,
              "canBeUsedToMatch": false
            },
            {
              "id": "profileImage",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Profile Photo URL (publicly accessible URL)",
              "defaultMatch": false,
              "canBeUsedToMatch": false
            },
            {
              "id": "verified",
              "type": "boolean",
              "display": true,
              "required": false,
              "displayName": "Show Verified Badge",
              "defaultMatch": false,
              "canBeUsedToMatch": false
            },
            {
              "id": "theme",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "Dark",
                  "value": "dark"
                },
                {
                  "name": "Light",
                  "value": "light"
                }
              ],
              "removed": false,
              "required": false,
              "displayName": "Theme",
              "defaultMatch": false,
              "canBeUsedToMatch": false
            },
            {
              "id": "aspectRatio",
              "type": "options",
              "display": true,
              "options": [
                {
                  "name": "4:5",
                  "value": "4:5"
                },
                {
                  "name": "1:1",
                  "value": "1:1"
                },
                {
                  "name": "9:16",
                  "value": "9:16"
                }
              ],
              "required": false,
              "displayName": "Aspect Ratio",
              "defaultMatch": false,
              "canBeUsedToMatch": false
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "credentials": {
        "blotatoApi": {
          "id": "SWAuDTT3KV2SbR1P",
          "name": "temp"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "6790044a-6a38-488a-8a08-0d5fb3515115",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1888,
        0
      ],
      "parameters": {
        "color": 3,
        "width": 624,
        "height": 436,
        "content": "# 获取 Instagram 轮播"
      },
      "typeVersion": 1
    },
    {
      "id": "d7e5ff7e-9242-4fe1-86f2-5db8ca102e1c",
      "name": "如果轮播准备就绪",
      "type": "n8n-nodes-base.if",
      "position": [
        2336,
        144
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "loose"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "e511deb8-8e4c-45db-aa35-18f43a0552b6",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $('Get carousel').item.json.item.status }}",
              "rightValue": "done"
            }
          ]
        },
        "looseTypeValidation": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "63f32450-86dd-4f49-992f-b203552b4569",
      "name": "便签13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "color": 5,
        "width": 848,
        "height": 404,
        "content": "# 主题"
      },
      "typeVersion": 1
    },
    {
      "id": "a3a667c4-ec35-4232-8ed4-24e82fd2b329",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1616,
        384
      ],
      "parameters": {
        "jsonSchemaExample": "{\n\t\"output\": \"Output from AI\",\n        \"caption\": \"Long carousel caption, explain each detaily with list format\",\n        \"title\": \"Short carousel title, 8 words max\",\n\t\"id\": \"\"\n}"
      },
      "typeVersion": 1.3
    },
    {
      "id": "286cd2c1-f3c7-40c4-9412-1f55bbd51235",
      "name": "主题",
      "type": "n8n-nodes-base.set",
      "position": [
        320,
        160
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "410749fa-a689-477d-80fd-17891e1e9ba0",
              "name": "topic",
              "type": "string",
              "value": "=Top ai tools for finance"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "0b9baedd-475a-49b7-886f-0894181730e5",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1232,
        384
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "WbMi3ZLLBnECFAAV",
          "name": "temp"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "d421fa21-b1d5-41fb-999c-af943fa5a3f1",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        80,
        160
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "af73bc8b-3dcb-4947-8a5c-7d8574b85d75",
      "name": "主题1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        528,
        160
      ],
      "parameters": {
        "text": "={{ $json.topic }}",
        "options": {
          "systemMessage": "=# ROLE\nYou are a direct-response copywriter who writes viral short hooks for social media carousels, like Alex Hormozi and Dan Koe.\n\n# TASK\nYour job is to generate 1 short, powerful topic idea for an Instagram carousel.  \nIt must sound like a statement or bold claim that immediately grabs attention and curiosity.  \n\n# REQUIREMENTS\n– Maximum 6 words.\n– Use strong, emotional, or benefit-driven language.  \n– Avoid generic or vague ideas.  \n– It must be scroll-stopping, controversial, or create “fear of missing out”.  \n– Don’t use quotation marks in your output.\n\n# EXAMPLES\n\"Top 5 AI to double your sales\",  \n\"Stop hiring customer service, this AI works 10x faster\",  \n\"Why your business will die without automation\",  \n\"How one AI replaces your full marketing team\",  \n\"This workflow saved me 20 hours weekly\"\n\n# OUTPUT\nOnly output the topic line, nothing else.\n"
        },
        "promptType": "define"
      },
      "typeVersion": 2.2
    },
    {
      "id": "fbf7238e-94c4-44f3-aa43-2a921f613514",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1888,
        624
      ],
      "parameters": {
        "width": 1232,
        "height": 800,
        "content": "@[youtube](5P_4QnRLYEQ)"
      },
      "typeVersion": 1
    },
    {
      "id": "d480621a-1eb4-4fdf-99a9-7da2eb2bfc22",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        624
      ],
      "parameters": {
        "color": 4,
        "width": 1824,
        "height": 1536,
        "content": "# n8n 工作流说明:自动发布 Instagram 轮播帖子(Blotato + GPT-4.1)"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1c1edaf6-8732-495e-bdae-68ac6ffc5062",
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Get carousel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Topic": {
      "main": [
        [
          {
            "node": "Topic1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Topic1": {
      "main": [
        [
          {
            "node": "AI Agent Carousel Maker",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get carousel": {
      "main": [
        [
          {
            "node": "If carousel ready",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Topic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If carousel ready": {
      "main": [
        [
          {
            "node": "Instagram [BLOTATO]",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent Carousel Maker",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Topic1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent Carousel Maker": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent Carousel Maker",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Simple tweet cards monocolor": {
      "ai_tool": [
        [
          {
            "node": "AI Agent Carousel Maker",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级

需要付费吗?

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

工作流信息
难度等级
高级
节点数量17
分类-
节点类型10
难度说明

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

作者
Marth

Marth

@marth

Simplifying Business with Smart Automation. I create and share user-friendly, highly efficient n8n workflow templates for SMEs, focusing on digital marketing, sales, and operational excellence. Get ready to automate, innovate, and elevate your business. Connect me on Linkedin for custom solutions.

外部链接
在 n8n.io 查看

分享此工作流