Twitter线程(刷屏)翻译器和发布器
高级
这是一个AI, Marketing领域的自动化工作流,包含 62 个节点。主要使用 If, Set, Code, Wait, Merge 等节点,结合人工智能技术实现智能自动化。 使用OpenAI翻译并以多种语言重新发布Twitter线程
前置要求
- •Notion API Key
- •Twitter API 凭证
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
使用的节点 (62)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "IBfjTnWypBRXCPvj",
"meta": {
"instanceId": "98efd8f034313c65d85cf0927667bbf93252214bae7096a8dd3c1d18b0b96a02"
},
"name": "Twitter 线程(刷屏)翻译器和发布器",
"tags": [],
"nodes": [
{
"id": "72df7ac0-9e65-41f2-bdf4-180f3ed6f1e9",
"name": "当点击\"测试工作流\"时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
920,
-20
],
"parameters": {},
"typeVersion": 1
},
{
"id": "5716837e-9709-4ec8-b41d-1f17c4fe1f4b",
"name": "执行工作流",
"type": "n8n-nodes-base.executeWorkflow",
"position": [
1440,
-20
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "aa0f1d55-f9fc-4932-8109-fdbc3aaf36ea",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
1360,
-180
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "a54bc9c6-3120-49eb-b779-e3af80f5813a",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1060,
-180
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "5fdb1ec4-315f-4361-a069-5e9e25dc3934",
"name": "配置",
"type": "n8n-nodes-base.code",
"position": [
1140,
-20
],
"parameters": {},
"typeVersion": 2
},
{
"id": "174bc61b-1fb1-4772-bcf6-d0b223f0a57b",
"name": "Translator_openai",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
2140,
160
],
"parameters": {},
"typeVersion": 1.7
},
{
"id": "083b6c06-1944-49a9-bdc2-750810c2861d",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
2220,
400
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "88a7b3be-1128-4e46-a6fa-b0872b5970db",
"name": "重写器",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
2520,
160
],
"parameters": {},
"typeVersion": 1.8
},
{
"id": "59ca4c7a-2c45-4abc-b118-43303f830c8f",
"name": "便签10",
"type": "n8n-nodes-base.stickyNote",
"position": [
2480,
100
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "ec8bcd97-54a5-45aa-ac2c-3306f428e0f1",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
2080,
100
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "4e9f7da0-bd52-4de4-aad1-3f917d3dfda5",
"name": "登录 Twitter",
"type": "n8n-nodes-base.httpRequest",
"position": [
3560,
640
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "3ee576d3-e73e-4c1f-9fa9-446e6dc1da53",
"name": "等待2FA代码",
"type": "n8n-nodes-base.wait",
"position": [
4060,
640
],
"webhookId": "edf03471-76bd-4d9a-8c3e-7c18b0e4f039",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "d26e7f0f-8763-4c0d-ab0e-2e83816d0025",
"name": "使用2FA登录 Twitter",
"type": "n8n-nodes-base.httpRequest",
"position": [
4300,
640
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "7e92ad78-4d8f-45e4-942b-8613bc93d101",
"name": "检查登录状态",
"type": "n8n-nodes-base.if",
"position": [
4520,
640
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "335637cf-cea6-4bb2-a2c8-16cf11a1525d",
"name": "检查会话数据",
"type": "n8n-nodes-base.if",
"position": [
3160,
540
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "48c94aa1-8077-4c08-ad42-4fa70bca37d0",
"name": "设置第一条推文ID和会话",
"type": "n8n-nodes-base.set",
"position": [
5180,
620
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "3a768947-083a-493e-a080-b5daa7f7c2b9",
"name": "发布第一条推文",
"type": "n8n-nodes-base.httpRequest",
"position": [
5440,
620
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "54f189cc-0dcb-4c9f-8324-0c671db903ca",
"name": "检查发布状态",
"type": "n8n-nodes-base.if",
"position": [
5660,
620
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "c5e56b2b-0250-4fb2-9662-1398d139b83e",
"name": "授权错误",
"type": "n8n-nodes-base.if",
"position": [
5880,
760
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "96149e63-37be-4148-8b66-d84ebc74715f",
"name": "更新 Twitter 会话",
"type": "n8n-nodes-base.notion",
"position": [
4800,
600
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "c8ff5ba5-a9a3-46f6-847b-0d6521c6fd1f",
"name": "获取 Twitter 会话",
"type": "n8n-nodes-base.notion",
"position": [
2940,
540
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "c30a3783-46f4-4aea-bf3b-6bae0feaea03",
"name": "login_2fa 错误",
"type": "n8n-nodes-base.if",
"position": [
3880,
920
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "d34a6dbb-1a42-489f-8778-06f1493c329a",
"name": "检查登录状态",
"type": "n8n-nodes-base.if",
"position": [
3720,
640
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "9cab075a-55f0-4754-9015-3c22b65caee0",
"name": "第一条推文或线程",
"type": "n8n-nodes-base.if",
"position": [
4840,
200
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "8234f0ee-7184-4aea-ba3a-0197dca248e2",
"name": "设置推文信息",
"type": "n8n-nodes-base.set",
"position": [
5160,
-240
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "64257a36-2fd5-48fa-ad94-3e3bee2fdbbc",
"name": "检查发布状态1",
"type": "n8n-nodes-base.if",
"position": [
5680,
-240
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "d5788735-40be-46cc-8aa9-eba78cce3bb9",
"name": "授权错误1",
"type": "n8n-nodes-base.if",
"position": [
5820,
-80
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "8c0a7f58-51af-44fe-acb9-a3d5048b226b",
"name": "发布回复推文",
"type": "n8n-nodes-base.httpRequest",
"position": [
5420,
-240
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "e6b16945-b9d2-43cb-a6a2-d82a892fb185",
"name": "便签 5",
"type": "n8n-nodes-base.stickyNote",
"position": [
2880,
480
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "d9712b4b-c340-4e8c-a447-7aefe0315490",
"name": "设置迭代输出",
"type": "n8n-nodes-base.code",
"position": [
6220,
200
],
"parameters": {},
"typeVersion": 2
},
{
"id": "e90d235e-ca52-44f7-ae11-80ebf8871f32",
"name": "主循环",
"type": "n8n-nodes-base.splitInBatches",
"position": [
1900,
-20
],
"parameters": {},
"typeVersion": 3
},
{
"id": "952d5f9d-9db9-42ff-a00c-166bc2023c3a",
"name": "便签 4",
"type": "n8n-nodes-base.stickyNote",
"position": [
5100,
540
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "44e8e0ea-d063-4a58-9c64-4f38c9af3efe",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
5100,
-320
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "c299b7bf-ebff-4908-8020-3d3707406bcc",
"name": "提取推文列表",
"type": "n8n-nodes-base.code",
"position": [
1660,
-20
],
"parameters": {},
"typeVersion": 2
},
{
"id": "aec16371-e942-4be9-9b00-809ca0d54e84",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
1060,
-360
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "4f42b137-0150-44d1-b628-b5f945d8a259",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
1360,
-360
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "9b936b1c-f594-453e-9a43-be8e655debd1",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
2080,
-100
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "2cac2fc1-d3ff-42c2-ba1a-f65daf439ea5",
"name": "便签11",
"type": "n8n-nodes-base.stickyNote",
"position": [
2480,
-100
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "dd6dc5c9-5950-4e8e-8810-941ee1e3fa4c",
"name": "### 替换 Airtable 连接",
"type": "n8n-nodes-base.stickyNote",
"position": [
2880,
1080
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "1837647c-8619-41b3-8635-18ba646d6bd6",
"name": "发送错误消息",
"type": "n8n-nodes-base.noOp",
"position": [
4760,
920
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3828dc13-6ed4-4ca8-a1fc-1e26700a71fb",
"name": "便签12",
"type": "n8n-nodes-base.stickyNote",
"position": [
5100,
1020
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "9637b6f0-5792-42ff-adf1-96f96a8ed389",
"name": "便签13",
"type": "n8n-nodes-base.stickyNote",
"position": [
5100,
-560
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "9aa336df-7dec-4eb9-a3f7-5f1844497147",
"name": "完成",
"type": "n8n-nodes-base.noOp",
"position": [
2100,
-280
],
"parameters": {},
"typeVersion": 1
},
{
"id": "99d86957-c9f7-4f5c-a7c9-8d8cb4bfd78f",
"name": "合并第一条推文和其他推文",
"type": "n8n-nodes-base.merge",
"position": [
2940,
2120
],
"parameters": {},
"typeVersion": 3.1
},
{
"id": "69946d5e-1730-4b33-98f0-474507c7740b",
"name": "当由另一个工作流执行时",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
1160,
2120
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "2c8025d2-fade-45bf-b5bf-184766b1ec79",
"name": "无操作,不执行任何操作",
"type": "n8n-nodes-base.noOp",
"position": [
3400,
2120
],
"parameters": {},
"typeVersion": 1
},
{
"id": "15e79dd7-cce8-4c22-a6e7-b0326218147b",
"name": "提取推文ID和用户名",
"type": "n8n-nodes-base.function",
"position": [
1520,
2240
],
"parameters": {},
"typeVersion": 1
},
{
"id": "5d476c98-feb5-4c4e-97f5-64e23798432c",
"name": "获取第一条推文",
"type": "n8n-nodes-base.httpRequest",
"position": [
1740,
2020
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "81a08de6-85d6-4f57-9602-7484d696b431",
"name": "提取对话和作者ID",
"type": "n8n-nodes-base.function",
"position": [
1960,
2120
],
"parameters": {},
"typeVersion": 1
},
{
"id": "efe5470a-618b-4c19-8da3-a49cfeb4aea0",
"name": "合并所有推文信息",
"type": "n8n-nodes-base.merge",
"position": [
2180,
2240
],
"parameters": {},
"typeVersion": 3.1
},
{
"id": "2b02d409-d36d-4c13-9380-0e7e24f35e37",
"name": "获取推文回复",
"type": "n8n-nodes-base.httpRequest",
"onError": "continueRegularOutput",
"position": [
2400,
2240
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "833c0d80-fa81-4db9-a720-cf4626445c46",
"name": "获取与第一条推文相关的推文",
"type": "n8n-nodes-base.code",
"position": [
2620,
2240
],
"parameters": {},
"typeVersion": 2
},
{
"id": "90b985e7-8e14-4801-a315-e52e52d57cac",
"name": "过滤空项",
"type": "n8n-nodes-base.filter",
"position": [
3160,
2120
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "da5309da-bc63-4157-b790-102728307f4e",
"name": "便签14",
"type": "n8n-nodes-base.stickyNote",
"position": [
1460,
1960
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b6a229b1-a4db-4d32-a46c-5dda58885597",
"name": "便签15",
"type": "n8n-nodes-base.stickyNote",
"position": [
1920,
1960
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "e0919f2e-6771-4df3-9d72-88333ef2a717",
"name": "便签16",
"type": "n8n-nodes-base.stickyNote",
"position": [
2780,
1960
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "c8a1b8e9-23b6-4561-aa55-6471e47f9703",
"name": "便签17",
"type": "n8n-nodes-base.stickyNote",
"position": [
1460,
1800
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "fe98b5de-7600-47fc-8b6f-4487646d7c35",
"name": "便签18",
"type": "n8n-nodes-base.stickyNote",
"position": [
1920,
1800
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "c468ca50-25c1-4467-9065-46a1a69dd253",
"name": "便签 19",
"type": "n8n-nodes-base.stickyNote",
"position": [
2780,
1800
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "22d1bd3b-ce0b-455f-b750-321f322be192",
"name": "便签20",
"type": "n8n-nodes-base.stickyNote",
"position": [
1000,
1800
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "2bd70d81-4345-4f4b-99df-a030269a6168",
"name": "便利贴21",
"type": "n8n-nodes-base.stickyNote",
"position": [
1000,
1660
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "bf8de65a-d7b2-42ea-89e9-d89c3bae92a3",
"name": "移除此节点",
"type": "n8n-nodes-base.twitter",
"position": [
2320,
-280
],
"parameters": {},
"typeVersion": 2
}
],
"active": false,
"pinData": {
"When clicking ‘Test workflow’": [
{
"json": {
"language": "German",
"tweet_url": ""
}
}
]
},
"settings": {
"timezone": "Europe/London",
"callerPolicy": "workflowsFromSameOwner",
"executionOrder": "v1"
},
"versionId": "156bf779-c9ab-4cae-b275-cdf7dd5b57e3",
"connections": {
"DONE": {
"main": [
[
{
"node": "REMOVE THIS NODE",
"type": "main",
"index": 0
}
]
]
},
"config": {
"main": [
[
{
"node": "Execute Workflow",
"type": "main",
"index": 0
}
]
]
},
"Rewriter": {
"main": [
[
{
"node": "Get twitter session",
"type": "main",
"index": 0
}
]
]
},
"MAIN_LOOP": {
"main": [
[
{
"node": "DONE",
"type": "main",
"index": 0
}
],
[
{
"node": "Translator_openai",
"type": "main",
"index": 0
}
]
]
},
"Check login": {
"main": [
[
{
"node": "Update twitter session",
"type": "main",
"index": 0
}
],
[
{
"node": "Send error message",
"type": "main",
"index": 0
}
]
]
},
"Check posting": {
"main": [
[
{
"node": "set_iteration_outputs",
"type": "main",
"index": 0
}
],
[
{
"node": "Authorization Error",
"type": "main",
"index": 0
}
]
]
},
"Login Twitter": {
"main": [
[
{
"node": "Check login status",
"type": "main",
"index": 0
}
]
]
},
"Check posting1": {
"main": [
[
{
"node": "set_iteration_outputs",
"type": "main",
"index": 0
}
],
[
{
"node": "Authorization Error1",
"type": "main",
"index": 0
}
]
]
},
"Get first tweet": {
"main": [
[
{
"node": "Extract Conversation and Author ID",
"type": "main",
"index": 0
},
{
"node": "Merge first tweet and others",
"type": "main",
"index": 0
}
]
]
},
"Set tweet infos": {
"main": [
[
{
"node": "Post reply tweet",
"type": "main",
"index": 0
}
]
]
},
"login_2fa error": {
"main": [
[
{
"node": "Login Twitter with 2fa",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait for 2fa code",
"type": "main",
"index": 0
}
]
]
},
"Execute Workflow": {
"main": [
[
{
"node": "Extract tweets list",
"type": "main",
"index": 0
}
]
]
},
"Post first tweet": {
"main": [
[
{
"node": "Check posting",
"type": "main",
"index": 0
}
]
]
},
"Post reply tweet": {
"main": [
[
{
"node": "Check posting1",
"type": "main",
"index": 0
}
]
]
},
"Filter empty ones": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
},
"Get Tweet Replies": {
"main": [
[
{
"node": "Fetch tweets which are connected to first tweet",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Translator_openai",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Rewriter",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Translator_openai": {
"main": [
[
{
"node": "Rewriter",
"type": "main",
"index": 0
}
]
]
},
"Wait for 2fa code": {
"main": [
[
{
"node": "Login Twitter with 2fa",
"type": "main",
"index": 0
}
]
]
},
"Check login status": {
"main": [
[
{
"node": "Get twitter session",
"type": "main",
"index": 0
}
],
[
{
"node": "login_2fa error",
"type": "main",
"index": 0
}
]
]
},
"Check session data": {
"main": [
[
{
"node": "First tweet or thread",
"type": "main",
"index": 0
}
],
[
{
"node": "Login Twitter",
"type": "main",
"index": 0
}
]
]
},
"Authorization Error": {
"main": [
[
{
"node": "Login Twitter",
"type": "main",
"index": 0
}
]
]
},
"Extract tweets list": {
"main": [
[
{
"node": "MAIN_LOOP",
"type": "main",
"index": 0
}
]
]
},
"Get twitter session": {
"main": [
[
{
"node": "Check session data",
"type": "main",
"index": 0
}
]
]
},
"Authorization Error1": {
"main": [
[],
[
{
"node": "Get twitter session",
"type": "main",
"index": 0
}
]
]
},
"First tweet or thread": {
"main": [
[
{
"node": "Set tweet infos",
"type": "main",
"index": 0
}
],
[
{
"node": "Set first tweet id and session",
"type": "main",
"index": 0
}
]
]
},
"Merge all tweet infos": {
"main": [
[
{
"node": "Get Tweet Replies",
"type": "main",
"index": 0
}
]
]
},
"set_iteration_outputs": {
"main": [
[
{
"node": "MAIN_LOOP",
"type": "main",
"index": 0
}
]
]
},
"Login Twitter with 2fa": {
"main": [
[
{
"node": "Check login",
"type": "main",
"index": 0
}
]
]
},
"Update twitter session": {
"main": [
[
{
"node": "Get twitter session",
"type": "main",
"index": 0
}
]
]
},
"Merge first tweet and others": {
"main": [
[
{
"node": "Filter empty ones",
"type": "main",
"index": 0
}
]
]
},
"Extract Tweet ID and Username": {
"main": [
[
{
"node": "Get first tweet",
"type": "main",
"index": 0
},
{
"node": "Merge all tweet infos",
"type": "main",
"index": 1
}
]
]
},
"Set first tweet id and session": {
"main": [
[
{
"node": "Post first tweet",
"type": "main",
"index": 0
}
]
]
},
"When Executed by Another Workflow": {
"main": [
[
{
"node": "Extract Tweet ID and Username",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Test workflow’": {
"main": [
[
{
"node": "config",
"type": "main",
"index": 0
}
]
]
},
"Extract Conversation and Author ID": {
"main": [
[
{
"node": "Merge all tweet infos",
"type": "main",
"index": 0
}
]
]
},
"Fetch tweets which are connected to first tweet": {
"main": [
[
{
"node": "Merge first tweet and others",
"type": "main",
"index": 1
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 人工智能, 营销
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
(Duc)深度研究市场模板
集成PerplexityAI研究和OpenAI内容的多层级WordPress博客生成器
If
Set
Xml
+28
132 节点Daniel Ng
人工智能
在可视化参考库中探索n8n节点
在可视化参考库中探索n8n节点
If
Ftp
Set
+93
113 节点I versus AI
其他
WordPress博客自动化专业版(深度研究)v1
WordPress自动博客专业版 - 含深度研究的内容自动化机器
If
Set
Xml
+24
77 节点Daniel Ng
人工智能
[模板] AI宠物店 v8
🐶 AI宠物店助手 - 集成GPT-4o、Google日历和WhatsApp/Instagram/Facebook
If
N8n
Set
+38
244 节点Amanda Benks
销售
Twitter线程抓取器:提取并合并线程推文
使用TwitterAPI.io提取并合并Twitter(X)线程
Code
Merge
Filter
+6
18 节点enes cingoz
人工智能
Overpass 潜在客户生成系统
使用 OpenStreetMap 数据生成商业线索并保存到 Google Sheets
If
Set
Code
+12
27 节点Akram Kadri
销售
工作流信息
难度等级
高级
节点数量62
分类2
节点类型18
作者
enes cingoz
@ecingozSoftware developer with hands-on experience across a wide range of automation domains, including autonomous vehicles, bots, AI-driven automations, and intelligent agents. Passionate about building solutions that leverage cutting-edge technology to solve real-world problems and streamline complex processes. Always eager to explore new challenges and contribute to innovative projects in the automation and AI space.
外部链接
在 n8n.io 查看 →
分享此工作流