Templates / WhatsApp AI agent that understand text, image , audio

WhatsApp AI agent that understand text, image , audio

Ready for 3.0

by Tharwat Mohamed βœ“ Β· 771 views Β· created 2025-09-04 Β· Support Chatbot, AI Chatbot

Ready 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 Business CloudGoogle GeminiAI AgentGoogle Gemini Chat ModelSimple MemoryGoogle SheetsGoogle Docs

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

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.