🤖 Reddit content Q&A chatbot with GPT-4o and Reddit API

212 views · 🤖 AI Chatbots & Agents

Description

This workflow lets you chat with Reddit using OpenAI and the Reddit API.
The chatbot pulls posts from a subreddit and uses GPT to answer your questions.


⚙️ Setup Instructions

2️⃣ Set Up OpenAI Connection

  1. Go to OpenAI Platform
  2. Navigate to OpenAI Billing
  3. Add funds to your billing account
  4. Copy your API key into the OpenAI credentials in n8n

2️⃣ Set Up Reddit API

  1. Go to Reddit Apps
  2. Click Create App → Choose script type
  3. Fill in:
    • Name: (your choice)
    • Redirect URI: http://localhost:8080 (or your n8n URL)
    • Save → copy Client ID and Secret
  4. In n8n → Credentials → New → Reddit OAuth2 API
    • Enter Client ID + Client Secret
    • Log in with your Reddit account and approve access
  5. Attach this credential to the Reddit Tool node

🧠 How It Works


📬 Contact

Need help customizing this (e.g., targeting multiple subreddits or filtering posts)?

🔗 Nodes Used

AI Agent, OpenAI Chat Model, Chat Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup