WhatsApp AI agent that understand text, image , audio
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (12)
- WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Aggregate
n8n-nodes-base.aggregate - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - HTTP Request
n8n-nodes-base.httpRequest - Google Docs Tool
n8n-nodes-base.googleDocsTool - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch
What it does
Overview π This template is a multimodal WhatsApp assistant that understands text, images, and audio, aggregates media inputs, and returns intelligent replies using Google Gemini. It can fetch knowledge from Google Docs, log conversations into Google Sheets, and respond via WhatsApp β all orchestrated inside n8n. Features β¨ Multimodal input handling: Receives images and audio from WhatsApp, analyzes them, and sends contextual responses. πΌοΈπ§ Audio transcription: Converts voice messages to text for analysis. πβ‘οΈπ Image analysis: Extracts objects/labels/text from images to inform responses. πΌοΈπ Knowledge fetch: Pulls relevant documents from Google Docs for richer answers. ππ Conversation logging: Appends each interaction to Google Sheets for auditing or analytics. π Modular design: Clear subflows for media reception, transcription, image analysis, aggregation, and the AI Agent. βοΈ Ready for customization: Swap models, change providers, or extend with a vector store. π Requirements β
n8n instance (self-hosted or n8n.cloud) with public webhook access Google Cloud project with these APIs enabled: Vertex AI (Gemini), Cloud Vision API, Cloud Speech-to-Text, Drive & Docs & Sheets π§ Google Service Account JSON key (with permissions for above services) π WhatsApp Business API provider credentials (Twilio, 360dialog, or similar) π (Optional) Pinecone or another vector store if you want embeddings / retrieval augmentation ποΈ Setup Instructions π§ Import the workflow Download the .json from your package and in n8n Editor β Import β From File β select JSON. Save. Create credentials Google Service Account: Create service account in GCP, grant Vertex AI, Vision, Speech, Drive, Docs, Sheets roles, download JSON β create n8n Google Service Account credential and upload JSON. WhatsApp: Add your WhatsApp API credentials (API key/token, phone ID, webhook secret). (Optional) Vector store: Add Pinecone credentials if using embeddings. Configure media receiver nodes WhatsApp Trigger: Ensure webhook URL is set on your WhatsApp provider to forward incoming messages/media to n8n. π Audio Receiver nodes: point to incoming audio payload path or download URL. π§ Image Receiver nodes: point to image URL or attachment field. πΌοΈ Transcription & Image Analysis Transcribe Audio: Select Google Speech-to-Text via your Google Service Account credential. Confirm language and sampling settings. π£οΈβ‘οΈπ Analyze Image: Point to Vision API via same Google credential. Choose required outputs (labels, landmarks, OCR). π Aggregate media Confirm the Aggregate node collects text + transcribed audio + image analysis results into a single payload for the AI Agent. π§© AI Agent (Gemini) Open AI Agent node β choose your Google Gemini/Vertex AI credentials. Edit System Prompt to include: how to prioritize image/audio text, where to look up knowledge (Docs), and style/tone. Replace placeholders (business name, policies). βοΈ Knowledge Fetch (Google Docs) Configure Get a document in Google Docs node to point to your knowledge docs folder or specific document IDs. π Conversation Logging Configure Google Sheets node to append rows to your chosen spreadsheet (structure below). π§Ύ WhatsApp Reply Map AI Agent output to the WhatsApp Send message node and choose template messaging if needed. π¬ Test end-to-end Activate the workflow, send a text message, an image, and an audio message to your WhatsApp test number. Verify the AI reply and that logs appear in Google Sheets. π§ͺ Google Sheet: Conversation Log (suggested columns) ποΈ Column Type Description Timestamp Date/Time When the message arrived UserID Text WhatsApp user identifier (phone) MessageType Text text / image / audio / mixed MessageText Text Original text or transcribed text ImageAnalysis Text Vision API summary / labels / OCR text AttachmentURL Text Link to image/audio file AIResponse Text Final text reply sent to user Notes Text Any extra flags (e.g., escalation) Customization π Swap Gemini with another model