πŸ’¬ Conversational WhatsApp assistant with Gemini AI and Pinecone memory

⚑ 1,694 views Β· πŸ’¬ Support Chatbots

Description

πŸ“‹ Description

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

πŸ› οΈ Requirements

1. WAMM.pro Account (FREE tier available)

2. Pinecone Account (for AI memory)

3. Google AI Account (for Gemini)

4. OpenAI Account (for embeddings)

πŸš€ 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:

πŸ“Š 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

πŸ”’ Security

πŸ“ˆ Possible Extensions


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

πŸ”— Nodes Used

Webhook, AI Agent, Embeddings OpenAI, Recursive Character Text Splitter, Pinecone Vector Store, Default Data Loader

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup