8
n8n 中文网amn8n.com

构建基于OpenAI O3和GPT-4.1-mini的AI营销团队,实现自动化内容创作

高级

这是一个Content Creation, AI Chatbot领域的自动化工作流,包含 18 个节点。主要使用 Agent, AgentTool, ToolThink, ChatTrigger, LmChatOpenAi 等节点。 构建基于OpenAI O3和GPT-4.1-mini的AI营销团队,实现自动化内容创作

前置要求
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "12e6f290a974a1eee154f8d915aade185e90e826260e6aeab8a087ba7386a1bc",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "92da8211-5d45-465f-a8c9-5bb000d7ce05",
      "name": "当收到聊天消息时",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -2864,
        -576
      ],
      "webhookId": "ae1ab708-881f-4462-8bf3-967eb0c219f9",
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "342b0843-15d7-4f62-8a6d-5ef82fe03dd8",
      "name": "CMO Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -2640,
        -816
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 2.1
    },
    {
      "id": "b02e8c9d-7a33-4c7e-a4ff-618d3b115711",
      "name": "思考",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        -2512,
        -496
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "a5d31991-4bbb-4cf3-bfc7-ed1a756e6455",
      "name": "Copywriter Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -2240,
        -96
      ],
      "parameters": {
        "text": "={{ $fromAI('Prompt__User_Message_', ``, 'string') }}",
        "options": {},
        "toolDescription": "call this AI Agent that specializes in writing copy whenver you need to write copy"
      },
      "typeVersion": 2.2
    },
    {
      "id": "58e19949-145c-4bdb-ad2b-82fdfd356c21",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -2208,
        368
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "BbTwqBymI7opVkuO",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "94ebb27d-22da-473c-95de-f2a5034dd61c",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -2672,
        -496
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "o3",
          "cachedResultName": "o3"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "BbTwqBymI7opVkuO",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "ef34bd91-3b12-4638-bf9e-72f1043798c3",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1312,
        -496
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "BbTwqBymI7opVkuO",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "a36019e0-0b00-41f9-9b27-4461900fc949",
      "name": "Facebook ads Copywriter",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1280,
        -704
      ],
      "parameters": {
        "text": "={{ $fromAI('Prompt__User_Message_', ``, 'string') }}",
        "options": {},
        "toolDescription": "call this AI Agent that specializes in writing Facebook ads copy whenver you need to write Facebook ads copy"
      },
      "typeVersion": 2.2
    },
    {
      "id": "1d0dc13d-a0e5-4aef-856b-2e42371a0bfc",
      "name": "SEO Content Writer",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1840,
        -304
      ],
      "parameters": {
        "text": "={{ $fromAI('Prompt__User_Message_', ``, 'string') }}",
        "options": {},
        "toolDescription": "call this AI Agent that specializes in SEO content optimization, keyword research, and writing SEO-friendly content"
      },
      "typeVersion": 2.2
    },
    {
      "id": "b2fcab88-76ab-4d8e-8c72-a8159d006c72",
      "name": "OpenAI Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1824,
        -144
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "BbTwqBymI7opVkuO",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "47def529-ad89-4f05-857d-6903ce14fb81",
      "name": "Email Marketing Specialist",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1328,
        -80
      ],
      "parameters": {
        "text": "={{ $fromAI('Prompt__User_Message_', ``, 'string') }}",
        "options": {},
        "toolDescription": "call this AI Agent that specializes in email marketing campaigns, newsletters, and email sequence writing"
      },
      "typeVersion": 2.2
    },
    {
      "id": "cc8342da-8df2-4072-b6d1-8a058ea3f712",
      "name": "OpenAI Chat Model4",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1328,
        96
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "BbTwqBymI7opVkuO",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "877450ee-1eac-4a73-ad5b-47ddbbe3381e",
      "name": "Social Media Manager",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1744,
        -1024
      ],
      "parameters": {
        "text": "={{ $fromAI('Prompt__User_Message_', ``, 'string') }}",
        "options": {},
        "toolDescription": "call this AI Agent that specializes in social media content creation for all platforms (Twitter, LinkedIn, Instagram, TikTok)"
      },
      "typeVersion": 2.2
    },
    {
      "id": "ec4da24e-f1dc-4749-b03b-5edcd9ecf061",
      "name": "OpenAI Chat Model5",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1776,
        -768
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "BbTwqBymI7opVkuO",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "41652593-78c9-40f0-ab38-adaf345cc1fb",
      "name": "Brand Voice Specialist",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1344,
        -1264
      ],
      "parameters": {
        "text": "={{ $fromAI('Prompt__User_Message_', ``, 'string') }}",
        "options": {},
        "toolDescription": "call this AI Agent that specializes in maintaining brand voice consistency and creating brand guidelines"
      },
      "typeVersion": 2.2
    },
    {
      "id": "8a29c24c-932e-46c1-a050-ac52a20ee968",
      "name": "OpenAI Chat Model6",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1312,
        -944
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "BbTwqBymI7opVkuO",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "c3ef94e0-de02-4fe8-b526-9b1a3533629b",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3808,
        -880
      ],
      "parameters": {
        "color": 4,
        "width": 580,
        "height": 320,
        "content": "======================================="
      },
      "typeVersion": 1
    },
    {
      "id": "d69d8914-a41e-4ae7-a076-267beec814cb",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3808,
        -544
      ],
      "parameters": {
        "color": 4,
        "width": 740,
        "height": 3928,
        "content": "## 🤖 **配备完整营销团队的CMO智能体 - AI工作流**"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Think": {
      "ai_tool": [
        [
          {
            "node": "CMO Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Copywriter Agent": {
      "ai_tool": [
        [
          {
            "node": "CMO Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Copywriter Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "CMO Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Facebook ads Copywriter",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "SEO Content Writer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "Email Marketing Specialist",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model5": {
      "ai_languageModel": [
        [
          {
            "node": "Social Media Manager",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model6": {
      "ai_languageModel": [
        [
          {
            "node": "Brand Voice Specialist",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "SEO Content Writer": {
      "ai_tool": [
        [
          {
            "node": "CMO Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Social Media Manager": {
      "ai_tool": [
        [
          {
            "node": "CMO Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Brand Voice Specialist": {
      "ai_tool": [
        [
          {
            "node": "CMO Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Facebook ads Copywriter": {
      "ai_tool": [
        [
          {
            "node": "CMO Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Email Marketing Specialist": {
      "ai_tool": [
        [
          {
            "node": "CMO Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "CMO Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 内容创作, AI 聊天机器人

需要付费吗?

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

工作流信息
难度等级
高级
节点数量18
分类2
节点类型6
难度说明

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

作者
Yaron Been

Yaron Been

@yaron-nofluff

Building AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host If you need any help with Automations, feel free to reach out via linkedin: https://www.linkedin.com/in/yaronbeen/ And check out my Youtube channel: https://www.youtube.com/@YaronBeen/videos

外部链接
在 n8n.io 查看

分享此工作流