Templates / Multi-functional Discord bot: Llama AI, image generation & knowledge base

Multi-functional Discord bot: Llama AI, image generation & knowledge base

Needs changes

by Antonis Logothetis · 1,641 views · created 2025-03-19 · AI, AI Chatbot

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: SerpApi (Google Search), AI Agent v1 (old agent modes). 2 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 30 nodes and runs on n8n instance events. Along the way it connects Discord, SerpApi (Google Search), Wikipedia and Ollama Chat Model. It also calls api.groq.com and generativelanguage.googleapis.com over HTTP.

How it runs

Trigger: On n8n instance events.

  1. Reciever (Discord): get many (message)
  2. Users message (If): checks a condition and branches into true / false
  3. Letters OR Voice (If): checks a condition and branches into true / false
  4. Wait: waits 7 seconds
  5. Shorting Voice (If): checks a condition and branches into true / false
  6. General Agent (AI Agent): runs an AI agent, with model: Ollama Chat Model; 2 tools (Search, Wikipedia); memory: Window Buffer Memory
  7. Fetch Audio from URL (HTTP Request): calls an HTTP API
  8. Image Type (If): checks a condition and branches into true / false
  9. Discord: work with message
  10. GROQ Audio To Text (HTTP Request): calls api.groq.com (POST)

…plus 11 more steps. See the full node list below.

Services it uses

DiscordSerpApi (Google Search)WikipediaOllama Chat Model

HTTP calls to: api.groq.com, generativelanguage.googleapis.com

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • SerpApi (Google Search) in Search, Search3: no direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node.
  • AI Agent v1 (old agent modes) in General Agent (v1.7), Image Prompter (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
SerpApi (Google Search)
Search, Search3
No direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node
AI Agent v1 (old agent modes)
General Agent (v1.7), Image Prompter (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (11)

From the author

Multi-functional Discord Bot with Llama AI, Image Generation, and Knowledge Base Integration 🤖🎨🧠 Overview 🔍 This workflow creates a Discord bot that can: Monitor Discord messages from specific users 👀 Process different media types (images, audio, text)…

Excerpt from Antonis Logothetis'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.