Multi-functional Discord bot: Llama AI, image generation & knowledge base
Needs changesWhat 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.
- Reciever (Discord): get many (message)
- Users message (If): checks a condition and branches into true / false
- Letters OR Voice (If): checks a condition and branches into true / false
- Wait: waits 7 seconds
- Shorting Voice (If): checks a condition and branches into true / false
- General Agent (AI Agent): runs an AI agent, with model: Ollama Chat Model; 2 tools (Search, Wikipedia); memory: Window Buffer Memory
- Fetch Audio from URL (HTTP Request): calls an HTTP API
- Image Type (If): checks a condition and branches into true / false
- Discord: work with message
- GROQ Audio To Text (HTTP Request): calls api.groq.com (POST)
…plus 11 more steps. See the full node list below.
Services it uses
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.0 | Replace 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)
- Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Discord
n8n-nodes-base.discord - Wait
n8n-nodes-base.wait - n8n Trigger
n8n-nodes-base.n8nTrigger - Code
n8n-nodes-base.code - SerpApi (Google Search)
@n8n/n8n-nodes-langchain.toolSerpApi - Wikipedia
@n8n/n8n-nodes-langchain.toolWikipedia - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Ollama Chat Model
@n8n/n8n-nodes-langchain.lmChatOllama - AI Agent
@n8n/n8n-nodes-langchain.agent
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)…