Skip to main content

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

Workflow preview

Workflow preview
100%
WhatsApp virtual receptionist with Gemini AI - handles text & voice with knowledge base preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This project is an AI powered WhatsApp virtual receptionist built using n8n , designed to handle both text and voice based customer messages automatically. The workflow integrates Google Gemini , P...

Best for

  • Support Chatbot automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.toolvectorstore, @n8n/n8n-nodes-langchain.vectorstorepinecone, @n8n/n8n-nodes-langchain.embeddingsgooglegemini, n8n-nodes-base.whatsapptrigger, n8n-nodes-base.whatsapp

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Akshay.

Original n8n.io source

1.1 Workflow description

Title
WhatsApp virtual receptionist with Gemini AI - handles text & voice with knowledge base
Workflow name
WhatsApp virtual receptionist with Gemini AI - handles text & voice with knowledge base

Overview

This project is an AI-powered WhatsApp virtual receptionist 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:
    GOOGLE_API_KEY=your_google_gemini_key  
    PINECONE_API_KEY=your_pinecone_key  
    WHATSAPP_ACCESS_TOKEN=your_whatsapp_token  
    

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.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 2 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 3 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 4 - Answer questions with a vector store

Type / Role
@n8n/n8n-nodes-langchain.toolVectorStore - toolVectorStore
Config choices
Version 1.1

Block 5 - Pinecone Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.2

Block 6 - Google Gemini Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 7 - Embeddings Google Gemini

Type / Role
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini - embeddingsGoogleGemini
Config choices
Version 1

Block 8 - WhatsApp Trigger

Type / Role
n8n-nodes-base.whatsAppTrigger - whatsAppTrigger
Config choices
Version 1

Block 9 - Get Audio URL

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 10 - Audio Download

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Audio Prompt

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Send message

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 13 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Audio/Message

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 17 - Audio Convert

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 18 - Gemini speech to text

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

3. Summary Table

Workflow WhatsApp virtual receptionist with Gemini AI - handles text & voice with knowledge base
Complexity advanced
Nodes 18
Categories Support Chatbot, AI RAG
Author Akshay
Published 22 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10033/10033.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does WhatsApp virtual receptionist with Gemini AI - handles text & voice with knowledge base do?

This project is an AI powered WhatsApp virtual receptionist built using n8n , designed to handle both text and voice based customer messages automatically. The workflow integrates Google Gemini , P...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI RAG use case.