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": "When chat message received",
      "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": "Think",
      "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": "=======================================\n        CMO AGENT WITH MARKETING TEAM\n=======================================\nFor any questions or support, please contact:\n    Yaron@nofluff.online\n\nExplore more tips and tutorials here:\n   - YouTube: https://www.youtube.com/@YaronBeen/videos\n   - LinkedIn: https://www.linkedin.com/in/yaronbeen/\n======================================="
      },
      "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 AGENT WITH FULL MARKETING TEAM - AI WORKFLOW**\n\n**🔥 Powered by OpenAI O3 & GPT-4.1-mini Multi-Agent System**\n\n#AIMarketing #MarketingAutomation #n8nWorkflows #OpenAI #MultiAgentSystem\n\n---\n\n### 📝 **Workflow Overview**\n\nThis workflow creates a complete AI-powered marketing department with a **Chief Marketing Officer** orchestrating specialized team members. Each agent has unique capabilities tailored for specific marketing tasks, enabling comprehensive marketing automation.\n\n**🎯 What This Workflow Does:**\n- Provides a conversational AI marketing team accessible via chat\n- CMO Agent analyzes requests and delegates to appropriate specialists\n- Each specialist delivers expert-level outputs in their domain\n- Maintains consistent brand voice across all content\n\n---\n\n### 🚀 **Quick Start Setup**\n\n1. **🔑 Configure Credentials**\n   - Add your OpenAI API key to all chat models\n   - Ensure sufficient API credits for O3 model usage\n   - Test each agent connection individually\n\n2. **🌐 Deploy Webhook**\n   - Copy the webhook URL from chat trigger\n   - Test with simple marketing questions\n   - Monitor execution in n8n interface\n\n3. **💬 Start Using**\n   - Ask the CMO for any marketing task\n   - Be specific about your requirements\n   - Let the team collaborate on complex projects\n\n---\n\n### 👥 **Marketing Team Structure**\n\n**🎯 CMO Agent** (O3 Model - Premium)\n- Strategic marketing oversight & planning\n- Task delegation to specialized agents\n- High-level decision making\n- Complex reasoning & strategy\n- *Cost: High | Latency: ~3-5s*\n\n**✍️ Copywriter Agent** (GPT-4.1-mini)\n- General marketing copy & content\n- Product descriptions & landing pages\n- Brand storytelling & narratives\n- *Cost: Low | Latency: <1s*\n\n**📱 Facebook Ads Copywriter** (GPT-4.1-mini)\n- Social media ad copy optimization\n- A/B testing variations\n- Audience-specific messaging\n- *Cost: Low | Latency: <1s*\n\n**🔍 SEO Content Writer** (GPT-4.1-mini)\n- Search-optimized blog posts\n- Keyword research & integration\n- Meta descriptions & titles\n- *Cost: Low | Latency: <1s*\n\n**📧 Email Marketing Specialist** (GPT-4.1-mini)\n- Email campaign sequences\n- Newsletter content creation\n- Subject line optimization\n- *Cost: Low | Latency: <1s*\n\n**📲 Social Media Manager** (GPT-4.1-mini)\n- Multi-platform content calendar\n- Platform-specific content (Twitter/X, LinkedIn, Instagram, TikTok)\n- Hashtag research & trending topics\n- *Cost: Low | Latency: <1s*\n\n**🎨 Brand Voice Specialist** (GPT-4.1-mini)\n- Brand consistency enforcement\n- Style guide creation & maintenance\n- Tone & voice alignment\n- *Cost: Low | Latency: <1s*\n\n---\n\n### 💡 **Real-World Use Cases**\n\n**🚀 Product Launch Campaign**\n\"Create a complete product launch campaign for our new SaaS tool\"\n- CMO creates strategy → Copywriter drafts landing page → Email specialist creates drip campaign → Social media manager plans launch posts\n\n**📝 Content Marketing Sprint**\n\"Generate a month of SEO blog posts about AI automation\"\n- CMO plans topics → SEO writer creates optimized posts → Social media manager creates promotion posts → Email specialist creates newsletter\n\n**🎯 Social Media Blitz**\n\"Create viral content for our Black Friday sale\"\n- CMO sets objectives → Social media manager creates platform-specific content → Facebook ads writer creates ad variations → Brand voice ensures consistency\n\n**📧 Email Funnel Creation**\n\"Build a 7-day onboarding email sequence\"\n- CMO outlines customer journey → Email specialist writes sequence → Copywriter enhances CTAs → Brand voice maintains tone\n\n**🔍 SEO Content Strategy**\n\"Improve our website's organic traffic\"\n- CMO analyzes gaps → SEO writer creates pillar content → Copywriter enhances readability → Social media promotes content\n\n---\n\n### ⚙️ **Model Selection Strategy**\n\n**Why O3 for CMO?**\n- Advanced reasoning for complex strategies\n- Better understanding of business context\n- Superior task delegation decisions\n- Worth the cost for strategic thinking\n\n**Why GPT-4.1-mini for Specialists?**\n- Excellent cost-performance ratio\n- Sub-second response times\n- Sufficient for focused tasks\n- Allows parallel processing of multiple agents\n\n**💰 Cost Optimization Tips:**\n- Use O3 sparingly for high-level strategy\n- Batch similar requests to specialists\n- Cache common responses\n- Monitor token usage in OpenAI dashboard\n\n---\n\n### 🔧 **Advanced Configuration**\n\n**Customizing Agent Prompts:**\n- Edit tool descriptions for specific brand voice\n- Add industry-specific context\n- Include company guidelines in prompts\n- Reference existing content examples\n\n**Performance Tuning:**\n- Adjust temperature settings per agent\n- Implement token limits for cost control\n- Add timeout handling for long tasks\n- Enable streaming for real-time feedback\n\n---\n\n### 📊 **Expected Results**\n\n- **⚡ Speed**: Complete marketing tasks 10x faster\n- **💎 Quality**: Professional-grade content every time\n- **🔄 Consistency**: Unified brand voice across channels\n- **📈 Scale**: Handle multiple campaigns simultaneously\n- **💰 ROI**: Reduce content creation costs by 80%\n\n---\n\n### 🏷️ **Tags & Keywords**\n\n#AIMarketing #MarketingAutomation #n8n #OpenAI #ChatGPT #O3Model #ContentMarketing #EmailMarketing #SEO #SocialMediaMarketing #BrandVoice #MarketingAI #WorkflowAutomation #DigitalMarketing #MarTech #AIAgents #MultiAgentSystem #ContentCreation #MarketingStrategy #Copywriting"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "b02e8c9d-7a33-4c7e-a4ff-618d3b115711": {
      "ai_tool": [
        [
          {
            "node": "342b0843-15d7-4f62-8a6d-5ef82fe03dd8",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "a5d31991-4bbb-4cf3-bfc7-ed1a756e6455": {
      "ai_tool": [
        [
          {
            "node": "342b0843-15d7-4f62-8a6d-5ef82fe03dd8",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "58e19949-145c-4bdb-ad2b-82fdfd356c21": {
      "ai_languageModel": [
        [
          {
            "node": "a5d31991-4bbb-4cf3-bfc7-ed1a756e6455",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "94ebb27d-22da-473c-95de-f2a5034dd61c": {
      "ai_languageModel": [
        [
          {
            "node": "342b0843-15d7-4f62-8a6d-5ef82fe03dd8",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "ef34bd91-3b12-4638-bf9e-72f1043798c3": {
      "ai_languageModel": [
        [
          {
            "node": "a36019e0-0b00-41f9-9b27-4461900fc949",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "b2fcab88-76ab-4d8e-8c72-a8159d006c72": {
      "ai_languageModel": [
        [
          {
            "node": "1d0dc13d-a0e5-4aef-856b-2e42371a0bfc",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "cc8342da-8df2-4072-b6d1-8a058ea3f712": {
      "ai_languageModel": [
        [
          {
            "node": "47def529-ad89-4f05-857d-6903ce14fb81",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "ec4da24e-f1dc-4749-b03b-5edcd9ecf061": {
      "ai_languageModel": [
        [
          {
            "node": "877450ee-1eac-4a73-ad5b-47ddbbe3381e",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "8a29c24c-932e-46c1-a050-ac52a20ee968": {
      "ai_languageModel": [
        [
          {
            "node": "41652593-78c9-40f0-ab38-adaf345cc1fb",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "1d0dc13d-a0e5-4aef-856b-2e42371a0bfc": {
      "ai_tool": [
        [
          {
            "node": "342b0843-15d7-4f62-8a6d-5ef82fe03dd8",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "877450ee-1eac-4a73-ad5b-47ddbbe3381e": {
      "ai_tool": [
        [
          {
            "node": "342b0843-15d7-4f62-8a6d-5ef82fe03dd8",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "41652593-78c9-40f0-ab38-adaf345cc1fb": {
      "ai_tool": [
        [
          {
            "node": "342b0843-15d7-4f62-8a6d-5ef82fe03dd8",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "a36019e0-0b00-41f9-9b27-4461900fc949": {
      "ai_tool": [
        [
          {
            "node": "342b0843-15d7-4f62-8a6d-5ef82fe03dd8",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "47def529-ad89-4f05-857d-6903ce14fb81": {
      "ai_tool": [
        [
          {
            "node": "342b0843-15d7-4f62-8a6d-5ef82fe03dd8",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "92da8211-5d45-465f-a8c9-5bb000d7ce05": {
      "main": [
        [
          {
            "node": "342b0843-15d7-4f62-8a6d-5ef82fe03dd8",
            "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 查看

分享此工作流

分类

分类: 34