AutomationMart
Home/Browse/WhatsApp virtual agent with Gemini AI - handles text & voice with knowledge base
n8n

WhatsApp virtual agent with Gemini AI - handles text & voice with knowledge base

n8nn8n15 modulesv1.0
WhatsAppGemini

Overview This project is an AI-powered WhatsApp virtual agent built using n8n, designed to handle both text and voice-based customer messages automatically. The workflow integrates Google Gemini, Pinecone, and the WhatsApp Business API to provide intelligent, context-aware responses that feel natural and professional. --- How It Works Message Detection The workflow begins when a message arrives on WhatsApp. It identifies whether the message is

At a glance

WhatsApp virtual agent with Gemini AI - handles text & voice with knowledge base is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects WhatsApp, Gemini. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
WhatsApp, Gemini
Modules
15
Price
Free
Version
v1.0
WhatsApp virtual agent with Gemini AI - handles text & voice with knowledge base workflow diagram

About this workflow

Overview This project is an AI-powered WhatsApp virtual agent built using n8n, designed to handle both text and voice-based customer messages automatically. The workflow integrates Google Gemini, Pinecone, and the WhatsApp Business API to provide intelligent, context-aware responses that feel natural and professional. --- How It Works Message Detection The workflow begins when a message arrives on WhatsApp. It identifies whether the message is text or voice and routes it accordingly. Voice Message Handling 1. Audio messages are securely downloaded from WhatsApp. 2. The files are converted to Base64 format and sent to the Gemini API for transcription. 3. The transcribed text is then passed to the AI Agent for further processing. AI Agent Processing The LangChain AI Agent acts as the brain of the system. It uses: - Google Gemini Chat Model for natural language understanding and response generation. - Pinecone Vector Store to retrieve company-specific information and product data. - Memory Buffer to remember the last 20 user messages, ensuring context-aware responses. The agent also follows a set of custom communication rules — replying only in approved languages, skipping greetings, and focusing on direct, helpful, and professional responses (e.g., product recommendations, support, or guidance). Knowledge Retrieval The AI Agent connects to a Pinecone database containing detailed company data, such as product catalogs or service FAQs. Using Gemini-generated embeddings, it retrieves the most relevant information for each user query. Response Delivery Once the AI Agent prepares the response, it is instantly sent back to the user via WhatsApp, completing the conversational loop. --- Who It’s For This system is ideal for businesses seeking to automate their customer communication through WhatsApp. It’s especially valuable for: - Product-based companies with frequent customer inquiries. - Service providers offering 24/7 customer assistance or quote requests. - SMBs looking to scale their communication without hiring additional staff. --- Tech Stack & Requirements - n8n – Workflow automation and orchestration. - WhatsApp Cloud API – For sending and receiving messages. - Google Gemini (PaLM) – For LLM-based transcription and response generation. - Pinecone – Vector database for product and service knowledge retrieval. - LangChain Integration – For connecting memory, vector store, and reasoning tools. - Custom Business Rules – Configurable within the AI Agent node to manage tone, style, and workflow behavior. --- Key Features - Handles both text and voice messages seamlessly. - Responds in multiple languages, including English. - Maintains conversation memory per user session. - Retrieves accurate company-specific information using vector search. - Fully automated, with customizable behavior for different industries or use cases. --- Setup Instructions 1. Prerequisites Before importing the workflow, ensure you have: - An active n8n instance (self-hosted or n8n Cloud). - WhatsApp Cloud API credentials from Meta. - Google Gemini API key with model access (for chat and transcription). - Pinecone API key with a preconfigured vector index containing your company data. 2. Environment Setup - Install all required credentials under Settings → Credentials in n8n. - Add environment variables (if applicable) for keys like: 3. Pinecone Configuration - Create a Pinecone index named, for example, products-index. - Upload company documents or product details as vector embeddings using Gemini or LangChain utilities. - Adjust the retrieval limit in the Pinecone node settings for broader or narrower search responses. 4. WhatsApp API Configuration - Set up a WhatsApp Business Account via Meta Developer Dashboard. - Create a webhook endpoint URL (n8n’s public URL) to receive WhatsApp messages. - Use the WhatsApp Trigger Node to capture messages in real time. 5. AI Agent Customization You can personalize how the AI behaves by editing the system prompt inside the AI Agent node: - Modify tone, response length, or product focus. - Add new “rules” for language preferences or conversation flow. - Include links or custom text output (e.g., quotation formats, product catalog messages). 6. Handling Voice Messages - Ensure your WhatsApp Business Account has media message permissions enabled. - Verify the HTTP Request node that connects to the Gemini API for transcription is correctly authenticated. - You can adjust the transcription model or prompt if you prefer shorter, keyword-based outputs. 7. Testing - Send both text and voice messages from a test WhatsApp number. - Check response time and message formatting. - Use n8n’s execution logs to debug errors (especially for media downloads or API credentials). --- Customization Options 🧩 AI Behavior - Modify the AI Agent’s system message to adapt tone and personality (e.g., sales-oriented, support-driven). - Update memory length (default: last 20 messages) for longer or shorter conversations. 🌍 Multi-language Support - Add or remove allowed languages in the rules section of the AI Agent node. - For multilingual businesses, duplicate the AI Agent path and route messages by language detection. 📦 Industry Adaptation - Swap the Pinecone dataset to suit different industries — retail, hospitality, logistics, etc. - Replace product data with FAQs, customer records, or support documentation.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

AI-powered restaurant order and menu management with WhatsApp and Google Gemini

RestaurantBot Pro - WhatsApp Order Automation System Description RestaurantBot Pro is a complete AI-powered restaurant ordering system that transforms your WhatsApp into a smart ordering platform. This intelligent automation handles customer interactions in any language you configure, manages your menu database, processes orders, and coordinates delivery operations - all through familiar WhatsApp messaging. How It Works Customer Experience: Customers message your restaurant's WhatsA

Free

Conversational lead capture with Gemini 2.0 Flash AI and Google Sheets

AI Lead Capture System - Complete Setup Guide Prerequisites n8n instance (cloud or self-hosted) Google AI Studio account (free tier available) Google account for Sheets integration Website with chat widget capability Phase 1: Core Infrastructure Setup Step 1: Set Up Google AI Studio Go to Google AI Studio Create account or sign in with Google Navigate to "Get API Key" Create new API key for your project Copy and securely store the API key Free tier limits: 15 requests/minute, 1 million tokens/mo

Free

Nano banana AI product image creator via WhatsApp

Nano Banana AI Product Image Creator via WhatsApp Transform ordinary product photos into premium marketing visuals instantly using Gemini AI for prompt enhancement and Nano Banana AI for image generation through WhatsApp. Who's it for - Small business owners - E-commerce sellers - Social media managers - Anyone selling products online What it does • Takes your normal product photo • Gets your text/caption as input • Gemini AI improves your basic prompt into professional instructions • Nano Banan

Free

Real-time extract of job, company, salary details via Bright Data MCP & OpenAI

Notice Community nodes can only be installed on self-hosted instances of n8n. Who this is for This workflow automates the real-time extraction of Job Descriptions and Salary Information from job listing pages using Bright Data MCP and analyzes content using OpenAI GPT-4o mini. This workflow is ideal for: - Recruiters & HR Tech Startups: Automate job data collection from public listings - Market Intelligence Teams: Analyze compensation trends across companies or geographies - Job Boards & Aggreg

Free

Summarize meeting recordings and create Notion action items with Gemini AI

Who is this for Team leads, project managers, and operations staff who want to automate meeting documentation. Useful for any team that records meetings and needs structured notes with clear action items. What this workflow does This workflow accepts a meeting recording upload via a web form. The recording is uploaded to Gemini Files API for audio analysis. Gemini AI generates a structured summary including key decisions, action items with assignees, and follow-up topics. A Notion page is create

Free

🎥 Analyze YouTube video for summaries, transcripts & content + Google Gemini AI

Analyze YouTube Video for Summaries, Transcripts & Content + Google Gemini Who is this for? This workflow is ideal for content creators, video marketers, and research professionals who need to extract actionable insights, detailed transcripts, or metadata from YouTube videos efficiently. It is particularly useful for those leveraging AI tools to analyze video content and optimize audience engagement. What problem does this workflow solve? / Use case Analyzing video content manually can be time-c

Free

Generate Instagram reels with Veo3 and GPT for AI-powered ad creation

Veo3 Instagram Reel Generator – AI-Powered Ad Creation in Minutes Description: This no-code workflow transforms your creative brief into an engaging Instagram Reel using OpenAI and Veo3 API (via Wavespeed) — fully automated in n8n. Just type a product, theme, or trend via chat, and get a short-form video plus caption delivered and logged, ready to post. Perfect for marketers, creators, and content teams looking to scale their ad content output without hiring editors or creative agencies. Wa

Free

Email summary agent

Problem Teams often struggle with email overload, leading to missed actions and inefficient meeting preparation. Solution This workflow automates email management using n8n and AI. It fetches emails, summarizes key points and actions, and sends two concise updates—one in the morning and one at night. How It Works - Triggers at 7 AM and 9 PM: Automates the process to summarize emails received during specific time blocks. - Fetches Emails: Retrieves emails from the last 24 hours or af

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free