通过关键词搜索和Markdown格式化提取和过滤Reddit帖子和评论
高级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 28 个节点。主要使用 If, Set, Code, Sort, Limit 等节点。 通过关键词搜索和Markdown格式化提取和过滤Reddit帖子和评论
前置要求
- •HTTP Webhook 端点(n8n 会自动生成)
- •可能需要目标 API 的认证凭证
使用的节点 (28)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "b6be3264d10563f53f60f119665bef14019561878be2f73c07ebd4200e9255cf"
},
"nodes": [
{
"id": "5496b8fe-32be-493c-a2ae-fad6d361014f",
"name": "循环遍历项目1",
"type": "n8n-nodes-base.splitInBatches",
"position": [
-1504,
448
],
"parameters": {},
"typeVersion": 3
},
{
"id": "59247686-2eda-4469-9d68-0b1f8d52a12e",
"name": "设置 Reddit 帖子",
"type": "n8n-nodes-base.set",
"position": [
-1696,
80
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "63275ce4-a50f-4e00-91d4-bb51e3df36cb",
"name": "限制",
"type": "n8n-nodes-base.limit",
"position": [
-1824,
448
],
"parameters": {},
"typeVersion": 1
},
{
"id": "33804ada-8577-4b83-83a0-b74f91104aee",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3392,
-288
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "684a2d18-25a9-4f34-bb29-b9d46c4b28a5",
"name": "reddit tool",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
-2752,
896
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "cb8d6327-88e7-4cb9-acfb-84605f13a821",
"name": "reddit tool webhook",
"type": "n8n-nodes-base.webhook",
"position": [
-2448,
80
],
"webhookId": "c09463b8-3516-4923-b9aa-0b066f129113",
"parameters": {},
"typeVersion": 2
},
{
"id": "4ec37d5e-ef00-44ef-8c6b-6d6fd5e2cbd8",
"name": "设置关键词",
"type": "n8n-nodes-base.set",
"position": [
-2256,
80
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "9175f95b-f5e2-489a-861c-7949d2db285c",
"name": "最近 x 天内发布的帖子",
"type": "n8n-nodes-base.code",
"position": [
-1472,
80
],
"parameters": {},
"typeVersion": 2
},
{
"id": "6b7470b4-65aa-4f2c-a008-ed6eef7ba397",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1520,
-48
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "263183fe-7b02-4ff1-956d-28bfa15f6d6f",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1248,
-48
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "0c45491f-4b76-40f0-8410-d551d2621587",
"name": "点赞数要求筛选",
"type": "n8n-nodes-base.if",
"position": [
-1200,
80
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "e1d390d1-29e3-4d31-acae-c4c9bc91e38c",
"name": "移除重复项",
"type": "n8n-nodes-base.code",
"position": [
-944,
64
],
"parameters": {},
"typeVersion": 2
},
{
"id": "13b76f3c-e990-4fbf-886c-a0b2005a8b86",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1936,
352
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b777993a-f03e-4ba4-a813-43802abc1715",
"name": "按点赞数排序(降序)",
"type": "n8n-nodes-base.sort",
"position": [
-752,
64
],
"parameters": {},
"typeVersion": 1
},
{
"id": "a46e9767-a252-4e39-8310-856656f5934f",
"name": "设置循环帖子",
"type": "n8n-nodes-base.set",
"position": [
-1280,
432
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "3a50e4ad-90c6-4612-a9d5-ee826eaa68c7",
"name": "获取评论",
"type": "n8n-nodes-base.reddit",
"onError": "continueRegularOutput",
"position": [
-1104,
432
],
"parameters": {},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "5bc159c0-bcd8-4d4c-ba1a-17483eaf7585",
"name": "格式化评论",
"type": "n8n-nodes-base.code",
"position": [
-752,
432
],
"parameters": {},
"typeVersion": 2
},
{
"id": "d7c820da-8e61-4237-8efb-96990900b4fe",
"name": "响应Webhook",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
-832,
768
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "36aa471a-8f26-4b89-b372-3ba090616a64",
"name": "设置最终报告",
"type": "n8n-nodes-base.set",
"position": [
-528,
432
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "734f851c-f2ff-49f9-9ea0-0999eb0ebe68",
"name": "合并帖子",
"type": "n8n-nodes-base.code",
"position": [
-1072,
768
],
"parameters": {},
"typeVersion": 2
},
{
"id": "dc9b994c-58cc-4280-8afb-9196d57005a4",
"name": "聚合",
"type": "n8n-nodes-base.aggregate",
"position": [
-1264,
768
],
"parameters": {},
"executeOnce": false,
"typeVersion": 1
},
{
"id": "187745d9-4901-44a3-825d-ccf46a4bd62f",
"name": "reddit tool webhook subreddit",
"type": "n8n-nodes-base.webhook",
"position": [
-2448,
-128
],
"webhookId": "c09463b8-3516-4923-b9aa-0b066f129113",
"parameters": {},
"typeVersion": 2
},
{
"id": "2ac6a250-45cc-45ac-8ac0-a2fcb80f79aa",
"name": "设置子版块",
"type": "n8n-nodes-base.set",
"position": [
-2256,
-128
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "ef67aa90-01e2-4ff4-a8ef-f2ebd1803be7",
"name": "从子版块获取帖子",
"type": "n8n-nodes-base.reddit",
"position": [
-1984,
-128
],
"parameters": {},
"typeVersion": 1
},
{
"id": "8aea3692-5840-4aeb-a89c-5c466c1f4b4d",
"name": "按关键词搜索帖子",
"type": "n8n-nodes-base.reddit",
"position": [
-1984,
80
],
"parameters": {},
"typeVersion": 1
},
{
"id": "932c4490-dfa4-493e-b0c2-dc7bc089d3c8",
"name": "reddit tool http request(用于子版块)",
"type": "n8n-nodes-base.httpRequest",
"position": [
-3312,
880
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "5f9f3c5b-8632-40bd-94cf-5275f1664145",
"name": "reddit tool http request",
"type": "n8n-nodes-base.httpRequest",
"position": [
-3040,
896
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "b3ee3ffa-9392-45d6-8e84-dd2b1e5f0184",
"name": "提取前 20 条评论",
"type": "n8n-nodes-base.code",
"position": [
-944,
432
],
"parameters": {},
"executeOnce": true,
"typeVersion": 2
}
],
"pinData": {},
"connections": {
"Limit": {
"main": [
[
{
"node": "Loop Over Items1",
"type": "main",
"index": 0
}
]
]
},
"Aggregate": {
"main": [
[
{
"node": "Combine Posts",
"type": "main",
"index": 0
}
]
]
},
"Get Comments": {
"main": [
[
{
"node": "Extract Top 20 Comments",
"type": "main",
"index": 0
}
]
]
},
"Set keywords": {
"main": [
[
{
"node": "Search for posts by keywords",
"type": "main",
"index": 0
}
]
]
},
"Combine Posts": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
},
"Set subreddit": {
"main": [
[
{
"node": "Get posts from subreddit",
"type": "main",
"index": 0
}
]
]
},
"Format Comments": {
"main": [
[
{
"node": "Set Final Report",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items1": {
"main": [
[
{
"node": "Aggregate",
"type": "main",
"index": 0
}
],
[
{
"node": "Set post for Loop",
"type": "main",
"index": 0
}
]
]
},
"Set Final Report": {
"main": [
[
{
"node": "Loop Over Items1",
"type": "main",
"index": 0
}
]
]
},
"Set Reddit Posts": {
"main": [
[
{
"node": "Posted in Last x days",
"type": "main",
"index": 0
}
]
]
},
"Remove Duplicates": {
"main": [
[
{
"node": "Sort by upvotes (descending)",
"type": "main",
"index": 0
}
]
]
},
"Set post for Loop": {
"main": [
[
{
"node": "Get Comments",
"type": "main",
"index": 0
}
]
]
},
"reddit tool webhook": {
"main": [
[
{
"node": "Set keywords",
"type": "main",
"index": 0
}
]
]
},
"Posted in Last x days": {
"main": [
[
{
"node": "Upvotes Requirement Filtering",
"type": "main",
"index": 0
}
]
]
},
"Extract Top 20 Comments": {
"main": [
[
{
"node": "Format Comments",
"type": "main",
"index": 0
}
]
]
},
"Get posts from subreddit": {
"main": [
[
{
"node": "Set Reddit Posts",
"type": "main",
"index": 0
}
]
]
},
"Search for posts by keywords": {
"main": [
[
{
"node": "Set Reddit Posts",
"type": "main",
"index": 0
}
]
]
},
"Sort by upvotes (descending)": {
"main": [
[
{
"node": "Limit",
"type": "main",
"index": 0
}
]
]
},
"Upvotes Requirement Filtering": {
"main": [
[
{
"node": "Remove Duplicates",
"type": "main",
"index": 0
}
]
]
},
"reddit tool webhook subreddit": {
"main": [
[
{
"node": "Set subreddit",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
基于Gemini AI、Supabase和Nano-Banana的端到端博客创建自动化
使用Gemini AI、Supabase和Nano-Banana实现端到端博客创建自动化
If
Set
Code
+16
51 节点Muhammad Asadullah
内容创作
灵活新闻聚合器 - 多源集成、AI分析和可设置频道
多源新闻策展系统,集成Mistral AI分析、摘要和自定义频道
If
Set
Xml
+32
120 节点Hybroht
内容创作
在可视化参考库中探索n8n节点
在可视化参考库中探索n8n节点
If
Ftp
Set
+93
113 节点I versus AI
其他
GitHub 同步仪表板 - V2
具有提交历史和回滚功能的 GitHub 工作流版本控制仪表板
If
N8n
Set
+20
94 节点Eduard
开发运维
使用 Gemini AI 转录和摘要的 YouTube 频道监控并同步至 Google Sheets
使用 Gemini AI 转录和摘要的 YouTube 频道监控并同步至 Google Sheets
If
Set
Code
+10
33 节点Muhammad Asadullah
内容创作
内容生成器 v3
AI驱动博客自动化:使用GPT-4生成并发布SEO文章至WordPress和Twitter
If
Set
Code
+25
144 节点Jay Emp0
内容创作
工作流信息
难度等级
高级
节点数量28
分类2
节点类型13
作者
Muhammad Asadullah
@asadtechI am a Data Scientist, and Generative AI Developer with expertise in building AI applications, chatbots, and automation systems. Skilled in Python, R, and no-code/low-code platforms like n8n and Make, I combine strong technical knowledge in machine learning and NLP with hands-on experience in power systems, transformers, and solar design.
外部链接
在 n8n.io 查看 →
分享此工作流