8
n8n 中文网amn8n.com

使用OpenAI gpt-image-1和AI字幕创建并发布Instagram轮播图

高级

这是一个Multimodal AI领域的自动化工作流,包含 32 个节点。主要使用 If, Set, Code, Wait, SplitOut 等节点。 从Google Sheets使用GPT-Image-1和AI字幕自动生成Instagram轮播图

前置要求
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "qh5hZfyvDNG0QYai",
  "meta": {
    "instanceId": "6bad1eba185697a960de5bc9203d6bff2fd56440a0b5303c382e0b1537a2a568",
    "templateId": "4028",
    "templateCredsSetupCompleted": true
  },
  "name": "使用OpenAI gpt-image-1和AI字幕创建并发布Instagram轮播图",
  "tags": [],
  "nodes": [
    {
      "id": "04e5caba-3ecc-4539-8062-9dd7689c944c",
      "name": "基础LLM链",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        272,
        -160
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "2a400720-e19f-4e57-8174-f6e704dbbed2",
      "name": "项目列表输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserItemList",
      "position": [
        400,
        32
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f9a611ed-705d-4a06-96d0-c9cb18a32961",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        240,
        32
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "6d7f5f7d-cced-4938-96d2-2d5a84b56e30",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        624,
        -128
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "a1e10f52-8a0c-405b-bbe6-b756e5281d85",
      "name": "OpenAI - 生成图像",
      "type": "n8n-nodes-base.httpRequest",
      "maxTries": 2,
      "position": [
        944,
        112
      ],
      "parameters": {},
      "notesInFlow": false,
      "retryOnFail": true,
      "typeVersion": 4.2
    },
    {
      "id": "65d10c85-ffe4-4ab6-93cf-862fa4163514",
      "name": "分离图像输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1168,
        112
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a86f4c5f-6963-450b-b31b-f570dace824d",
      "name": "转换为文件",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        1360,
        112
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "a685d9a7-c812-484c-9233-7b328545d99e",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        1920,
        112
      ],
      "webhookId": "f5b7240c-17ac-4166-b39d-aab2a29795af",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "c3c00221-07dc-4b86-a54f-ff8b2bd04238",
      "name": "Cloudinary",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1568,
        112
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "98e6bf4a-7fd2-4d26-81ec-6f28111f1829",
      "name": "URL",
      "type": "n8n-nodes-base.set",
      "position": [
        1744,
        112
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "0d135ef8-c8f4-49f0-9186-a741a09b2bbe",
      "name": "如果",
      "type": "n8n-nodes-base.if",
      "position": [
        -288,
        -144
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "f304e736-2a74-46a9-9db1-538ad6cd2439",
      "name": "由 Github 模型提供支持",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -640,
        -144
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "b019477a-8f5a-4b8c-a581-842713b8c8de",
      "name": "已完成",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1744,
        -320
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "bca24a8e-00bd-4ecd-8efd-6f1bd8bf6245",
      "name": "下一个待处理",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1952,
        -320
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "0ed677b7-4118-459a-922f-ef365b578727",
      "name": "获取待处理",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -448,
        -144
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "fdbb6b9b-342f-4035-bbea-10545048cb73",
      "name": "IG图像ID",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        800,
        -320
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6bf67b5b-a7ef-450b-8466-89f230482638",
      "name": "IG媒体轮播",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1216,
        -320
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "7ee3138b-1dc8-4336-907b-ae86e0c920fc",
      "name": "IG发布媒体",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        1520,
        -320
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "d4a60d34-b6bd-4c72-b847-c975a4b71726",
      "name": "图像ID数组",
      "type": "n8n-nodes-base.code",
      "position": [
        1024,
        -320
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "d704a8e3-b2f6-44df-9087-1f1467f815a9",
      "name": "ig用户ID",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        192,
        464
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "d122046b-8334-41e7-aed9-f8aecb28a23e",
      "name": "IG用户ID",
      "type": "n8n-nodes-base.set",
      "position": [
        384,
        464
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "a5e53c61-3a9c-46e3-9971-81374fe2cf45",
      "name": "Facebook页面",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -16,
        464
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "76643fcd-5362-4f17-b9b7-9f3bfc99be9e",
      "name": "设置说明",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -480
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "163a62cf-2081-4df0-b2b5-d3b94102a9f8",
      "name": "设置说明1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -384
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ff9f313b-ecb8-4ff0-b4b6-7bc71c924430",
      "name": "设置说明2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        -640
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ad627edc-378c-4849-89d8-9b77a68cbf54",
      "name": "设置说明3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1200,
        -640
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ee269d83-2f01-498b-98b1-46639f8015f6",
      "name": "设置说明4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1664,
        -640
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "abff7da3-e605-4959-aef0-42d5dacc771b",
      "name": "设置说明5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9a94d62e-7bbb-4b21-9ec0-c212d3c66477",
      "name": "设置说明6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        -96
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ac930dd9-c7a3-4b22-9618-2502106fe913",
      "name": "设置说明7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1520,
        -576
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3cfb46e8-4581-46dc-a207-2ff6f2cff82a",
      "name": "等待1",
      "type": "n8n-nodes-base.wait",
      "position": [
        1360,
        -320
      ],
      "webhookId": "09dcb65d-9cf0-4891-8cbb-2c951a45522e",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "2089e370-9f98-4f27-80bf-5172df529d37",
      "name": "为Instagram生成描述",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -64,
        -160
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1.4,
      "waitBetweenTries": 5000
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "timezone": "America/Argentina/Buenos_Aires",
    "callerPolicy": "workflowsFromSameOwner",
    "executionOrder": "v1",
    "saveExecutionProgress": true
  },
  "versionId": "a188baf3-fef0-4dbc-882f-28ebdb12e1ef",
  "connections": {
    "0d135ef8-c8f4-49f0-9186-a741a09b2bbe": {
      "main": [
        [
          {
            "node": "2089e370-9f98-4f27-80bf-5172df529d37",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "98e6bf4a-7fd2-4d26-81ec-6f28111f1829": {
      "main": [
        [
          {
            "node": "a685d9a7-c812-484c-9233-7b328545d99e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a685d9a7-c812-484c-9233-7b328545d99e": {
      "main": [
        [
          {
            "node": "6d7f5f7d-cced-4938-96d2-2d5a84b56e30",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3cfb46e8-4581-46dc-a207-2ff6f2cff82a": {
      "main": [
        [
          {
            "node": "7ee3138b-1dc8-4336-907b-ae86e0c920fc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b019477a-8f5a-4b8c-a581-842713b8c8de": {
      "main": [
        [
          {
            "node": "bca24a8e-00bd-4ecd-8efd-6f1bd8bf6245",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c3c00221-07dc-4b86-a54f-ff8b2bd04238": {
      "main": [
        [
          {
            "node": "98e6bf4a-7fd2-4d26-81ec-6f28111f1829",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "d704a8e3-b2f6-44df-9087-1f1467f815a9": {
      "main": [
        [
          {
            "node": "d122046b-8334-41e7-aed9-f8aecb28a23e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0ed677b7-4118-459a-922f-ef365b578727": {
      "main": [
        [
          {
            "node": "0d135ef8-c8f4-49f0-9186-a741a09b2bbe",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fdbb6b9b-342f-4035-bbea-10545048cb73": {
      "main": [
        [
          {
            "node": "d4a60d34-b6bd-4c72-b847-c975a4b71726",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7ee3138b-1dc8-4336-907b-ae86e0c920fc": {
      "main": [
        [
          {
            "node": "b019477a-8f5a-4b8c-a581-842713b8c8de",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a5e53c61-3a9c-46e3-9971-81374fe2cf45": {
      "main": [
        [
          {
            "node": "d704a8e3-b2f6-44df-9087-1f1467f815a9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "04e5caba-3ecc-4539-8062-9dd7689c944c": {
      "main": [
        [
          {
            "node": "6d7f5f7d-cced-4938-96d2-2d5a84b56e30",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "d4a60d34-b6bd-4c72-b847-c975a4b71726": {
      "main": [
        [
          {
            "node": "6bf67b5b-a7ef-450b-8466-89f230482638",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6d7f5f7d-cced-4938-96d2-2d5a84b56e30": {
      "main": [
        [
          {
            "node": "fdbb6b9b-342f-4035-bbea-10545048cb73",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "a1e10f52-8a0c-405b-bbe6-b756e5281d85",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a86f4c5f-6963-450b-b31b-f570dace824d": {
      "main": [
        [
          {
            "node": "c3c00221-07dc-4b86-a54f-ff8b2bd04238",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f304e736-2a74-46a9-9db1-538ad6cd2439": {
      "main": [
        [
          {
            "node": "0ed677b7-4118-459a-922f-ef365b578727",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6bf67b5b-a7ef-450b-8466-89f230482638": {
      "main": [
        [
          {
            "node": "3cfb46e8-4581-46dc-a207-2ff6f2cff82a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f9a611ed-705d-4a06-96d0-c9cb18a32961": {
      "ai_languageModel": [
        [
          {
            "node": "04e5caba-3ecc-4539-8062-9dd7689c944c",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "2a400720-e19f-4e57-8174-f6e704dbbed2": {
      "ai_outputParser": [
        [
          {
            "node": "04e5caba-3ecc-4539-8062-9dd7689c944c",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "65d10c85-ffe4-4ab6-93cf-862fa4163514": {
      "main": [
        [
          {
            "node": "a86f4c5f-6963-450b-b31b-f570dace824d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a1e10f52-8a0c-405b-bbe6-b756e5281d85": {
      "main": [
        [
          {
            "node": "65d10c85-ffe4-4ab6-93cf-862fa4163514",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2089e370-9f98-4f27-80bf-5172df529d37": {
      "main": [
        [
          {
            "node": "04e5caba-3ecc-4539-8062-9dd7689c944c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 多模态 AI

需要付费吗?

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

工作流信息
难度等级
高级
节点数量32
分类1
节点类型15
难度说明

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

作者
Jorge Martínez

Jorge Martínez

@jorgemartinezjam

AI Engineer & Full Stack Developer skilled in designing intelligent agents, workflow automation, and NLP solutions. Experienced with LLMs, Relevance AI, make, zapier, and n8n. Proficient in integrating AI and chatbots into web apps, optimizing processes, and leveraging automation for real-time productivity. Strong background in backend and frontend development, REST APIs, and database management.

外部链接
在 n8n.io 查看

分享此工作流

分类

分类: 34