Twitter机器人
初级
这是一个Social Media、Multimodal AI领域的自动化工作流,包含 5 个节点。主要使用 HttpRequest、ScheduleTrigger、OpenAi 等节点。 使用Perplexity和GPT-4o从热门话题自动生成每日推文
前置要求
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
使用的节点 (5 个)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "TA6dqryAbKV1yAxr",
"meta": {
"instanceId": "3c82d70d2a271b10484a01cc5bda61d873d7ed5fe5ae5cd954c35b8d356b36d9",
"templateCredsSetupCompleted": true
},
"name": "Twitter 机器人",
"tags": [],
"nodes": [
{
"id": "8d163c95-cdfc-4f46-b845-75e07050873d",
"name": "计划触发器",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
0,
0
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 9
}
]
}
},
"typeVersion": 1.2
},
{
"id": "4bd9e56d-eff2-4a32-9daa-2ce4925a0bc9",
"name": "HTTP 请求",
"type": "n8n-nodes-base.httpRequest",
"position": [
220,
0
],
"parameters": {
"url": "https://api.perplexity.ai/chat/completions",
"method": "POST",
"options": {},
"jsonBody": "{\n \"model\": \"sonar-pro\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"What are the most important or interesting developments from the last 24–48 hours in the [ENTER YOUR TOPIC OR INDUSTRY] space? Include key names, links, and short, high-signal summaries. Prioritize novelty, usefulness, and recency. Keep it concise and skip the fluff.\"\n }\n ]\n}\n\n",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer "
},
{
"name": "Content-type",
"value": "application/json"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "c76949c3-cef2-4c69-88f4-19d4e25408f9",
"name": "OpenAI",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
440,
0
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "chatgpt-4o-latest",
"cachedResultName": "CHATGPT-4O-LATEST"
},
"options": {},
"messages": {
"values": [
{
"role": "system",
"content": "You are a sharp, human-sounding ghostwriter for high-signal Twitter thought leaders. Your job is to turn raw summaries into compelling tweets that *do not sound AI-generated*. Each tweet should feel like it came from a real person interpreting the data — with original insight, tone, and rhythm.\n\nAvoid generic phrases and obvious AI patterns. Vary sentence structure, include your own perspective or commentary, and add a touch of edge, humor, or curiosity when appropriate.\n\nUse human rhetorical devices like:\n- Open-ended questions\n- Unfinished thoughts\n- Bold claims\n- Contrarian takes\n- “Here’s the twist…” setups\n\nEach tweet should be designed to spark conversation** — end with a question, bold statement, or call for opinion.\n"
},
{
"content": "=Here’s a summary of recent developments in [ENTER YOUR TOPIC OR INDUSTRY] industry. Rewrite it as 1 tweet in my voice: intelligent, confident, and human. Don’t just summarize — interpret.\n\nEach tweet should:\n- Be under 280 characters\n- Avoid sounding like ChatGPT wrote it\n- Include original commentary or interpretation\n- End the thread with a rhetorical hook, question, or challenge to invite replies\n\n{{ $json.choices[0].message.content }}\n"
}
]
},
"jsonOutput": true
},
"credentials": {
"openAiApi": {
"id": "2WiJYLBy9nw257M0",
"name": "OpenAi account"
}
},
"typeVersion": 1.8
},
{
"id": "20bcd15f-da5a-448e-9ee4-d879bc65bd58",
"name": "HTTP 请求 1",
"type": "n8n-nodes-base.httpRequest",
"position": [
816,
0
],
"parameters": {
"url": "https://api.twitter.com/2/tweets",
"method": "POST",
"options": {},
"jsonBody": "={\n \"text\": \"{{ $json.message.content.tweet }}\"\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "twitterOAuth2Api"
},
"credentials": {
"twitterOAuth2Api": {
"id": "n54fvCWTpoM5Ijr0",
"name": "X account"
}
},
"typeVersion": 4.2
},
{
"id": "71509553-6eca-4d9b-92f4-3b1d1ec2b49b",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
-260
],
"parameters": {
"color": 4,
"width": 620,
"height": 240,
"content": "✅ 自动化每日推文机器人"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "6b632944-7366-4ea2-a260-7d2f5962c60e",
"connections": {
"OpenAI": {
"main": [
[
{
"node": "HTTP Request1",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "OpenAI",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
这是一个初级难度的工作流,适用于Social Media、Multimodal AI等场景。适合 n8n 新手,包含 1-5 个节点的简单工作流
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
AI驱动的Instagram评论自动回复
使用OpenAI和Redis跟踪自动化Instagram评论回复
If
Code
Merge
+6
27 节点Oneclick AI Squad
Social Media
Telegram自动复制器
基于GPT-4o-mini的Telegram频道内容自动复制与翻译
If
Set
Code
+6
19 节点Shohani
Social Media
自动化推荐工作流
使用GPT-4处理推荐信,并通过Google表格自动生成社交媒体卡片
If
Set
Code
+9
34 节点Jitesh Dugar
Social Media
AI生成LinkedIn帖子含人工审批
使用GPT-4、GoToHuman和Blotato的AI生成LinkedIn帖子含人工审批
Code
Merge
Filter
+10
19 节点Robert Breen
Social Media
## 适用对象
AI驱动的每日LinkedIn帖子创建器,集成OpenAI反馈循环和Notion
Set
Notion
Linked In
+12
28 节点Nabin Bhandari
Social Media
Arunava的多智能体智能Reddit自动化
使用AI品牌提及和Baserow跟踪自动评论Reddit帖子
If
Set
Code
+12
35 节点Arunava
Social Media
工作流信息
难度等级
初级
节点数量5
分类2
节点类型4
作者
Grant Warfield
@gwarfieldAutomation consultant helping founders and teams streamline operations using AI. I specialize in building custom workflows for lead gen, client onboarding, and internal processes. Book a consult or grab one of my templates to save hours of manual work.
外部链接
在 n8n.io 上查看 →
分享此工作流