Create an all-in-one Discord assistant with Gemini, Llama Vision & Flux images
Needs changesWhat this workflow does
This AI workflow has 36 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Gemini Chat Model and OpenRouter Chat Model. It also calls tinyurl.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Has Atc (If): checks a condition and branches into true / false
- Code: runs custom JavaScript code
- If: checks a condition and branches into true / false
- If: checks a condition and branches into true / false
- Code: runs custom JavaScript code
- Discord AI Response Agent (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; memory: Simple Memory
- HTTP Request: calls an HTTP API
- HTTP Request: calls an HTTP API
- Fields - Set Values (Edit Fields (Set)): sets 3 fields: model, width, height
- correctNaming (Code): runs custom JavaScript code
…plus 18 more steps. See the full node list below.
Services it uses
HTTP calls to: tinyurl.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Discord AI Response Agent (v1.8), AI Agent - Create Image From Prompt (v1.7), Discord AI Response Agent1 (v1.8)…: replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Discord AI Response Agent (v1.8), AI Agent - Create Image From Prompt (v1.7), Discord AI Response Agent1 (v1.8), Discord AI Response Agent2 (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- Webhook
n8n-nodes-base.webhook - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Respond to Webhook
n8n-nodes-base.respondToWebhook - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - HTTP Request
n8n-nodes-base.httpRequest - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter
From the author
This n8n template demonstrates how to build O'Carla, an advanced all-in-one Discord AI assistant. It intelligently handles natural conversations, professional image generation, and visual file analysis within a single server integration. Use cases are many:…