01AI Agent · WhatsApp · RAG
WhatsApp prospecting with an AI agent
Finds businesses on Google Maps, makes first contact, and an AI agent answers, qualifies and hands the ready lead over to the team.
Technical decisions
- RAG on pgvector with one rule: it only answers from what it found.
- Human-in-the-loop: if someone from the team writes in the chat, the AI pauses itself.
- Redis debounce for split messages (~22 s window) before replying.
- Multimodal: text, audio (Whisper), image and document.
Stack
- n8n
- Evolution API
- Supabase
- pgvector
- Redis
- Postgres
- Serper
- OpenAI
- Whisper
- Gemini
- Google Sheets
01
Lead sources
02
Shared database
03
First contact
04
Message buffer
05
RAG agent
06
Human handoff
- contacts/month
- 2,000+
- manual work
- −60%
- lead sources
- 3

