Reddit内容问答聊天机器人(GPT-4o与Reddit API)
中级
这是一个AI Chatbot, Multimodal AI领域的自动化工作流,包含 8 个节点。主要使用 RedditTool, Agent, ChatTrigger, LmChatOpenAi 等节点。 Reddit内容问答聊天机器人(GPT-4o与Reddit API)
前置要求
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "ad0113c344ee237399e44e9f11798b05baeb83a6196d514a9ae9d2ad71c3b5c9",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "f966f105-0988-437e-bebe-84121c89dfe9",
"name": "当收到聊天消息时",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-976,
2560
],
"webhookId": "ad1294f1-1091-42d7-80f2-41d377299768",
"parameters": {
"options": {}
},
"typeVersion": 1.3
},
{
"id": "294fd612-26cd-4383-9581-4f6e669eaac6",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-784,
2960
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o",
"cachedResultName": "gpt-4o"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "4l6TDfLZVFS24g3X",
"name": "OpenAi account 4"
}
},
"typeVersion": 1.2
},
{
"id": "044ac4e0-5e78-41af-a732-3f584c2779a6",
"name": "获取 Reddit 中的多篇帖子",
"type": "n8n-nodes-base.redditTool",
"position": [
-224,
2976
],
"parameters": {
"limit": 10,
"filters": {},
"operation": "getAll",
"subreddit": "n8n"
},
"credentials": {
"redditOAuth2Api": {
"id": "JXK42cl5SoUEQdRB",
"name": "Reddit account"
}
},
"typeVersion": 1
},
{
"id": "df6bb5d2-ac16-4efc-bdba-2be080ee9278",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1200,
2304
],
"parameters": {
"color": 7,
"width": 1216,
"height": 928,
"content": "# 📋 与 Reddit 聊天 (AI + Reddit API)"
},
"typeVersion": 1
},
{
"id": "e22689e8-1ff1-4316-aea2-b1a27a870399",
"name": "便签 25",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1648,
2304
],
"parameters": {
"width": 400,
"height": 928,
"content": ""
},
"typeVersion": 1
},
{
"id": "3b3755cb-eb84-4f10-8419-a18496290b6c",
"name": "Reddit 聊天机器人",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-736,
2512
],
"parameters": {
"options": {
"systemMessage": "use the reddit tool to answer user questions. "
}
},
"typeVersion": 2.2
},
{
"id": "ce415562-f1df-4f57-83ab-56de33c5723c",
"name": "便签56",
"type": "n8n-nodes-base.stickyNote",
"position": [
-896,
2784
],
"parameters": {
"color": 3,
"width": 288,
"height": 304,
"content": "### 2️⃣ 设置 OpenAI 连接"
},
"typeVersion": 1
},
{
"id": "52718d5c-52a0-466f-9603-c586b9c6cb4d",
"name": "便签 26",
"type": "n8n-nodes-base.stickyNote",
"position": [
-336,
2528
],
"parameters": {
"color": 3,
"width": 288,
"height": 624,
"content": "### 2️⃣ 设置 Reddit API"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Reddit Chatbot",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Get many posts in Reddit": {
"ai_tool": [
[
{
"node": "Reddit Chatbot",
"type": "ai_tool",
"index": 0
}
]
]
},
"When chat message received": {
"main": [
[
{
"node": "Reddit Chatbot",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - AI 聊天机器人, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用GPT-5 Nano多语言聊天机器人自动处理电商客户支持
使用GPT-5 Nano多语言聊天机器人自动处理电商客户支持
Set
Merge
Split Out
+6
13 节点Robert Breen
AI 聊天机器人
创建使用GPT-4o的Slack聊天机器人实现自动回复
创建使用GPT-4o的Slack聊天机器人实现自动回复
Code
Slack
Agent
+3
9 节点Robert Breen
AI 聊天机器人
新闻搜索与分类聊天机器人(Google News、SerpAPI和OpenAI)
使用Google News、SerpAPI和OpenAI的新闻搜索与分类聊天机器人
Split Out
Aggregate
Serp Api
+5
11 节点Robert Breen
AI 聊天机器人
使用 GPT-4o 通过自然语言查询 Monday.com 任务
使用 GPT-4o 通过自然语言查询 Monday.com 任务
Set
Merge
Aggregate
+6
13 节点Robert Breen
AI 聊天机器人
使用OpenAI GPT自然语言查询Trello看板
使用OpenAI GPT通过自然语言查询Trello看板
Set
Merge
Trello
+6
15 节点Robert Breen
AI 聊天机器人
基于 Google Finance、SerpAPI 和 OpenAI 的财务数据问答聊天机器人
集成 Google Finance、SerpAPI 和 OpenAI 的财务数据问答聊天机器人
Set
Http Request
Agent
+3
9 节点Robert Breen
AI 聊天机器人
工作流信息
难度等级
中级
节点数量8
分类2
节点类型5
作者
Robert Breen
@rbreenProfessional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.
外部链接
在 n8n.io 查看 →
分享此工作流