We built a fully automated WhatsApp AI agent using n8n, the WhatsApp Business Cloud API, and OpenAI GPT-4o — deployed on Bandbox's existing infrastructure with zero new hardware.
The system handles the entire customer conversation lifecycle autonomously. For order intake and slot booking, customers WhatsApp the Bandbox number and the AI agent identifies their request type — new order, status check, pricing query, or complaint — and routes accordingly. For new orders, it collects pickup address, garment count, and preferred time slot, then logs everything into a centralised Google Sheet accessible by all outlet managers in real time.
For real-time status updates, each order is assigned a unique ID at intake. When customers message asking for status, the agent queries the sheet, pulls the current stage (Pickup Scheduled, In Cleaning, Ready for Delivery, or Delivered), and responds within 3 seconds — 24 hours a day, 7 days a week.
The escalation engine handles edge cases: if the AI detects frustration signals, complaint keywords, or complex requests it cannot resolve, it immediately flags the conversation and pings the relevant outlet manager on a separate WhatsApp group with full context. No customer ever gets stuck in a dead-end loop.
For pricing and service queries, the agent draws from a full knowledge base of Bandbox's pricing, services, and outlet locations — so standard questions are answered instantly without involving staff.
The entire workflow runs on our self-hosted n8n instance on AWS EC2, integrated directly with Meta's Cloud API. We built fallback handlers for API downtime, message delivery failures, and edge-case conversation paths — ensuring the system degrades gracefully rather than going dark.