自动化活动营销内容生成器
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 24 个节点。主要使用 Set, Code, Merge, Slack, Webhook 等节点。 使用GPT-4、Google Sheets和Slack生成活动营销内容
- •Slack Bot Token 或 Webhook URL
- •HTTP Webhook 端点(n8n 会自动生成)
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
{
"id": "qDuGzbzSIxRn2kXc",
"meta": {
"instanceId": "dd69efaf8212c74ad206700d104739d3329588a6f3f8381a46a481f34c9cc281",
"templateCredsSetupCompleted": true
},
"name": "自动化活动营销内容生成器",
"tags": [],
"nodes": [
{
"id": "578f8ee9-2919-4983-a478-3d585b817b60",
"name": "Webhook触发器",
"type": "n8n-nodes-base.webhook",
"position": [
-944,
16
],
"webhookId": "event-content-gen",
"parameters": {
"path": "create-event-content",
"options": {},
"httpMethod": "POST"
},
"typeVersion": 1
},
{
"id": "54e2d7e7-57d3-4c94-93f8-81ec16a0779e",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1008,
-224
],
"parameters": {
"color": 5,
"width": 196,
"height": 404,
"content": "🚀 **WEBHOOK 触发器**"
},
"typeVersion": 1
},
{
"id": "c0491f96-c43c-4107-bcbc-de033b215ca1",
"name": "提取活动数据",
"type": "n8n-nodes-base.set",
"position": [
-720,
16
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "2b330412-8516-4434-985a-32285891725e",
"name": "便签 1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-784,
-224
],
"parameters": {
"width": 192,
"height": 400,
"content": "📋 **提取数据**"
},
"typeVersion": 1
},
{
"id": "cf6f8699-3112-45cf-8199-b0d8489c6f25",
"name": "生成邮件内容",
"type": "n8n-nodes-base.httpRequest",
"position": [
-480,
-384
],
"parameters": {
"url": "https://api.openai.com/v1/chat/completions",
"options": {},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "model",
"value": "gpt-4"
},
{
"name": "messages",
"value": "=[{\"role\": \"system\", \"content\": \"You are an expert email marketer. Create compelling email content.\"}, {\"role\": \"user\", \"content\": \"Create email campaign for Event: {{ $json.event_name }}, Date: {{ $json.event_date }}, Location: {{ $json.event_location }}, Audience: {{ $json.target_audience }}, Features: {{ $json.key_features }}. Generate: 1) Subject line (under 60 chars) 2) Email body (150-200 words) 3) CTA button text 4) PS line. Format as JSON with keys: subject, body, cta, ps\"}]"
},
{
"name": "temperature",
"value": "0.7"
}
]
}
},
"typeVersion": 4.1
},
{
"id": "670cbbd2-5b1f-459c-b2ae-71915dab55af",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-560,
-560
],
"parameters": {
"color": 3,
"height": 336,
"content": "📧"
},
"typeVersion": 1
},
{
"id": "13e5dc17-837e-4626-bdd6-93387d49e15d",
"name": "Generate Social Posts",
"type": "n8n-nodes-base.httpRequest",
"position": [
-480,
0
],
"parameters": {
"url": "https://api.openai.com/v1/chat/completions",
"options": {},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "model",
"value": "gpt-4"
},
{
"name": "messages",
"value": "=[{\"role\": \"system\", \"content\": \"You are a social media expert. Create engaging platform-optimized content.\"}, {\"role\": \"user\", \"content\": \"Create social posts for Event: {{ $json.event_name }}, Date: {{ $json.event_date }}, Location: {{ $json.event_location }}, Audience: {{ $json.target_audience }}, Features: {{ $json.key_features }}. Generate for: 1) LinkedIn (150 words) 2) Twitter (280 chars) 3) Instagram (with emojis) 4) Facebook (100 words). Format as JSON with keys: linkedin, twitter, instagram, facebook\"}]"
},
{
"name": "temperature",
"value": "0.8"
}
]
}
},
"typeVersion": 4.1
},
{
"id": "7e2d8a74-2aa0-4c67-8e49-4d7fa789d1c5",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-528,
-160
],
"parameters": {
"color": 3,
"height": 288,
"content": "📱 **SOCIAL MEDIA POSTS**\nGenerates for 4 platforms:\n- LinkedIn\n- Twitter/X\n- Instagram\n- Facebook"
},
"typeVersion": 1
},
{
"id": "74732679-24d0-4eee-b03c-c3759801dd87",
"name": "Generate Ad Copy",
"type": "n8n-nodes-base.httpRequest",
"position": [
-480,
336
],
"parameters": {
"url": "https://api.openai.com/v1/chat/completions",
"options": {},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "model",
"value": "gpt-4"
},
{
"name": "messages",
"value": "=[{\"role\": \"system\", \"content\": \"You are an advertising copywriter. Create high-converting ad copy.\"}, {\"role\": \"user\", \"content\": \"Create ad campaigns for Event: {{ $json.event_name }}, Date: {{ $json.event_date }}, Location: {{ $json.event_location }}, Audience: {{ $json.target_audience }}, Features: {{ $json.key_features }}. Generate: 1) Google Search Ad (30 char headline, 90 char description) 2) Facebook Ad (125 char text, 40 char headline) 3) LinkedIn Sponsored (150 char intro, 70 char headline). Format as JSON with keys: google_search, facebook_ad, linkedin_ad\"}]"
},
{
"name": "temperature",
"value": "0.7"
}
]
}
},
"typeVersion": 4.1
},
{
"id": "337bd89f-7d18-4db5-9e5c-c313efd29573",
"name": "便签 4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-528,
192
],
"parameters": {
"color": 3,
"height": 272,
"content": "💰 **AD COPY GENERATOR**\nCreates paid ad content:\n- Google Search\n- Facebook Ads\n- LinkedIn Sponsored"
},
"typeVersion": 1
},
{
"id": "5c754765-d544-4d93-bf80-a3885c7fdb4a",
"name": "Parse Email Response",
"type": "n8n-nodes-base.code",
"position": [
-240,
-384
],
"parameters": {
"jsCode": "const email = JSON.parse($input.first().json.choices[0].message.content);\nreturn { email_content: email };"
},
"typeVersion": 2
},
{
"id": "7a72d83b-4ef1-468d-a795-63c0531b3017",
"name": "便签 5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-304,
-560
],
"parameters": {
"color": 4,
"height": 336,
"content": "🔄 **PARSE EMAIL**\nExtracts JSON from API\nCleans up response"
},
"typeVersion": 1
},
{
"id": "98b921e9-1e7b-4ad9-98d5-d3bc5011755d",
"name": "Parse Social Response",
"type": "n8n-nodes-base.code",
"position": [
-240,
0
],
"parameters": {
"jsCode": "const social = JSON.parse($input.first().json.choices[0].message.content);\nreturn { social_media: social };"
},
"typeVersion": 2
},
{
"id": "990f0a6d-f816-4fe6-9a8f-692a3b0791ee",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-272,
-160
],
"parameters": {
"color": 4,
"height": 288,
"content": "🔄 **PARSE SOCIAL**\nExtracts JSON from API\nCleans up response"
},
"typeVersion": 1
},
{
"id": "6babf8b0-a753-4e55-96f5-215839776512",
"name": "Parse Ad Response",
"type": "n8n-nodes-base.code",
"position": [
-240,
336
],
"parameters": {
"jsCode": "const ads = JSON.parse($input.first().json.choices[0].message.content);\nreturn { ad_content: ads };"
},
"typeVersion": 2
},
{
"id": "b8636a5e-b437-4fbf-8296-ec3330d1ea66",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-256,
192
],
"parameters": {
"color": 4,
"height": 288,
"content": "🔄 **PARSE ADS**\nExtracts JSON from API\nCleans up response"
},
"typeVersion": 1
},
{
"id": "5bb618d9-3862-4bb7-a5d2-692843effd3a",
"name": "Merge All Content",
"type": "n8n-nodes-base.merge",
"position": [
32,
-80
],
"parameters": {
"mode": "combine",
"options": {},
"combinationMode": "mergeByPosition"
},
"typeVersion": 2.1
},
{
"id": "6f23e238-2e67-4ba3-b1dc-925732ad0d23",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-16,
-240
],
"parameters": {
"color": 5,
"height": 336,
"content": "🔀 **MERGE CONTENT**\nCombines all generated:\n- Email content\n- Social posts\n- Ad copy"
},
"typeVersion": 1
},
{
"id": "c94fc96d-603b-4c25-89cd-e2ef1deeea19",
"name": "记录到 Google Sheets",
"type": "n8n-nodes-base.googleSheets",
"position": [
320,
-80
],
"parameters": {
"columns": {
"value": {},
"schema": [],
"mappings": [
{
"value": "={{ $now.toISO() }}",
"column": "Timestamp"
},
{
"value": "={{ $json.event_name }}",
"column": "Event_Name"
},
{
"value": "={{ $json.event_date }}",
"column": "Event_Date"
},
{
"value": "={{ $json.event_location }}",
"column": "Location"
},
{
"value": "={{ $json.email_content.subject }}",
"column": "Email_Subject"
},
{
"value": "Generated",
"column": "Status"
}
],
"mappingMode": "autoMapInputData",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "append",
"sheetName": "Marketing_Campaigns",
"documentId": "5x4w3v2u1t0s9r8q",
"authentication": "serviceAccount"
},
"credentials": {
"googleApi": {
"id": "ScSS2KxGQULuPtdy",
"name": "Google Sheets- test"
}
},
"typeVersion": 4
},
{
"id": "d30e9189-b6e6-4e3a-b3ec-63bc615a0cbe",
"name": "便签9",
"type": "n8n-nodes-base.stickyNote",
"position": [
272,
-272
],
"parameters": {
"color": 2,
"height": 368,
"content": "💾 **SAVE TO SHEETS**\nSheet: Marketing_Campaigns\nTracks all campaigns\nDoc: 5x4w3v2u1t0s9r8q"
},
"typeVersion": 1
},
{
"id": "d83a374f-9fe9-4413-b528-6f36459c334f",
"name": "Email Content Package",
"type": "n8n-nodes-base.emailSend",
"position": [
784,
-384
],
"webhookId": "596b14f4-f72f-4ae7-b381-1b62f032a225",
"parameters": {
"options": {
"ccEmail": "marketing-team@company.com"
},
"subject": "✨ Event Marketing Content Ready - {{ $json.event_name }}",
"toEmail": "events@company.com",
"fromEmail": "marketing@company.com"
},
"credentials": {
"smtp": {
"id": "G1kyF8cSWTZ4vouN",
"name": "SMTP -test"
}
},
"typeVersion": 2
},
{
"id": "f8c8fb29-f990-4f4a-bfd9-644f72df6a46",
"name": "便签 10",
"type": "n8n-nodes-base.stickyNote",
"position": [
704,
-544
],
"parameters": {
"color": 6,
"height": 336,
"content": "📧 **EMAIL DELIVERY**\nTo: events@company.com\nCC: marketing-team@company.com\nAll content in email body"
},
"typeVersion": 1
},
{
"id": "bfc9fd06-2a82-49e4-ba81-241bbc053597",
"name": "Notify Team on Slack",
"type": "n8n-nodes-base.slack",
"position": [
816,
64
],
"webhookId": "973995bf-176f-44c4-8c0d-e66aa639b9c8",
"parameters": {
"text": "=🎉 *New Event Marketing Content Generated!*\n\n*Event:* {{ $json.event_name }}\n*Date:* {{ $json.event_date }}\n*Location:* {{ $json.event_location }}\n\n✅ Email campaign ready\n✅ Social media posts created\n✅ Ad copy generated\n\n📧 Full package sent to events team!",
"user": {
"__rl": true,
"mode": "list",
"value": ""
},
"select": "user",
"otherOptions": {}
},
"credentials": {
"slackApi": {
"id": "MQ0fgwuS8AzfwFvy",
"name": "Slack account - test "
}
},
"typeVersion": 2.1
},
{
"id": "11cb7cc9-42d5-4331-9477-760d4b844605",
"name": "便签11",
"type": "n8n-nodes-base.stickyNote",
"position": [
720,
-112
],
"parameters": {
"height": 320,
"content": "💬 **SLACK NOTIFICATION**\nChannel: #marketing-updates\nChannel ID: C11223MARKETING\nTeam alert with summary"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "de94feee-93f7-4195-8538-f7a155144756",
"connections": {
"Webhook Trigger": {
"main": [
[
{
"node": "Extract Event Data",
"type": "main",
"index": 0
}
]
]
},
"Generate Ad Copy": {
"main": [
[
{
"node": "Parse Ad Response",
"type": "main",
"index": 0
}
]
]
},
"Merge All Content": {
"main": [
[
{
"node": "Log to Google Sheets",
"type": "main",
"index": 0
}
]
]
},
"Extract Event Data": {
"main": [
[
{
"node": "Generate Email Content",
"type": "main",
"index": 0
},
{
"node": "Generate Social Posts",
"type": "main",
"index": 0
},
{
"node": "Generate Ad Copy",
"type": "main",
"index": 0
}
]
]
},
"Log to Google Sheets": {
"main": [
[
{
"node": "Email Content Package",
"type": "main",
"index": 0
},
{
"node": "Notify Team on Slack",
"type": "main",
"index": 0
}
]
]
},
"Parse Email Response": {
"main": [
[
{
"node": "Merge All Content",
"type": "main",
"index": 0
}
]
]
},
"Generate Social Posts": {
"main": [
[
{
"node": "Parse Social Response",
"type": "main",
"index": 0
}
]
]
},
"Parse Social Response": {
"main": [
[
{
"node": "Merge All Content",
"type": "main",
"index": 1
}
]
]
},
"Generate Email Content": {
"main": [
[
{
"node": "Parse Email Response",
"type": "main",
"index": 0
}
]
]
}
}
}如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Oneclick AI Squad
@oneclick-aiThe AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.
分享此工作流