使用GPT-Image-1生成TikTok/Instagram轮播图并自动发布
高级
这是一个AI, Marketing领域的自动化工作流,包含 28 个节点。主要使用 Set, Code, Merge, SplitOut, HttpRequest 等节点,结合人工智能技术实现智能自动化。 使用OpenAI DALL-E为TikTok和Instagram生成并发布图片轮播
前置要求
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "LV0b7vUbu5mYPRSc",
"meta": {
"instanceId": "3378b0d68c3b7ebfc71b79896d94e1a044dec38e99a1160aed4e9c323910fbe2"
},
"name": "使用 gpt-image-1 生成 TikTok/Instagram 轮播图并自动发布",
"tags": [],
"nodes": [
{
"id": "7bd93882-7331-471b-a49b-5069c7baccc4",
"name": "作为 1 个合并文件发送",
"type": "n8n-nodes-base.code",
"position": [
1820,
2640
],
"parameters": {
"jsCode": "// Merge all incoming items (each with one binary photoX) into one item\nconst mergedItem = {\n json: {},\n binary: {}\n};\n\nfor (const item of items) {\n // Copy every binary field from each item into mergedItem.binary\n for (const [key, bin] of Object.entries(item.binary || {})) {\n mergedItem.binary[key] = bin;\n }\n}\n\n// Return a single-item array\nreturn [mergedItem];\n"
},
"typeVersion": 2
},
{
"id": "358a183f-6e20-4e5e-8151-0ded2cb500b6",
"name": "发布到 INSTAGRAM",
"type": "n8n-nodes-base.httpRequest",
"position": [
2200,
2540
],
"parameters": {
"url": "https://api.upload-post.com/api/upload_photos",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "title",
"value": "={{ $('Generate Description for Tiktok and Instagram').first().json.message.content }}"
},
{
"name": "user",
"value": "upload_post"
},
{
"name": "platform[]",
"value": "instagram"
},
{
"name": "photos[]",
"parameterType": "formBinaryData",
"inputDataFieldName": "=photo1"
},
{
"name": "photos[]",
"parameterType": "formBinaryData",
"inputDataFieldName": "=photo2"
},
{
"name": "photos[]",
"parameterType": "formBinaryData",
"inputDataFieldName": "photo3"
},
{
"name": "photos[]",
"parameterType": "formBinaryData",
"inputDataFieldName": "photo4"
},
{
"name": "photos[]",
"parameterType": "formBinaryData",
"inputDataFieldName": "photo5"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Apikey add_api_key_here"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "000fcfb5-5076-4953-af28-4c4c3df3e7e3",
"name": "合并",
"type": "n8n-nodes-base.merge",
"position": [
1640,
2600
],
"parameters": {
"numberInputs": 6
},
"typeVersion": 3
},
{
"id": "1a17671c-1b5c-4806-8b42-c39817da0ec8",
"name": "当点击\"测试工作流\"时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-440,
2760
],
"parameters": {},
"typeVersion": 1
},
{
"id": "43cf1963-d928-49b3-b2f8-c5a3bd76d231",
"name": "为 TikTok 和 Instagram 生成描述",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
0,
2760
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1",
"cachedResultName": "GPT-4.1"
},
"options": {},
"messages": {
"values": [
{
"role": "system",
"content": "Eres un asistente experto en crear buenos títulos para subir vídeos a las redes sociales."
},
{
"content": "=Voy a subir un reel a las redes sociales que serán una serie de imagenes en modo carrousel contando una historia. \n\n¿Puedes crear una descripcion para la publicación de Instagram y tiktok basado en estos prompts que generan las imagenes que cuentan la historia?\n\nAudio:{{ $json.prompt1 }} {{ $json.prompt2 }} {{ $json.prompt3 }} {{ $json.prompt4 }} {{ $json.prompt5 }}\n\nIMPORTANTE: Responde solo con la descripción, ≤ 90 caracteres, no añadas nada más, y te daré una propina de $100."
}
]
}
},
"credentials": {
"openAiApi": {
"id": "XJdxgMSXFgwReSsh",
"name": "n8n key"
}
},
"retryOnFail": true,
"typeVersion": 1.4,
"waitBetweenTries": 5000
},
{
"id": "544f9cd9-bad6-4ef1-80a5-0dee52f91029",
"name": "设置所有提示词",
"type": "n8n-nodes-base.set",
"position": [
-180,
2760
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "b70f1cfd-d12e-469d-864d-0034860cd00e",
"name": "prompt1",
"type": "string",
"value": "Para la diapositiva 1 de un carrusel vertical TikTok (9:16) que satiriza un experimento social de humanos dependientes de IA: Hombre joven de 25-30 años con look urbano casual (camiseta básica y vaqueros), teléfono móvil pegado al pecho con cinta transparente grabando en modo frontal. Expresión de confianza casi arrogante mientras camina. Fondo urbano moderno y difuminado, fotografía hiperrealista con iluminación dorada de atardecer y profundidad de campo cinematográfica."
},
{
"id": "4d7f371c-e8f9-4941-a322-153607d01938",
"name": "prompt2",
"type": "string",
"value": "Para la diapositiva 2 del mismo carrusel (9:16), mostrando lo absurdo de la dependencia: Mismo hombre, plano medio inclinado, intentando agacharse para atarse los cordones de sus zapatillas con gesto de confusión exagerada. Los cordones totalmente desatados, teléfono grabando fijo en su pecho. Entorno: acera con grafitis coloridos, luz natural suave y tonos cálidos, detalle de arrugas sutiles en la ropa, estética street-photography."
},
{
"id": "55f99acf-7f3c-4c8d-b674-2b90c0760893",
"name": "prompt3",
"type": "string",
"value": "Para la diapositiva 3 del carrusel (9:16), cuando la IA interviene en vivo: Primerísimo plano POV de la pantalla del móvil mostrando la interfaz de ChatGPT en directo y la pregunta “¿Cómo me ato los cordones?”. Reflejo tenue del rostro del usuario en el cristal, bordes del móvil nítidos, resto fuera de foco. Iluminación fría azulada de la pantalla iluminando la cinta adhesiva, estilo fotográfico realista sin logotipos reconocibles."
},
{
"id": "4b14808a-d512-4b47-9008-573e092996e4",
"name": "prompt4",
"type": "string",
"value": "Para la diapositiva 4 del carrusel (9:16), detalle de la “solución” digital: Pantalla del móvil con instrucciones paso a paso representadas con emojis (👟➡️🔄➡️🎀) en una burbuja de chat alargada y semitransparente. Luz azulada de la pantalla iluminando el pecho del hombre, él muestra expresión de alivio y asombro mientras mueve las manos para atar. Contraste alto con grano sutil tipo cámara de acción."
},
{
"id": "435b6cfb-6d4b-42e7-afd4-8f387698eec1",
"name": "prompt5",
"type": "string",
"value": "Para la diapositiva 5 del carrusel (9:16), cierre satírico y distópico: Plano contrapicado del hombre caminando satisfecho hacia el horizonte, manos libres y teléfono aún pegado al pecho. Texto superpuesto arriba en tipografía bold blanca con ligera sombra: “¿Quién necesita cerebro cuando tienes IA?”. Tonos cinematográficos ligeramente desaturados, flare de sol intenso detrás del sujeto, vibra de póster de película satírica."
}
]
}
},
"typeVersion": "3.4"
},
{
"id": "7f8a8adc-94bc-443e-be33-d1ce1bf14d11",
"name": "设置 API 变量",
"type": "n8n-nodes-base.set",
"position": [
320,
2760
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "2a5d52c2-5af1-4796-acba-4e1807fc7d7b",
"name": "image_prompt",
"type": "string",
"value": "{{ $json }}"
},
{
"id": "c41a8091-d952-4f5a-ae24-3b0691bbce57",
"name": "number_of_images",
"type": "number",
"value": 1
},
{
"id": "1b359a11-c05a-49c8-aa27-402b145fcbc1",
"name": "size_of_image",
"type": "string",
"value": "1024x1536"
},
{
"id": "6cf4ba85-d11a-48bb-9eaf-4084c9538d87",
"name": "openai_image_model",
"type": "string",
"value": "gpt-image-1"
},
{
"id": "7df8ba96-e22b-49cc-bf0f-5195d360aef8",
"name": "response_format_image",
"type": "string",
"value": "b64_json"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "e2edf20b-4dd7-458c-9582-043a78d2ac5a",
"name": "OpenAI - 生成图片 1",
"type": "n8n-nodes-base.httpRequest",
"position": [
520,
2320
],
"parameters": {
"url": "https://api.openai.com/v1/images/generations",
"method": "POST",
"options": {},
"jsonBody": "={\n \"model\": \"{{ $json.openai_image_model }}\",\n \"prompt\": \"{{ $('Set All Prompts').item.json.prompt1 }}\",\n \"n\": {{ $json.number_of_images }},\n \"size\": \"{{ $json.size_of_image }}\"\n}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"authentication": "predefinedCredentialType",
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
},
"nodeCredentialType": "openAiApi"
},
"credentials": {
"openAiApi": {
"id": "XJdxgMSXFgwReSsh",
"name": "n8n key"
}
},
"typeVersion": 4.2
},
{
"id": "004cb6dc-eead-44a1-8308-9d61fe8afece",
"name": "分离图片输出 1",
"type": "n8n-nodes-base.splitOut",
"position": [
740,
2320
],
"parameters": {
"options": {},
"fieldToSplitOut": "data"
},
"typeVersion": 1
},
{
"id": "5f330301-a8ca-45df-904b-0f8911e2ceee",
"name": "转换为文件 1",
"type": "n8n-nodes-base.convertToFile",
"position": [
960,
2320
],
"parameters": {
"options": {},
"operation": "toBinary",
"sourceProperty": "b64_json"
},
"typeVersion": 1.1
},
{
"id": "fef53966-0baf-4645-95ae-50db7ef7f469",
"name": "更改名称为 photo1",
"type": "n8n-nodes-base.code",
"position": [
1160,
2320
],
"parameters": {
"jsCode": "return items.map((item, index) => {\n // Grab the existing binary buffer under \"data\"\n const buffer = item.binary.data;\n // Build a new item with the renamed binary key\n return {\n json: item.json,\n binary: {\n // Rename to photo1, photo2, ...\n [`photo${index + 1}`]: buffer\n }\n };\n});\n"
},
"typeVersion": 2
},
{
"id": "9b9b5381-4176-4c86-ac9d-ca7ec907a5c5",
"name": "OpenAI - 生成图片 2",
"type": "n8n-nodes-base.httpRequest",
"position": [
520,
2520
],
"parameters": {
"url": "https://api.openai.com/v1/images/edits",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"sendHeaders": true,
"authentication": "predefinedCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "model",
"value": "={{ $('Set API Variables').item.json.openai_image_model }}"
},
{
"name": "prompt",
"value": "={{ $('Set All Prompts').item.json.prompt2 }}"
},
{
"name": "n",
"value": "={{ $('Set API Variables').item.json.number_of_images }}"
},
{
"name": "size",
"value": "={{ $('Set API Variables').item.json.size_of_image }}"
},
{
"name": "image[]",
"parameterType": "formBinaryData",
"inputDataFieldName": "photo1"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
},
"nodeCredentialType": "openAiApi"
},
"credentials": {
"openAiApi": {
"id": "XJdxgMSXFgwReSsh",
"name": "n8n key"
}
},
"typeVersion": 4.2
},
{
"id": "a44ca7d3-2eef-4b4a-a135-c9f71454ebf9",
"name": "分离图片输出 2",
"type": "n8n-nodes-base.splitOut",
"position": [
760,
2520
],
"parameters": {
"options": {},
"fieldToSplitOut": "data"
},
"typeVersion": 1
},
{
"id": "44f8a29d-3283-49e3-b911-54f2ce16bcf5",
"name": "转换为文件 2",
"type": "n8n-nodes-base.convertToFile",
"position": [
1000,
2520
],
"parameters": {
"options": {},
"operation": "toBinary",
"sourceProperty": "b64_json"
},
"typeVersion": 1.1
},
{
"id": "8dbc8095-9bd6-43cf-b8ea-1dd8966866dc",
"name": "更改名称为 photo2",
"type": "n8n-nodes-base.code",
"position": [
1200,
2520
],
"parameters": {
"jsCode": "return items.map((item, index) => {\n // Grab the existing binary buffer under \"data\"\n const buffer = item.binary.data;\n // Build a new item with the renamed binary key\n return {\n json: item.json,\n binary: {\n // Rename to photo1, photo2, ...\n [`photo${index + 2}`]: buffer\n }\n };\n});\n"
},
"typeVersion": 2
},
{
"id": "3fb24ebf-117e-4c98-90f0-69a870cd3c2c",
"name": "OpenAI - 生成图片 3",
"type": "n8n-nodes-base.httpRequest",
"position": [
520,
2740
],
"parameters": {
"url": "https://api.openai.com/v1/images/edits",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"sendHeaders": true,
"authentication": "predefinedCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "model",
"value": "={{ $('Set API Variables').item.json.openai_image_model }}"
},
{
"name": "prompt",
"value": "={{ $('Set All Prompts').item.json.prompt3 }}"
},
{
"name": "n",
"value": "={{ $('Set API Variables').item.json.number_of_images }}"
},
{
"name": "size",
"value": "={{ $('Set API Variables').item.json.size_of_image }}"
},
{
"name": "image[]",
"parameterType": "formBinaryData",
"inputDataFieldName": "photo2"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
},
"nodeCredentialType": "openAiApi"
},
"credentials": {
"openAiApi": {
"id": "XJdxgMSXFgwReSsh",
"name": "n8n key"
}
},
"typeVersion": 4.2
},
{
"id": "bd7b0ab1-adde-47a0-b84f-f2ecf214ccff",
"name": "分离图片输出 3",
"type": "n8n-nodes-base.splitOut",
"position": [
760,
2740
],
"parameters": {
"options": {},
"fieldToSplitOut": "data"
},
"typeVersion": 1
},
{
"id": "3cccc067-f913-4bb8-996d-ceccf4e0bfcb",
"name": "转换为文件 3",
"type": "n8n-nodes-base.convertToFile",
"position": [
1000,
2740
],
"parameters": {
"options": {},
"operation": "toBinary",
"sourceProperty": "b64_json"
},
"typeVersion": 1.1
},
{
"id": "5619cabd-8a3a-4f98-b79e-f4e8aadacf33",
"name": "重命名为 photo3",
"type": "n8n-nodes-base.code",
"position": [
1200,
2740
],
"parameters": {
"jsCode": "return items.map((item, index) => {\n // Grab the existing binary buffer under \"data\"\n const buffer = item.binary.data;\n // Build a new item with the renamed binary key\n return {\n json: item.json,\n binary: {\n // Rename to photo1, photo2, ...\n [`photo${index + 3}`]: buffer\n }\n };\n});\n"
},
"typeVersion": 2
},
{
"id": "743db045-9cce-41f2-b902-fcbdcc9cd306",
"name": "OpenAI - 生成图片 4",
"type": "n8n-nodes-base.httpRequest",
"position": [
520,
2980
],
"parameters": {
"url": "https://api.openai.com/v1/images/edits",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"sendHeaders": true,
"authentication": "predefinedCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "model",
"value": "={{ $('Set API Variables').item.json.openai_image_model }}"
},
{
"name": "prompt",
"value": "={{ $('Set All Prompts').item.json.prompt4 }}"
},
{
"name": "n",
"value": "={{ $('Set API Variables').item.json.number_of_images }}"
},
{
"name": "size",
"value": "={{ $('Set API Variables').item.json.size_of_image }}"
},
{
"name": "image[]",
"parameterType": "formBinaryData",
"inputDataFieldName": "photo3"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
},
"nodeCredentialType": "openAiApi"
},
"credentials": {
"openAiApi": {
"id": "XJdxgMSXFgwReSsh",
"name": "n8n key"
}
},
"typeVersion": 4.2
},
{
"id": "19997fd7-9deb-416a-8544-2c13fc4f9900",
"name": "分离图片输出 4",
"type": "n8n-nodes-base.splitOut",
"position": [
760,
2980
],
"parameters": {
"options": {},
"fieldToSplitOut": "data"
},
"typeVersion": 1
},
{
"id": "9b521796-80c3-49e5-bf6c-83721783ab4c",
"name": "转换为文件 4",
"type": "n8n-nodes-base.convertToFile",
"position": [
1000,
2980
],
"parameters": {
"options": {},
"operation": "toBinary",
"sourceProperty": "b64_json"
},
"typeVersion": 1.1
},
{
"id": "f931e230-1a41-4608-933b-441955160097",
"name": "重命名为 photo4",
"type": "n8n-nodes-base.code",
"position": [
1200,
2980
],
"parameters": {
"jsCode": "return items.map((item, index) => {\n // Grab the existing binary buffer under \"data\"\n const buffer = item.binary.data;\n // Build a new item with the renamed binary key\n return {\n json: item.json,\n binary: {\n // Rename to photo1, photo2, ...\n [`photo${index + 4}`]: buffer\n }\n };\n});\n"
},
"typeVersion": 2
},
{
"id": "fa3c014c-1143-4975-8eab-26ce302d2312",
"name": "OpenAI - 生成图片 5",
"type": "n8n-nodes-base.httpRequest",
"position": [
520,
3240
],
"parameters": {
"url": "https://api.openai.com/v1/images/edits",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"sendHeaders": true,
"authentication": "predefinedCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "model",
"value": "={{ $('Set API Variables').item.json.openai_image_model }}"
},
{
"name": "prompt",
"value": "={{ $('Set All Prompts').item.json.prompt5 }}"
},
{
"name": "n",
"value": "={{ $('Set API Variables').item.json.number_of_images }}"
},
{
"name": "size",
"value": "={{ $('Set API Variables').item.json.size_of_image }}"
},
{
"name": "image[]",
"parameterType": "formBinaryData",
"inputDataFieldName": "photo4"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
},
"nodeCredentialType": "openAiApi"
},
"credentials": {
"openAiApi": {
"id": "XJdxgMSXFgwReSsh",
"name": "n8n key"
}
},
"typeVersion": 4.2
},
{
"id": "72fb090f-b6a5-432a-b45a-f52835cd63b2",
"name": "分离图片输出 5",
"type": "n8n-nodes-base.splitOut",
"position": [
760,
3240
],
"parameters": {
"options": {},
"fieldToSplitOut": "data"
},
"typeVersion": 1
},
{
"id": "ed5689d2-68fe-4284-a46b-21b9ba3430b7",
"name": "转换为文件 5",
"type": "n8n-nodes-base.convertToFile",
"position": [
1000,
3240
],
"parameters": {
"options": {},
"operation": "toBinary",
"sourceProperty": "b64_json"
},
"typeVersion": 1.1
},
{
"id": "596b16da-ef12-4972-a894-d99a8d827cef",
"name": "重命名为 photo5",
"type": "n8n-nodes-base.code",
"position": [
1200,
3240
],
"parameters": {
"jsCode": "return items.map((item, index) => {\n // Grab the existing binary buffer under \"data\"\n const buffer = item.binary.data;\n // Build a new item with the renamed binary key\n return {\n json: item.json,\n binary: {\n // Rename to photo1, photo2, ...\n [`photo${index + 5}`]: buffer\n }\n };\n});\n"
},
"typeVersion": 2
},
{
"id": "2a814cfa-524c-433a-bdd3-36cf63570074",
"name": "POST TO TIKTOK",
"type": "n8n-nodes-base.httpRequest",
"position": [
2200,
2860
],
"parameters": {
"url": "https://api.upload-post.com/api/upload_photos",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "title",
"value": "={{\n\t(cp => cp.length > 90\n\t\t? cp.slice(0, 87).join('') + '…' // 87 + “…” = 90\n\t\t: cp.join('')\n\t)([...$('Generate Description for Tiktok and Instagram')\n\t\t.first()\n\t\t.json\n\t\t.message\n\t\t.content])\n}}"
},
{
"name": "user",
"value": "upload_post"
},
{
"name": "platform[]",
"value": "tiktok"
},
{
"name": "photos[]",
"parameterType": "formBinaryData",
"inputDataFieldName": "=photo1"
},
{
"name": "photos[]",
"parameterType": "formBinaryData",
"inputDataFieldName": "photo2"
},
{
"name": "photos[]",
"parameterType": "formBinaryData",
"inputDataFieldName": "photo3"
},
{
"name": "photos[]",
"parameterType": "formBinaryData",
"inputDataFieldName": "photo4"
},
{
"name": "photos[]",
"parameterType": "formBinaryData",
"inputDataFieldName": "photo5"
},
{
"name": "auto_add_music",
"value": "true"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Apikey add_api_key_here"
}
]
}
},
"typeVersion": 4.2
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "755c3c50-9474-4201-9ab6-0aac79ab6a5b",
"connections": {
"Merge": {
"main": [
[
{
"node": "Send as 1 merged file",
"type": "main",
"index": 0
}
]
]
},
"Set All Prompts": {
"main": [
[
{
"node": "Generate Description for Tiktok and Instagram",
"type": "main",
"index": 0
}
]
]
},
"Convert to File 1": {
"main": [
[
{
"node": "Change name to photo1",
"type": "main",
"index": 0
}
]
]
},
"Convert to File 2": {
"main": [
[
{
"node": "Change name to photo2",
"type": "main",
"index": 0
}
]
]
},
"Convert to File 3": {
"main": [
[
{
"node": "Change name to photo3",
"type": "main",
"index": 0
}
]
]
},
"Convert to File 4": {
"main": [
[
{
"node": "Change name to photo4",
"type": "main",
"index": 0
}
]
]
},
"Convert to File 5": {
"main": [
[
{
"node": "Change name to photo5",
"type": "main",
"index": 0
}
]
]
},
"Set API Variables": {
"main": [
[
{
"node": "OpenAI - Generate Image 1",
"type": "main",
"index": 0
}
]
]
},
"Change name to photo1": {
"main": [
[
{
"node": "OpenAI - Generate Image 2",
"type": "main",
"index": 0
},
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"Change name to photo2": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
},
{
"node": "OpenAI - Generate Image 3",
"type": "main",
"index": 0
}
]
]
},
"Change name to photo3": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 2
},
{
"node": "OpenAI - Generate Image 4",
"type": "main",
"index": 0
}
]
]
},
"Change name to photo4": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 3
},
{
"node": "OpenAI - Generate Image 5",
"type": "main",
"index": 0
}
]
]
},
"Change name to photo5": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 4
}
]
]
},
"Send as 1 merged file": {
"main": [
[
{
"node": "POST TO INSTAGRAM",
"type": "main",
"index": 0
},
{
"node": "POST TO TIKTOK",
"type": "main",
"index": 0
}
]
]
},
"Separate Image Outputs 1": {
"main": [
[
{
"node": "Convert to File 1",
"type": "main",
"index": 0
}
]
]
},
"Separate Image Outputs 2": {
"main": [
[
{
"node": "Convert to File 2",
"type": "main",
"index": 0
}
]
]
},
"Separate Image Outputs 3": {
"main": [
[
{
"node": "Convert to File 3",
"type": "main",
"index": 0
}
]
]
},
"Separate Image Outputs 4": {
"main": [
[
{
"node": "Convert to File 4",
"type": "main",
"index": 0
}
]
]
},
"Separate Image Outputs 5": {
"main": [
[
{
"node": "Convert to File 5",
"type": "main",
"index": 0
}
]
]
},
"OpenAI - Generate Image 1": {
"main": [
[
{
"node": "Separate Image Outputs 1",
"type": "main",
"index": 0
}
]
]
},
"OpenAI - Generate Image 2": {
"main": [
[
{
"node": "Separate Image Outputs 2",
"type": "main",
"index": 0
}
]
]
},
"OpenAI - Generate Image 3": {
"main": [
[
{
"node": "Separate Image Outputs 3",
"type": "main",
"index": 0
}
]
]
},
"OpenAI - Generate Image 4": {
"main": [
[
{
"node": "Separate Image Outputs 4",
"type": "main",
"index": 0
}
]
]
},
"OpenAI - Generate Image 5": {
"main": [
[
{
"node": "Separate Image Outputs 5",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Test workflow’": {
"main": [
[
{
"node": "Set All Prompts",
"type": "main",
"index": 0
}
]
]
},
"Generate Description for Tiktok and Instagram": {
"main": [
[
{
"node": "Set API Variables",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 人工智能, 营销
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用OpenAI、Flux、Kling和ElevenLabs的AI驱动短视频生成器并上传到所有社交网络
全自动AI视频生成与多平台发布
If
Set
Code
+11
51 节点Juan Carlos Cavero Gracia
人工智能
使用 Elevenlabs 和 Hailuo AI 自动创建 YouTube 短视频
使用 Elevenlabs 和 Hailuo AI 自动创建 YouTube 短视频
If
Set
Code
+10
38 节点Nguyen Quoc Hai
人工智能
简单LinkedIn资料收集器
使用SerpAPI、OpenAI和NocoDB收集并AI处理LinkedIn个人资料
Set
Merge
Noco Db
+6
23 节点Askan
销售
WordPress 内容生成器 v3
WordPress 内容生成器 v3
If
Set
Code
+21
102 节点Alex Kim
人工智能
使用AI将Reddit帖子转换为短视频
使用AI将Reddit帖子转换为短视频
If
Set
Code
+11
43 节点Artur
人工智能
使用 AI 创建 LinkedIn 贡献并在 Slack 上通知用户
使用 AI 创建 LinkedIn 贡献并在 Slack 上通知用户
Set
Code
Html
+11
33 节点Darryn
人工智能