GPT-4とSlack/Gmailを使ったRedditトレンド分析の自動化
中級
これはAI, Marketing分野の自動化ワークフローで、11個のノードを含みます。主にGmail, Slack, Reddit, Agent, ScheduleTriggerなどのノードを使用、AI技術を活用したスマート自動化を実現。 Redditのトレンド分析をGPT-4とSlack/Gmailによる配信で自動化
前提条件
- •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": "Reddit投稿を取得",
"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": "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": "AIによる洞察を生成",
"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": "要約を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": "要約を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": "付箋",
"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": "付箋1",
"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": "付箋2",
"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": "付箋9",
"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": "付箋3",
"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": "Reddit日次スキャンのトリガー",
"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で表示 →
このワークフローを共有