Twitter线程抓取器:提取并合并线程推文
高级
这是一个AI, Marketing领域的自动化工作流,包含 18 个节点。主要使用 Code, Merge, Filter, Function, HttpRequest 等节点,结合人工智能技术实现智能自动化。 使用TwitterAPI.io提取并合并Twitter(X)线程
前置要求
- •可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "23sZVFonPs0Q3gvm",
"meta": {
"instanceId": "98efd8f034313c65d85cf0927667bbf93252214bae7096a8dd3c1d18b0b96a02",
"templateCredsSetupCompleted": true
},
"name": "Twitter 线程抓取器:提取并合并线程中的推文",
"tags": [],
"nodes": [
{
"id": "209216e9-30f6-40d1-98a6-96324e28db47",
"name": "合并第一条推文和其他推文",
"type": "n8n-nodes-base.merge",
"position": [
1360,
-120
],
"parameters": {},
"typeVersion": 3.1
},
{
"id": "3429ac0d-1d24-4d30-aaac-a0ae6adaef93",
"name": "当点击\"测试工作流\"时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-420,
120
],
"parameters": {},
"typeVersion": 1
},
{
"id": "5df01f81-da74-4a17-8856-682f8bdf580e",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-120,
-280
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "fe1ba598-8c65-468e-bd58-b8b71d48e0f1",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
340,
-280
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "95f7ac46-d864-483c-bce3-482142fe3697",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1200,
-280
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "2a9eabb2-75a4-40a8-9379-0895203c49c9",
"name": "当由另一个工作流执行时",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
-420,
-120
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "ee80999e-4980-4794-ac69-9d2c43a7a9d5",
"name": "无操作,不执行任何操作",
"type": "n8n-nodes-base.noOp",
"position": [
1820,
-120
],
"parameters": {},
"typeVersion": 1
},
{
"id": "8acccfa4-5bb0-456a-ab7b-7eeef598cf8e",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-120,
-440
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "82efbaa8-03d6-4d05-81a4-e2bebe26f403",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
340,
-440
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "5734a4e8-a751-440e-b216-52fe8b257444",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
1200,
-440
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "36baf07f-abe4-46f1-8e8e-5344ee200f52",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-580,
-440
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "abd08db1-8742-4d52-b510-b3d6d68453be",
"name": "提取推文 ID 和用户名",
"type": "n8n-nodes-base.function",
"position": [
-60,
-5
],
"parameters": {},
"typeVersion": 1
},
{
"id": "a81d8f05-d7a6-4c97-b90b-2c7e9c7807f1",
"name": "获取第一条推文",
"type": "n8n-nodes-base.httpRequest",
"position": [
160,
-220
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "23a0d0a4-d119-4a25-8771-7b4aca3ffe5b",
"name": "提取对话和作者 ID",
"type": "n8n-nodes-base.function",
"position": [
380,
-120
],
"parameters": {},
"typeVersion": 1
},
{
"id": "c48394bc-e96d-455f-92a9-46db485e3aae",
"name": "合并所有推文信息",
"type": "n8n-nodes-base.merge",
"position": [
600,
-5
],
"parameters": {},
"typeVersion": 3.1
},
{
"id": "1683b177-c050-46fa-8714-c7af785297ca",
"name": "获取推文回复",
"type": "n8n-nodes-base.httpRequest",
"onError": "continueRegularOutput",
"position": [
820,
0
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "f85bbf89-c9e9-46f8-8f5a-14ca33c0e220",
"name": "获取与第一条推文相关的推文",
"type": "n8n-nodes-base.code",
"position": [
1040,
0
],
"parameters": {},
"typeVersion": 2
},
{
"id": "0fda4ada-cecd-4730-9ea9-1f385afe1c02",
"name": "过滤空项",
"type": "n8n-nodes-base.filter",
"position": [
1580,
-120
],
"parameters": {},
"typeVersion": 2.2
}
],
"active": false,
"pinData": {
"When clicking ‘Test workflow’": [
{
"json": {
"tweet_url": ""
}
}
]
},
"settings": {
"executionOrder": "v1"
},
"versionId": "805f0bc5-601e-4db7-ba87-7cdc4fef06dc",
"connections": {
"Get first tweet": {
"main": [
[
{
"node": "Extract Conversation and Author ID",
"type": "main",
"index": 0
},
{
"node": "Merge first tweet and others",
"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
}
]
]
},
"Merge all tweet infos": {
"main": [
[
{
"node": "Get Tweet Replies",
"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
}
]
]
},
"When Executed by Another Workflow": {
"main": [
[
{
"node": "Extract Tweet ID and Username",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Test workflow’": {
"main": [
[
{
"node": "Extract Tweet ID and Username",
"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)可能需要您自行付费。
相关工作流推荐
Twitter线程(刷屏)翻译器和发布器
使用OpenAI翻译并以多种语言重新发布Twitter线程
If
Set
Code
+15
62 节点enes cingoz
人工智能
AI个性化多产品邮件营销
基于SMTP轮换的AI个性化多产品邮件营销(GPT-4o/o3-mini)
If
Code
Wait
+16
41 节点Badr
销售
(Duc)深度研究市场模板
集成PerplexityAI研究和OpenAI内容的多层级WordPress博客生成器
If
Set
Xml
+28
132 节点Daniel Ng
人工智能
Overpass 潜在客户生成系统
使用 OpenStreetMap 数据生成商业线索并保存到 Google Sheets
If
Set
Code
+12
27 节点Akram Kadri
销售
社交媒体AI代理 - Telegram
基于AI的社交媒体放大器
Code
Wait
Merge
+11
26 节点Mudit Juneja
人工智能
自动化博客撰写与社交媒体推广代理
使用GPT-4、Perplexity和WordPress自动化SEO博客创建+社交媒体
Set
Code
Gmail
+21
79 节点LukaszB
设计
工作流信息
难度等级
高级
节点数量18
分类2
节点类型9
作者
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 查看 →
分享此工作流