使用GPT-4和Slack/Gmail分发自动化Reddit趋势分析
中级
这是一个AI, Marketing领域的自动化工作流,包含 11 个节点。主要使用 Gmail, Slack, Reddit, Agent, ScheduleTrigger 等节点,结合人工智能技术实现智能自动化。 通过GPT-4和Slack/Gmail分发实现Reddit趋势分析的自动化
前置要求
- •Google 账号和 Gmail API 凭证
- •Slack Bot Token 或 Webhook URL
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "5aaf4236c70e34e423fbdb2c7b754d19253a933bb1476d548f75848a01e473cf",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "e5b2e77c-54df-46e4-a130-b30eed7934ab",
"name": "Fetch Reddit Posts",
"type": "n8n-nodes-base.reddit",
"position": [
2440,
3580
],
"parameters": {
"limit": 5,
"keyword": "why I stopped using it",
"operation": "search",
"subreddit": "Chatgpt",
"additionalFields": {}
},
"typeVersion": 1
},
{
"id": "696586e7-a66b-49a9-a3e7-d309bb441951",
"name": "Summarize Posts with AI",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
2780,
3580
],
"parameters": {
"text": "=Analyze the following Reddit post. Classify its main topic in 3-5 words, and write a 1-sentence summary.\n\nTitle: {{ $json[\"title\"] }} \nContent: {{ $json.selftext }}\n",
"options": {},
"promptType": "define"
},
"typeVersion": 1.9
},
{
"id": "c665d7bb-0c34-4d34-807c-4861c984277e",
"name": "Generate AI Insights",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
2740,
3800
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"typeVersion": 1.2
},
{
"id": "57ba5821-49e1-4ede-9bb0-a7097f94a286",
"name": "Send Summary to Slack",
"type": "n8n-nodes-base.slack",
"position": [
3340,
3480
],
"webhookId": "e021423b-e10c-4044-96e4-46cfb82be060",
"parameters": {
"text": "=Topic:\n{{ $('Fetch Reddit Posts').item.json.subreddit }}\n\nSummary:\n{{ $json.output }}\n\nView on Reddit:\n{{ $('Fetch Reddit Posts').item.json.media_metadata.cnn80k7excte1.p[0].u }}",
"select": "channel",
"channelId": {
"__rl": true,
"mode": "list",
"value": "C08TTV0CC3E",
"cachedResultName": "all-nathing"
},
"otherOptions": {}
},
"typeVersion": 2.3
},
{
"id": "b4a501fb-7f2d-4d72-ae38-c418e10b588e",
"name": "Send Summary to Gmail",
"type": "n8n-nodes-base.gmail",
"position": [
3340,
3720
],
"webhookId": "c118adb5-da2c-4108-ae40-a056e2d51f89",
"parameters": {
"sendTo": "uu941401@gmail.com",
"message": "=Topic:\n{{ $('Fetch Reddit Posts').item.json.subreddit }}\n\nSummary:\n{{ $json.output }}\n\nView on Reddit:\n{{ $('Fetch Reddit Posts').item.json.media_metadata.cnn80k7excte1.p[0].u }}",
"options": {},
"subject": "=New Reddit Post on {{ $('Fetch Reddit Posts').item.json.subreddit }}"
},
"typeVersion": 2.1
},
{
"id": "0eb7d480-bf92-4794-af7c-320b1bee5687",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
2160,
2760
],
"parameters": {
"color": 3,
"width": 440,
"height": 1000,
"content": "## 🛫 Step 1: Get the Post\n\nThis is the **entry point** of the Reddit Insight workflow, responsible for fetching fresh Reddit content on a regular basis.\n\n### 🔁 **Trigger Daily Reddit Scan**\n\nThis **Schedule Trigger** node initiates the workflow automatically at a predefined time—typically once per day. It ensures that your automation always works with the most recent content from Reddit without any manual input.\n\n### 📥 **Fetch Reddit Posts**\n\nThis **Reddit node** is configured to search specific subreddits using filters like:\n\n* **Subreddit** (e.g., `technology`, `ai`)\n* **Search term** (e.g., `GPT-5`, `startup launch`)\n* **Time range** (`day`, `week`, etc.)\n* **Sort by** (`top`, `hot`, `new`)\n* **Limit** (e.g., 5 posts)\n\nIt pulls the top relevant posts based on these criteria and passes them along for AI analysis in the next step.\n\n> 🔍 This section ensures you're always working with timely, relevant Reddit discussions—perfect for trend monitoring or content summarization.\n\n---\n\nLet me know if you want to break this into a reusable subworkflow or add dynamic inputs via a UI form.\n"
},
"typeVersion": 1
},
{
"id": "c9b3000d-17df-4b32-b4d6-ca381b1f2aa7",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
2660,
3120
],
"parameters": {
"color": 4,
"width": 440,
"height": 820,
"content": "## 🧠 Step 2: Post Summarization\n\nThis section turns raw Reddit content into concise insights using AI.\n\n### 🤖 **Summarize Posts with AI**\n\nThe **AI Agent** receives posts and uses a connected chat model to analyze and summarize each one. It can extract key points, tone, and trends — making the content more actionable.\n\n### 🔗 **Generate AI Insights (OpenAI Chat Model)**\n\nThe summarization is powered by the **OpenAI Chat Model**, which processes each post using a tailored prompt.\n\n> 📌 This step helps convert Reddit noise into clear, valuable summaries for decision-making or sharing."
},
"typeVersion": 1
},
{
"id": "bdd58493-78ed-4dbc-ad6f-3fa136168a4e",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
3160,
2980
],
"parameters": {
"color": 6,
"width": 440,
"height": 920,
"content": "## 📤 Step 3: Send the Summary\n\nThis section distributes the AI-generated summary to communication channels.\n\n### 💬 **Send Summary to Slack**\n\nThe summarized content is sent to a **Slack channel** via a message post. Ideal for quick team updates directly in your workflow.\n\n### 📧 **Send Summary to Gmail**\n\nSimultaneously, the same summary is sent to a **Gmail inbox**, ensuring recipients outside Slack still get the insights.\n\n> 📌 This step ensures summaries are instantly shared with stakeholders via preferred communication tools."
},
"typeVersion": 1
},
{
"id": "4013e36b-6070-4120-a5cc-ae5824d3e1d9",
"name": "Sticky Note9",
"type": "n8n-nodes-base.stickyNote",
"position": [
480,
2760
],
"parameters": {
"color": 4,
"width": 1300,
"height": 320,
"content": "=======================================\n WORKFLOW ASSISTANCE\n=======================================\nFor any questions or support, please contact:\n Yaron@nofluff.online\n\nExplore more tips and tutorials here:\n - YouTube: https://www.youtube.com/@YaronBeen/videos\n - LinkedIn: https://www.linkedin.com/in/yaronbeen/\n=======================================\n"
},
"typeVersion": 1
},
{
"id": "22cc5f85-cd65-4fb9-ab3d-70393e580d55",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
480,
3100
],
"parameters": {
"color": 4,
"width": 1289,
"height": 2378,
"content": "Based on your example, here’s a detailed breakdown for your **Reddit to AI Summary for Slack & Gmail** workflow, using the same structure and clarity:\n\n---\n\n# 🔎 Reddit Insight Broadcaster\n\nAutomatically fetch top Reddit posts, generate insights using OpenAI, and broadcast summaries to Slack and Gmail. Perfect for:\n✅ Market Monitoring — get daily pulse on trends and user sentiment\n✅ Content Curation — surface engaging discussions for teams\n\n---\n\n## ⚙️ What's Used\n\n**n8n Nodes:**\nSchedule Trigger → Reddit → AI Agent → OpenAI Chat Model → Slack → Gmail\n\n**External Tools:**\n\n* **Reddit** – Public API via n8n's Reddit node\n* **OpenAI GPT** – For intelligent summarization or sentiment tagging\n* **Slack** – Post to selected channel\n* **Gmail** – Send summaries via email\n\n---\n\n## 🔑 Setup – Credentials Needed\n\n* **Reddit Access** – Use n8n Reddit node (API key or OAuth2 if rate-limited access is needed)\n* **OpenAI API Key** – Add in the OpenAI Chat node\n* **Slack OAuth2** – Connect your workspace\n* **Gmail OAuth2** – Connect your Google account\n\n---\n\n## 🚀 Workflow Steps\n\n1. **Trigger Every Morning**\n Scheduler runs daily at a set time.\n\n2. **Search Reddit Posts**\n Uses subreddit and keyword filters.\n\n3. **Analyze Content with AI**\n The AI Agent passes each post to OpenAI to:\n\n * Summarize discussion\n * Extract insights\n * Optionally classify sentiment\n\n4. **Broadcast Insights**\n\n * Post to a designated Slack channel\n * Send via Gmail to stakeholders\n\n---\n\n## 📥 Example Output (Slack/Gmail Message)\n\n```\n🔍 Top Reddit Discussion — r/technology\n\n**Title:** OpenAI releases new GPT model \n**Summary:** Users are discussing the implications of GPT-5's capabilities. General sentiment is excitement mixed with concern over ethical use. \n**Upvotes:** 1,200 | 💬 Comments: 350 \n🔗 [Read Post](https://reddit.com/r/technology/example)\n```\n\n---\n\n## 💡 Pro Tips\n\n* Change subreddit dynamically using variables or UI form\n* Use OpenAI to classify tone (positive/neutral/negative)\n* Add branching: e.g., only email posts with >500 upvotes\n* Extend to Notion or Google Sheets for archiving\n* Use emojis or markdown in Slack messages for better UX\n\n---\n\n## 🛠️ Customize It\n\n* **Add filters:** Only include posts with >X upvotes\n* **Score content:** Prioritize based on engagement + AI relevance\n* **Route by topic:** Post AI topics to `#ai`, startup topics to `#founders`\n* **Trigger on-demand:** Add webhook or form to control when it runs\n\n---\n\nThis workflow is a lightweight yet powerful Reddit monitoring tool—perfect for keeping your team updated, generating newsletter content, or tracking niche trends.\n📡 One bot. One summary. Fully automated."
},
"typeVersion": 1
},
{
"id": "3b1c680a-0c74-4a83-bf3f-163e9b5114e6",
"name": "Trigger Daily Reddit Scan",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
2220,
3580
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 9
}
]
}
},
"typeVersion": 1.2
}
],
"pinData": {},
"connections": {
"e5b2e77c-54df-46e4-a130-b30eed7934ab": {
"main": [
[
{
"node": "696586e7-a66b-49a9-a3e7-d309bb441951",
"type": "main",
"index": 0
}
]
]
},
"c665d7bb-0c34-4d34-807c-4861c984277e": {
"ai_languageModel": [
[
{
"node": "696586e7-a66b-49a9-a3e7-d309bb441951",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"696586e7-a66b-49a9-a3e7-d309bb441951": {
"main": [
[
{
"node": "57ba5821-49e1-4ede-9bb0-a7097f94a286",
"type": "main",
"index": 0
},
{
"node": "b4a501fb-7f2d-4d72-ae38-c418e10b588e",
"type": "main",
"index": 0
}
]
]
},
"3b1c680a-0c74-4a83-bf3f-163e9b5114e6": {
"main": [
[
{
"node": "e5b2e77c-54df-46e4-a130-b30eed7934ab",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 人工智能, 营销
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
自动新闻摘要与邮件简报(GPT-4、NewsAPI 和 Gmail)
使用 GPT-4、NewsAPI 和 Gmail 自动生成新闻摘要与邮件简报
Gmail
Http Request
Google Sheets
+
Gmail
Http Request
Google Sheets
7 节点Yaron Been
人工智能
FireCrawl摘要机器人
Firecrawl AI驱动的市场情报机器人:自动新闻洞察交付
Code
Slack
Http Request
+
Code
Slack
Http Request
10 节点Yaron Been
人工智能
AI YouTube分析助手:评论分析与洞察报告
AI YouTube分析助手:评论分析器与洞察报告生成器
If
Set
Code
+
If
Set
Code
19 节点Yaron Been
人工智能
使用 Phantombuster 的 LinkedIn 帖子互动
使用 Phantombuster、OpenAI GPT 和 Google Sheets 跟踪自动化 LinkedIn 互动
Http Request
Google Sheets
Agent
+
Http Request
Google Sheets
Agent
14 节点Yaron Been
人工智能
Crunchbase初创公司活动监控器
每日初创公司情报:使用GPT处理Crunchbase更新并发送电子邮件摘要
Set
Gmail
Http Request
+
Set
Gmail
Http Request
12 节点Yaron Been
人工智能
使用GPT-4为Slack和Airtable生成产品广告文案和行动号召
使用GPT-4为Slack和Airtable生成产品广告文案和行动号召
Slack
Airtable
Form Trigger
+
Slack
Airtable
Form Trigger
10 节点Yaron Been
人工智能
工作流信息
难度等级
中级
节点数量11
分类2
节点类型7
作者
Yaron Been
@yaron-nofluffBuilding AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host
外部链接
在 n8n.io 查看 →
分享此工作流