AI营销团队
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 25 个节点。主要使用 Set, Switch, Telegram, Agent, TelegramTrigger 等节点。 在Telegram中使用GPT-4和AI工具通过语音指令创建营销内容
- •Telegram Bot Token
- •OpenAI API Key
使用的节点 (25)
{
"id": "7LI7szVWjgxuYSD2",
"meta": {
"instanceId": "95e5a8c2e51c83e33b232ea792bbe3f063c094c33d9806a5565cb31759e1ad39",
"templateCredsSetupCompleted": true
},
"name": "AI 营销团队",
"tags": [],
"nodes": [
{
"id": "243cc16f-a8ca-4e9f-8d8a-6e48d2c1796f",
"name": "GPT 4.1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
-180,
200
],
"parameters": {
"model": "openai/gpt-4.1",
"options": {}
},
"credentials": {
"openRouterApi": {
"id": "1dQlOKKWiigrH9O9",
"name": "OpenRouter account"
}
},
"typeVersion": 1
},
{
"id": "b46f6e9a-9719-4540-9aa6-23da285e89f2",
"name": "Create Image",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
780,
200
],
"parameters": {
"name": "createImage",
"workflowId": {
"__rl": true,
"mode": "list",
"value": "lsZTPeThp35cB3Hs",
"cachedResultName": "Create Image"
},
"description": "调用此工具创建图像。",
"workflowInputs": {
"value": {
"chatID": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"imageTitle": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('imageTitle', `The title of the image. Should be no more than 4 words.`, 'string') }}",
"imagePrompt": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('imagePrompt', `The image requested by the user`, 'string') }}"
},
"schema": [
{
"id": "imageTitle",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "imageTitle",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "imagePrompt",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "imagePrompt",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "chatID",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "chatID",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
}
},
"typeVersion": 2.1
},
{
"id": "9856dbc9-1904-422e-8dfa-f84e210b1edc",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
1160,
-140
],
"webhookId": "fbdb3bd7-490b-4d3e-961e-e2d398294649",
"parameters": {
"text": "={{ $json.output }}",
"chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"additionalFields": {
"appendAttribution": false
}
},
"credentials": {
"telegramApi": {
"id": "9jQWan3cOz3tE62s",
"name": "Telegram account 2"
}
},
"typeVersion": 1.2
},
{
"id": "3c80151c-dc63-4981-8136-15f5e16a647f",
"name": "简单记忆",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
100,
200
],
"parameters": {
"sessionKey": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"sessionIdType": "customKey"
},
"typeVersion": 1.3
},
{
"id": "ae38e1af-dc55-48cf-9be2-7439a592453d",
"name": "编辑图像",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
940,
200
],
"parameters": {
"name": "editImage",
"workflowId": {
"__rl": true,
"mode": "list",
"value": "nMBpMe21l4gDEjOI",
"cachedResultName": "Edit Image"
},
"description": "调用此工具编辑图像。",
"workflowInputs": {
"value": {
"image": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('image', `The title of the image the user wants to edit`, 'string') }}",
"chatID": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"request": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('request', `The edit the user wants to make to the image`, 'string') }}",
"pictureID": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('pictureID', `The ID of the image to edit`, 'string') }}"
},
"schema": [
{
"id": "image",
"type": "string",
"display": true,
"required": false,
"displayName": "image",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "request",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "request",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "chatID",
"type": "string",
"display": true,
"required": false,
"displayName": "chatID",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "pictureID",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "pictureID",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
}
},
"typeVersion": 2.1
},
{
"id": "e1b30c8b-b081-4689-97fb-22733fbac6a7",
"name": "搜索图像",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
1180,
200
],
"parameters": {
"name": "searchImages",
"workflowId": {
"__rl": true,
"mode": "list",
"value": "zDYAKGCIEChJa1JH",
"cachedResultName": "Search Images"
},
"description": "调用此工具搜索图像数据库。",
"workflowInputs": {
"value": {
"image": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('image', `The image title`, 'string') }}",
"chatID": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"intent": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('intent', `The intent of the user. This can either be \"Get\" or \"Edit\"`, 'string') }}"
},
"schema": [
{
"id": "intent",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "intent",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "image",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "image",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "chatID",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "chatID",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
}
},
"typeVersion": 2.1
},
{
"id": "c8d4ca3f-591e-4751-91ff-3aa6714e893f",
"name": "博客文章",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
600,
200
],
"parameters": {
"name": "blogPost",
"workflowId": {
"__rl": true,
"mode": "list",
"value": "sS2JMp5z7YiqtJpa",
"cachedResultName": "Blog Post"
},
"description": "调用此工具使用主题和目标受众创建博客文章。",
"workflowInputs": {
"value": {
"chatID": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"blogTopic": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('blogTopic', `The topic of the blog.`, 'string') }}",
"targetAudience": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('targetAudience', `The target audience for the blog.`, 'string') }}"
},
"schema": [
{
"id": "blogTopic",
"type": "string",
"display": true,
"required": false,
"displayName": "blogTopic",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "targetAudience",
"type": "string",
"display": true,
"required": false,
"displayName": "targetAudience",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "chatID",
"type": "string",
"display": true,
"required": false,
"displayName": "chatID",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
}
},
"typeVersion": 2.1
},
{
"id": "ac099456-afcf-4c32-8d2d-cf9162932ce5",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
600,
-300
],
"parameters": {
"width": 460,
"height": 400,
"content": "# 营销团队"
},
"typeVersion": 1
},
{
"id": "93e30328-9637-411f-bb0d-1c5e9cc207e1",
"name": "LinkedIn 帖子",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
440,
200
],
"parameters": {
"name": "linkedinPost",
"workflowId": {
"__rl": true,
"mode": "list",
"value": "RgUBWsswXoQsX2tI",
"cachedResultName": "LinkedIn Post"
},
"description": "调用此工具使用主题和目标受众创建 LinkedIn 帖子。",
"workflowInputs": {
"value": {
"chatID": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"postTopic": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('postTopic', `The topic of the LinkedIn post`, 'string') }}",
"targetAudience": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('targetAudience', `The target audience of the LinkedIn post`, 'string') }}"
},
"schema": [
{
"id": "postTopic",
"type": "string",
"display": true,
"required": false,
"displayName": "postTopic",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "targetAudience",
"type": "string",
"display": true,
"required": false,
"displayName": "targetAudience",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "chatID",
"type": "string",
"display": true,
"required": false,
"displayName": "chatID",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
}
},
"typeVersion": 2.1
},
{
"id": "a3451421-dcc6-4643-94a4-f4b187dbb70b",
"name": "设置 '文本'",
"type": "n8n-nodes-base.set",
"position": [
320,
-60
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "fe7ecc99-e1e8-4a5e-bdd6-6fce9757b234",
"name": "text",
"type": "string",
"value": "={{ $json.message.text }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "cd462755-96a8-4ca2-a3a8-77e85e83f024",
"name": "下载语音文件",
"type": "n8n-nodes-base.telegram",
"position": [
240,
-220
],
"webhookId": "c0b376b1-7b63-41b6-8063-0b3096b8333d",
"parameters": {
"fileId": "={{ $json.message.voice.file_id }}",
"resource": "file"
},
"credentials": {
"telegramApi": {
"id": "9jQWan3cOz3tE62s",
"name": "Telegram account 2"
}
},
"typeVersion": 1.2
},
{
"id": "26f7a215-90a0-4719-a7a2-fbfba550277b",
"name": "转录音频",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
400,
-220
],
"parameters": {
"options": {},
"resource": "audio",
"operation": "transcribe"
},
"credentials": {
"openAiApi": {
"id": "WnxUhaEPMn5hIsEp",
"name": "Demo 4/2"
}
},
"typeVersion": 1.6
},
{
"id": "3c795fe4-9c50-4b1d-a43e-2b9d36746a39",
"name": "分支",
"type": "n8n-nodes-base.switch",
"position": [
-20,
-140
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "Voice",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
},
"leftValue": "={{ $json.message.voice.file_id }}",
"rightValue": ""
}
]
},
"renameOutput": true
},
{
"outputKey": "Text",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "8c844924-b2ed-48b0-935c-c66a8fd0c778",
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
},
"leftValue": "={{ $json.message.text }}",
"rightValue": ""
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "12bb0833-769d-4592-af4d-fa335c6e84ab",
"name": "Telegram 触发器",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-160,
-140
],
"webhookId": "99eab1a0-569d-4f0f-a49e-578a02abfe63",
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "9jQWan3cOz3tE62s",
"name": "Telegram account 2"
}
},
"typeVersion": 1.1
},
{
"id": "cd9f9d75-e1bf-4279-b733-3339fb383536",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-220,
-300
],
"parameters": {
"color": 6,
"width": 360,
"height": 400,
"content": "# 触发器"
},
"typeVersion": 1
},
{
"id": "97967485-58d3-4f7e-b879-c0895721fd99",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
240,
120
],
"parameters": {
"color": 5,
"width": 480,
"height": 220,
"content": "# 内容创作"
},
"typeVersion": 1
},
{
"id": "5c76b653-8a55-4c6d-b335-35185944a48b",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
740,
120
],
"parameters": {
"color": 3,
"width": 320,
"height": 220,
"content": "# 图像创建"
},
"typeVersion": 1
},
{
"id": "079a7833-0fff-4fd3-81d1-9d112b432e24",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1080,
120
],
"parameters": {
"color": 4,
"width": 300,
"height": 220,
"content": "# 图像数据库"
},
"typeVersion": 1
},
{
"id": "60b95e09-119e-4477-99cb-a5629ef4965a",
"name": "便利贴5",
"type": "n8n-nodes-base.stickyNote",
"position": [
1080,
-300
],
"parameters": {
"color": 6,
"width": 300,
"height": 400,
"content": "# 响应"
},
"typeVersion": 1
},
{
"id": "65a7791a-7d13-4dff-b532-8576692a9ffa",
"name": "便签 6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-220,
120
],
"parameters": {
"color": 2,
"width": 440,
"height": 220,
"content": "# 大脑"
},
"typeVersion": 1
},
{
"id": "6c35946c-e517-40f2-8d96-7b0f391dcb3c",
"name": "便签 7",
"type": "n8n-nodes-base.stickyNote",
"position": [
160,
-300
],
"parameters": {
"color": 7,
"width": 420,
"height": 400,
"content": "# 语音或文本"
},
"typeVersion": 1
},
{
"id": "5137d58b-d6d9-4877-9d95-6d4cf870d09f",
"name": "视频",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
280,
200
],
"parameters": {
"name": "video",
"workflowId": {
"__rl": true,
"mode": "list",
"value": "7HwL0nnjhjdXJ3FY",
"cachedResultName": "Faceless Video"
},
"description": "调用此工具创建视频。",
"workflowInputs": {
"value": {
"chatID": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"videoTopic": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('videoTopic', `The topic of the video`, 'string') }}"
},
"schema": [
{
"id": "videoTopic",
"type": "string",
"display": true,
"required": false,
"displayName": "videoTopic",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "chatID",
"type": "string",
"display": true,
"required": false,
"displayName": "chatID",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
}
},
"typeVersion": 2.1
},
{
"id": "13aea3f4-b9b0-4f14-9d68-06baee17bea5",
"name": "营销团队代理",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
700,
-140
],
"parameters": {
"text": "={{ $json.text }}",
"options": {
"systemMessage": "=# Overview\nYou are a marketing team AI agent. Your job is to help the user create and edit images based on the request, or create content.\n\n## Tools\ncreateImage - Use this to create an image. Send the requested image prompt to this tool.\neditImage - Use this to edit an image. The user might also say \"make\" rather than \"edit\".\nImage Database - Use this to search the image database. \nblogPost - Use this to create a blog post.\nlinkedinPost - Use this to create a LinkedIn post.\nvideo - Use this tool to create a video.\nThink - Use this if you need help making a decision.\n\n## Instructions\n- If the user asks to 'edit that image' or 'make that...', this indicates they want to edit the last image in the database, the most recent one.\n- If the user requests a blog post or LinkedIn post, use the \"blogPost\" or \"linkedinPost\" tool and output: \"Here's that post you requested. Hope you enjoy it.\"\n\n## Output\n- Make sure to return the image link as a clickable link\n\n"
},
"promptType": "define"
},
"typeVersion": 1.9
},
{
"id": "7642374d-7e12-4f7d-be49-d74bc85932e5",
"name": "思考",
"type": "@n8n/n8n-nodes-langchain.toolThink",
"position": [
-40,
200
],
"parameters": {},
"typeVersion": 1
},
{
"id": "b7c8b7b9-b25d-4f20-8713-3013d2955b9d",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-800,
-300
],
"parameters": {
"width": 560,
"height": 1000,
"content": "# 📋 设置指南"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "d41cc226-7086-4a5e-bb39-a8fd64014322",
"connections": {
"Think": {
"ai_tool": [
[
{
"node": "Marketing Team Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Video": {
"ai_tool": [
[
{
"node": "Marketing Team Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Download Voice File",
"type": "main",
"index": 0
}
],
[
{
"node": "Set 'Text'",
"type": "main",
"index": 0
}
]
]
},
"GPT 4.1": {
"ai_languageModel": [
[
{
"node": "Marketing Team Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Blog Post": {
"ai_tool": [
[
{
"node": "Marketing Team Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Edit Image": {
"ai_tool": [
[
{
"node": "Marketing Team Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Set 'Text'": {
"main": [
[
{
"node": "Marketing Team Agent",
"type": "main",
"index": 0
}
]
]
},
"Create Image": {
"ai_tool": [
[
{
"node": "Marketing Team Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"LinkedIn Post": {
"ai_tool": [
[
{
"node": "Marketing Team Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Search Images": {
"ai_tool": [
[
{
"node": "Marketing Team Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "Marketing Team Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Telegram Trigger": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Transcribe Audio": {
"main": [
[
{
"node": "Marketing Team Agent",
"type": "main",
"index": 0
}
]
]
},
"Download Voice File": {
"main": [
[
{
"node": "Transcribe Audio",
"type": "main",
"index": 0
}
]
]
},
"Marketing Team Agent": {
"main": [
[
{
"node": "Telegram",
"type": "main",
"index": 0
}
]
]
}
}
}如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Muhammad Ashar
@ashar0086Hi There! I help business owners and entrepreneurs 𝐚𝐮𝐭𝐨𝐦𝐚𝐭𝐞 𝐭𝐡𝐞𝐢𝐫 𝐨𝐩𝐞𝐫𝐚𝐭𝐢𝐨𝐧𝐬 using AI, smart workflows, and scalable systems—without needing a team of engineers. If you've ever said "𝐈 𝐰𝐢𝐬𝐡 𝐭𝐡𝐢𝐬 𝐩𝐚𝐫𝐭 𝐨𝐟 𝐦𝐲 𝐛𝐮𝐬𝐢𝐧𝐞𝐬𝐬 𝐣𝐮𝐬𝐭 𝐫𝐚𝐧 𝐢𝐭𝐬𝐞𝐥𝐟" that's exactly what I build. I combine hands-on engineering experience with deep AI/ML expertise to turn your biggest bottlenecks into automated breakthroughs. 𝐍𝐨𝐭 𝐬𝐮𝐫𝐞 𝐰𝐡𝐚𝐭 𝐩𝐚𝐫𝐭𝐬 𝐨𝐟 𝐲𝐨𝐮𝐫 𝐛𝐮𝐬𝐢𝐧𝐞𝐬𝐬 𝐜𝐚𝐧 𝐛𝐞 𝐚𝐮𝐭𝐨𝐦𝐚𝐭𝐞𝐝? Message me Let's build yours.
分享此工作流