Templates / Discord AI-powered bot

Discord AI-powered bot

Needs changes

by Eduard ✓ · 33,852 views · created 2023-07-24 · Support Chatbot, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: OpenAI (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 9 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Discord.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).

  1. Analyze user request (OpenAI): work with chat
  2. Parse JSON (Edit Fields (Set)): sets or maps fields
  3. Select category (Switch): routes items into 3 branches
  4. User Success Dept (Discord): uses Discord
  5. IT Dept (Discord): uses Discord
  6. Helpdesk (Discord): uses Discord

Services it uses

Discord

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • OpenAI (legacy) in Analyze user request: replace with OpenAI node (AI section).
Removed in 3.0Replace with
OpenAI (legacy)
Analyze user request
OpenAI node (AI section)

Nodes used (7)

From the author

This workflow is a template example for making Discord GPT-powered bots. Incoming user requests are analysed and categorised via OpenAI node with the help of a hand-crafted prompt. The response message is then routed to a different Discord channel.

Excerpt from Eduard's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.