AI Automation · WhatsApp
WhatsApp Follow-Up Agent
An AI agent that reads incoming WhatsApp messages, classifies intent, drafts the reply, and hands over to a human the moment it is unsure.
About
A working end-to-end build in n8n, created as proof for the follow-up automation offer for small businesses: every incoming WhatsApp inquiry gets a fast first response, without giving up human control. The workflow runs 20 nodes from webhook to response.
Challenge
Follow-up is where small businesses lose buyers: messages arrive after hours, pile up, and get answered late or not at all. Letting an AI answer everything automatically is the opposite risk — one wrong reply can cost trust. Follow-up has to be fast and safe at the same time.
Process / Approach
Incoming message → Webhook → validation → AI Agent with a Structured Output Parser (intent, confidence, draft_reply, needs_human, reason) → a rules router: if needs_human is true OR confidence is below 0.70, the message is escalated to a human; otherwise the drafted reply is sent. Every conversation is logged to Google Sheets so the owner can review what happened.
Key decisions
- The AI suggests, the rules decide — the model proposes a classification and a draft; fixed business rules make the routing call.
- Escalation threshold: needs_human OR confidence < 0.70 always goes to a human, including spam and gibberish.
- A kill switch (BOT_ON) and an operating-hours gate (08.00–20.00) the owner can change from their phone — both tested in both directions.
- Model: Gemini Flash-Lite, chosen because it stayed available during peak hours when flagship tiers were unreliable.
Results / intended outcome
Acceptance testing passed 5 of 5 scenarios, including spam and gibberish being escalated to a human instead of answered automatically, and the kill switch and operating-hours gate verified in both directions. No automated reply goes out without passing the rules router.
Gallery
Project images will be connected through the media library in the next production phase.