A WhatsApp assistant that answers customer questions, captures service details and books appointments, then hands the conversation to the team with everything ready.
Discuss a projectSystem overview
WhatsApp AI Assistant
Conversations
Guided intake
Approved answers
Business data
Scheduling
Appointments
Team support
Customer details ready
Overview
A persistent WhatsApp customer-service assistant for service businesses. It guides customers from their first message through service intake, supported questions, and appointment coordination, then hands off to a team member at the right moment with the collected details and conversation history ready. One reusable engine is configured per client, with separate business data, credentials, messaging session, and database for each company.
Context
Customers describe service needs in natural language, while the business needs consistent intake, approved answers, dependable scheduling, and a simple way for staff to take over with the customer information ready. The core constraint: connect those needs without letting generative AI become the source of business facts such as pricing, availability, or policy.
What I built
AI classifies intent and extracts customer-provided details. Deterministic Python services decide the next step and own authoritative information — prices, policies, service areas, schedules, and booking eligibility. Conversation state persists between messages, duplicate deliveries are guarded, and unsupported requests are redirected to a team member with the collected details ready for follow-up.
Capabilities
- Guided customer intake
- Approved answers & supported quotes
- Appointment coordination
- Seamless team support
My contribution
I designed and implemented the application that ties these pieces together:
- Built the FastAPI conversation engine and the state machine that drives intake, questions, and scheduling.
- Implemented the deterministic services that own pricing, policy, service-area, and booking-eligibility decisions.
- Integrated AI intent classification and detail extraction behind a validation layer so model output never sets business facts directly.
- Added SQLite-backed conversation persistence and duplicate-delivery guarding.
- Built the human-takeover path that suppresses automation while an operator is handling a conversation.
Architecture overview
A public, non-proprietary view of how a message moves through the system — AI interprets language on one path while deterministic services and persistence control business facts and scheduling.
Customer message in
Messaging bridge
Linked-device routing
FastAPI app
State machine & services
AI + rules
AI understands; rules decide
Data & scheduling
SQLite + Zoho Bookings
Response
Reply delivered
Customer message in
Messaging bridge
Linked-device routing
FastAPI app
State machine & services
AI + rules
AI understands; rules decide
Data & scheduling
SQLite + Zoho Bookings
Response
Reply delivered
Engineering decisions
AI interprets language; deterministic services decide business facts.
Letting the model answer pricing or availability directly was rejected — it risks inconsistent or wrong commitments. Business facts stay in validated application rules that are predictable and auditable.
Conversation state is persisted rather than handled per-message.
A stateless design was simpler but could not keep multi-message intake coherent or survive a restart. State is stored in SQLite so a conversation resumes exactly where it left off.
Human takeover suppresses automation for that conversation.
Always auto-replying risked answering a customer while an operator was already responding. When a team member joins, automation stands down for that thread.
Evidence & validation
Automated validation covers the core application against representative conversation flows, not a single headline count:
- End-to-end intake scenarios run with synthetic customer data.
- Duplicate-message handling verified so repeated deliveries produce one response.
- Deterministic pricing and quote checks validated against business-approved data.
- Human-handoff behavior confirmed to suppress automation once an operator takes over.
- SQLite persistence checked so conversation state survives restarts.
Current status
The core bot, structured language-understanding flow, scheduling integration, persistence, team-routing logic, and private operator tooling are implemented, with the automated validation above covering the core application. Production WhatsApp messaging remains intentionally inactive while final business data is approved, the company phone is paired, and controlled live coexistence testing is completed. Private operations, credentials, and customer data remain outside this public portfolio.