使用Dumpling AI和GPT-4o从文章自动生成LinkedIn帖子
中级
这是一个AI, Marketing领域的自动化工作流,包含 10 个节点。主要使用 Set, HttpRequest, GoogleSheets, ManualTrigger, Agent 等节点,结合人工智能技术实现智能自动化。 使用Dumpling AI和GPT-4o从文章自动生成LinkedIn帖子
前置要求
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "1Y5FzMEqaYHEsXxR",
"meta": {
"instanceId": "a1ae5c8dc6c65e674f9c3947d083abcc749ef2546dff9f4ff01de4d6a36ebfe6",
"templateCredsSetupCompleted": true
},
"name": "使用 Dumpling AI 和 GPT-4o 从文章自动生成 LinkedIn 帖子",
"tags": [],
"nodes": [
{
"id": "3e99adb0-0445-4516-9404-a96e5e273722",
"name": "启动工作流",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-1060,
-120
],
"parameters": {},
"typeVersion": 1
},
{
"id": "bed177e1-ac0b-4159-8ac7-ae51af05da37",
"name": "从表格获取\"待办\"主题",
"type": "n8n-nodes-base.googleSheets",
"position": [
-840,
-120
],
"parameters": {
"options": {
"returnFirstMatch": true
},
"filtersUI": {
"values": [
{
"lookupValue": "To do",
"lookupColumn": "Status"
}
]
},
"sheetName": {
"__rl": true,
"mode": "list",
"value": "",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/173W0S2tDXXSSFmN6igySo9ftW4_MTH1Tr_2wGIRwHdg/edit#gid=0",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/173W0S2tDXXSSFmN6igySo9ftW4_MTH1Tr_2wGIRwHdg/edit?usp=drivesdk",
"cachedResultName": "content library"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "GaJqJHuS5mQxap7q",
"name": "Google Sheets account"
}
},
"typeVersion": 4.6
},
{
"id": "cfd11e52-1a0b-4f55-a623-40f7f8233ef1",
"name": "通过 Dumpling AI 搜索抓取文章",
"type": "n8n-nodes-base.httpRequest",
"position": [
-620,
-120
],
"parameters": {
"url": " https://app.dumplingai.com/api/v1/search",
"method": "POST",
"options": {},
"jsonBody": "={\n \"query\": \"{{ $json.Topic }}\",\n \"numResultsToScrape\": \"3\",\n \"scrapeResults\": \"true\"\n}\n ",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "RLFzAcGRepr5eXZB",
"name": "Dumpling AI-n8n"
}
},
"typeVersion": 4.2
},
{
"id": "96f68697-8ef2-42a7-b9ef-10044cac2b0a",
"name": "为 LangChain Agent 启用 GPT-4o",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-540,
100
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {
"responseFormat": "json_object"
}
},
"credentials": {
"openAiApi": {
"id": "fdhWALG84tBLgSZT",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "d2acc5f1-b366-4e07-8f1b-953c591f63b0",
"name": "总结 3 篇文章 + 生成 LinkedIn 帖子 + 图片提示",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-400,
-120
],
"parameters": {
"text": "=Article 1:{{ $json.organic[0].scrapeOutput.content }}\n\nArticle 2:{{ $json.organic[1].scrapeOutput.content }}\n\nArticle 3:{{ $json.organic[2].scrapeOutput.content }}",
"options": {
"systemMessage": "= Agent Prompt (Final Version):\nYou are a professional AI content assistant. Based on the 3 articles I will provide, generate a LinkedIn post and also create an image prompt that visually represents the message of the post.\n\nInstructions:\n\nRead all 3 articles.\n\nCombine key insights from them into a single LinkedIn post.\n\nWrite the post in a conversational, professional tone — no robotic language.\n\nThe first line must grab attention and spark curiosity.\n\nAvoid hashtags, emojis, and clickbait phrases.\n\nKeep the post under 1,300 characters.\n\nUse correct punctuation only. Do not use hyphens.\n\nAfter writing the post, generate a short and clear image prompt that can be used to create a LinkedIn graphic. It should be based on the main message or visual idea from the post.\n\nReturn your response in the following JSON format:\n\njson\nCopy\nEdit\n{\n \"postText\": \"Write the full LinkedIn post here...\",\n \"imagePrompt\": \"A short visual prompt that summarizes the theme of the post, such as 'A modern workspace with AI-powered tools automating business processes'\"\n}\n"
},
"promptType": "define"
},
"typeVersion": 1.9
},
{
"id": "d1f25b3a-3044-4ca6-937e-c61439d545c8",
"name": "提取帖子文本和图片提示",
"type": "n8n-nodes-base.set",
"position": [
-20,
-120
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "bc9d47f0-b4b9-437e-b37d-c1396d316b15",
"name": "postText",
"type": "string",
"value": "={{ JSON.parse($json[\"output\"]).postText }}\n"
},
{
"id": "fc8def21-2cc2-4029-a66d-df02530a1535",
"name": "imagePrompt",
"type": "string",
"value": "={{ JSON.parse($json[\"output\"]).imagePrompt }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "1ccd4791-92c9-4572-9e0c-cb60477dabdd",
"name": "使用 Dumpling AI 生成图片",
"type": "n8n-nodes-base.httpRequest",
"position": [
220,
-120
],
"parameters": {
"url": " https://app.dumplingai.com/api/v1/generate-ai-image",
"method": "POST",
"options": {},
"jsonBody": "={\n \"model\": \"FLUX.1-pro\",\n \"input\": {\n \"prompt\": \"{{ $json.imagePrompt }}\"\n }\n}\n\n ",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "RLFzAcGRepr5eXZB",
"name": "Dumpling AI-n8n"
}
},
"typeVersion": 4.2
},
{
"id": "be8bd9f0-1cff-41c9-b26e-c6f365aa86fd",
"name": "使用帖子和图片更新 Google Sheets",
"type": "n8n-nodes-base.googleSheets",
"position": [
440,
-120
],
"parameters": {
"columns": {
"value": {
"Image": "={{ $json.images[0].url }}",
"Topic": "={{ $(' Get \"To do\" Topics from Sheet').item.json.Topic }}",
"Status": "created",
"Content": "={{ $(' Extract Post Text and Image Prompt').item.json.postText }}"
},
"schema": [
{
"id": "Topic",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Topic",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Status",
"type": "string",
"display": true,
"required": false,
"displayName": "Status",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Content",
"type": "string",
"display": true,
"required": false,
"displayName": "Content",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Image",
"type": "string",
"display": true,
"required": false,
"displayName": "Image",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "row_number",
"type": "string",
"display": true,
"removed": true,
"readOnly": true,
"required": false,
"displayName": "row_number",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"Topic"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "update",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/173W0S2tDXXSSFmN6igySo9ftW4_MTH1Tr_2wGIRwHdg/edit#gid=0",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/173W0S2tDXXSSFmN6igySo9ftW4_MTH1Tr_2wGIRwHdg/edit?usp=drivesdk",
"cachedResultName": "content library"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "GaJqJHuS5mQxap7q",
"name": "Google Sheets account"
}
},
"typeVersion": 4.6
},
{
"id": "44ad06d9-d5f7-4a3c-a894-943ec46ac0f0",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1060,
-280
],
"parameters": {
"width": 900,
"height": 200,
"content": "### 📚 使用 AI 获取主题并总结文章"
},
"typeVersion": 1
},
{
"id": "528021a8-6b26-4177-b9fa-eb2405ac7d8d",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-100,
-280
],
"parameters": {
"width": 760,
"height": 200,
"content": "### 🧠 优化输出并存储内容"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "5208235f-4bc6-417c-8a38-2bc92b7a75f9",
"connections": {
"Start Workflow": {
"main": [
[
{
"node": " Get \"To do\" Topics from Sheet",
"type": "main",
"index": 0
}
]
]
},
" Get \"To do\" Topics from Sheet": {
"main": [
[
{
"node": "Scrape Articles via Dumpling AI Search",
"type": "main",
"index": 0
}
]
]
},
"Generate Image with Dumpling AI": {
"main": [
[
{
"node": "Update Google Sheet with Post & Image",
"type": "main",
"index": 0
}
]
]
},
"Enable GPT-4o for LangChain Agent": {
"ai_languageModel": [
[
{
"node": "Summarize 3 Articles + Generate LinkedIn Post + Image Prompt",
"type": "ai_languageModel",
"index": 0
}
]
]
},
" Extract Post Text and Image Prompt": {
"main": [
[
{
"node": "Generate Image with Dumpling AI",
"type": "main",
"index": 0
}
]
]
},
"Scrape Articles via Dumpling AI Search": {
"main": [
[
{
"node": "Summarize 3 Articles + Generate LinkedIn Post + Image Prompt",
"type": "main",
"index": 0
}
]
]
},
"Summarize 3 Articles + Generate LinkedIn Post + Image Prompt": {
"main": [
[
{
"node": " Extract Post Text and Image Prompt",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 人工智能, 营销
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
AI新闻简报构建器:使用Dumpling AI抓取网站,GPT-4o摘要
AI新闻简报构建器:Dumpling AI抓取网站,GPT-4o摘要
Set
Code
Gmail
+6
10 节点Yang
人工智能
## 🤖 **LIGUA033/LOREALCANTARA - 其他生成工作流**
基于AI的Meta广告分析与创建:使用Gemini、GPT-4.1 Mini和广告管理器
If
Set
Wait
+13
61 节点Daniel Setzermann
人工智能
博客WordPress复制销售
使用GPT-4、Perplexity AI和WordPress自动化SEO博客内容创建
Set
Code
Notion
+16
39 节点LukaszB
人工智能
自动化博客撰写与社交媒体推广代理
使用GPT-4、Perplexity和WordPress自动化SEO博客创建+社交媒体
Set
Code
Gmail
+21
79 节点LukaszB
设计
用于 WordPress 的 AI 博客内容撰写器与图片生成器
基于GPT Image 1和Perplexity的WordPress自动化博客内容创建器
Set
Code
Notion
+16
41 节点LukaszB
人工智能
基于AI的新闻转视频生成器(使用Heygen和GPT4o)
使用Heygen和GPT-4o将RSS新闻转换为AI虚拟形象视频
Set
Code
Wait
+9
18 节点David Olusola
设计