Reply to WhatsApp text, audio, image, and video with Google Gemini and Wikipedia
Needs changesWhat this workflow does
This AI workflow has 24 nodes and runs on WhatsApp events (messages). Along the way it connects WhatsApp Business Cloud, Wikipedia and Google Gemini Chat Model. It also calls generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: On WhatsApp events (messages).
- Split Out: splits a list into separate items
- Redirect Message Types (Switch): routes items into 3 branches
- Get Audio URL (WhatsApp Business Cloud): media url get
- Get Video URL (WhatsApp Business Cloud): media url get
- Get Image URL (WhatsApp Business Cloud): media url get
- Get Text (Wait): waits 0 seconds
- Download Audio (HTTP Request): calls an HTTP API
- Download Video (HTTP Request): calls an HTTP API
- Download Image (HTTP Request): calls an HTTP API
- Text Summarizer (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
…plus 8 more steps. See the full node list below.
Services it uses
HTTP calls to: generativelanguage.googleapis.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 AI Agent (v1.6): 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 |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (12)
- WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - HTTP Request
n8n-nodes-base.httpRequest - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Edit Fields (Set)
n8n-nodes-base.set - Split Out
n8n-nodes-base.splitOut - Wikipedia
@n8n/n8n-nodes-langchain.toolWikipedia - Switch
n8n-nodes-base.switch - Wait
n8n-nodes-base.wait - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
Quick overview This workflow auto-replies to incoming WhatsApp messages (text, audio, video, or images) by downloading any media, converting it to text with Google Gemini, and generating a concise answer with a Gemini-powered agent that can use Wikipedia for…