Adrian

Adrian

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 an 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: little things
    • 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!

Do you want to automate your business?

Let's talk about your project