Skip to main content

Conversational WhatsApp assistant with Gemini AI and Pinecone memory

Workflow preview

Workflow preview
100%
Conversational WhatsApp assistant with Gemini AI and Pinecone memory preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Description This template creates an intelligent AI assistant for WhatsApp that can: Respond naturally to messages using Google Gemini AI Remember previous conversations for each user Access a k...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.agent, n8n-nodes-base.webhook, n8n-nodes-wamm.wammpro, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.embeddingsopenai, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.vectorstorepinecone, @n8n/n8n-nodes-langchain.documentdefaultdataloader

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Conversational WhatsApp assistant with Gemini AI and Pinecone memory
Workflow name
Conversational WhatsApp assistant with Gemini AI and Pinecone memory

πŸ“‹ Description

This template creates an intelligent AI assistant for WhatsApp that can:

  • Respond naturally to messages using Google Gemini AI
  • Remember previous conversations for each user
  • Access a knowledge base for answering frequently asked questions
  • Automatically save all conversations for long-term memory

πŸ› οΈ Requirements

1. WAMM.pro Account (FREE tier available)

  • What is WAMM.pro? - A platform that enables WhatsApp automation using proprietary API technology
  • Free tier: 50 messages/month
  • PRO tier: Unlimited messages + advanced features
  • Link: wamm.pro

2. Pinecone Account (for AI memory)

  • For storing conversations and knowledge base
  • Free tier available

3. Google AI Account (for Gemini)

  • For the conversational AI model

4. OpenAI Account (for embeddings)

  • For generating memory vectors

πŸš€ Step-by-step Setup

Step 1: WAMM.pro Configuration

  1. Create account at wamm.pro
  2. Account Manager β†’ Add WhatsApp profile
  3. Scan QR code with your WhatsApp
  4. Note down: Instance ID and Access Token

Step 2: Webhook Configuration

  1. In WAMM.pro: Integrations β†’ Webhooks β†’ Messages Webhooks
  2. Add Webhook with the n8n URL
  3. Required configuration:
    • From others: βœ… Relevant + βœ… Without media + βœ… Exclude no text
    • To others: βœ… Relevant + βœ… Without media + βœ… Exclude no text
    • To myself: βœ… None (to avoid responding to own messages)

Step 3: Pinecone Configuration

  1. Create 2 indexes:
    • historywa - for conversation memory
    • knowledge - for knowledge base
  2. Index settings:
    • Dimensions: 3072
    • Metric: cosine
    • Embedding model: text-embedding-3-large

Step 4: n8n Configuration

  1. Configure credentials:
    • WAMM: Instance ID + Access Token
    • Pinecone: API Key
    • Google Gemini: API Key
    • OpenAI: API Key for embeddings

πŸ”§ How it Works

Workflow Flow:

πŸ“± WhatsApp Message 
    ↓ (webhook)
🎯 AI Agent (Gemini)
    ↓ (uses tools)
πŸ“š Memory Tool + Knowledge Tool
    ↓ (response generated)
πŸ“€ WAMM Send Message
    ↓ (saves)
πŸ’Ύ Pinecone Memory Storage

Available AI Tools:

  1. Memory Tool - Searches previous conversations with the user
  2. Knowledge Tool - Searches the general knowledge base

Special Features:

  • Natural conversations - AI doesn't mention "searching history"
  • Persistent context - Remembers names, preferences, previous conversations
  • User language detection - Automatically responds in user's language
  • Organized memory - Each user has their own memory space

πŸ“Š Benefits

βœ… Zero maintenance - Runs automatically
βœ… Scalable - Supports multiple users simultaneously
βœ… Intelligent memory - Uses similarity search for relevant context
βœ… Extensible - Easy to add new features
βœ… Cost-effective - Free tiers available for all services

🎯 Use Cases

  • Automated customer support with memory
  • Personal assistant for WhatsApp
  • Business chatbot with specific knowledge
  • Conversation automation with persistent context

πŸ”’ Security

  • Data stored in Pinecone as vector embeddings
  • No plain text message storage
  • Each user has separate memory space
  • API keys secured in n8n credentials

πŸ“ˆ Possible Extensions

  • CRM integrations
  • Scheduling and reminders
  • Advanced multi-language support
  • Analytics and conversation reports
  • Custom knowledge bases per user

πŸ’‘ Tip: For optimal results, populate the knowledge base with frequently asked questions specific to your business!

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 1.8

Block 2 - Webhook

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

Block 3 - WAMM: Send Message

Type / Role
n8n-nodes-wamm.wammpro - wammpro
Config choices
Version 1

Block 4 - Google Gemini Chat Model

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

Block 5 - Embeddings OpenAI

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

Block 6 - Processing data for Pinecone

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

Block 7 - Reading from Pinecone (from knowledge)

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

Block 8 - Reading from Pinecone (at phone number)

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

Block 9 - Pinecone Vector Store

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

Block 10 - Default Data Loader1

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

Block 11 - Recursive Character Text Splitter

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

Block 12 - Sticky Note

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

Block 13 - Sticky Note1

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

Block 14 - Sticky Note2

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

Block 15 - Sticky Note3

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

3. Summary Table

Workflow Conversational WhatsApp assistant with Gemini AI and Pinecone memory
Complexity advanced
Nodes 15
Categories Support Chatbot, AI Chatbot
Author Adrian
Published 19 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6170/6170.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 Conversational WhatsApp assistant with Gemini AI and Pinecone memory do?

Description This template creates an intelligent AI assistant for WhatsApp that can: Respond naturally to messages using Google Gemini AI Remember previous conversations for each user Access a k...

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 Chatbot use case.