All work

12AI · WhatsApp · Customer service

Charla

AI customer service for WhatsApp

A WhatsApp bot that answers from the shop's own articles, catalog and orders, sends product cards, and hands off to a person when it isn't sure.

Concept project · fictional brand and sample dataApp in Spanish

42
automated tests passing
86.5 %
routing accuracy on held-out customer messages
52
held-out messages, scored once after tuning
25 s
LLM time budget before a safe fallback

The brief

Small online shops get the same WhatsApp questions all day: which products are in stock, shipping costs, payment methods, "where is my order?". Menu bots are rigid, and an LLM bolted on top confidently invents prices and policies. Upset customers get stuck in a loop, and the team can't see what the bot said or why.

What I built

  • Webhook compatible with the WhatsApp Cloud API: verification handshake, HMAC signature check on the raw body, de-duplication and async processing
  • Routing pipeline: rules for greetings and complaints, order status from the database, hybrid search over the knowledge base
  • Product cards in the chat (photo, name, price) after product answers, plus a product picker for agents
  • Order status answered only for orders placed from the same phone number
  • Live agent inbox over Server-Sent Events: take over, give back to the bot, canned replies, tags and the customer's orders
  • Knowledge base editor with a "test the bot" debugger showing intent, route and similarity scores
  • Analytics: share resolved by the bot, handoff rate, first-reply time and the questions nobody could answer

The decision that mattered

The model phrases, the code decides

Greetings, complaints, order status and strong FAQ matches never touch the LLM. It is only used for medium-confidence matches, where it must answer in JSON from at most three retrieved articles. The server then rejects the answer if it is not marked grounded, if the JSON is invalid, or if it contains a number (price, days, hours) that is not in the sources. A rejected answer becomes a handoff to a person, not a guess.

Screens

Phone simulator playing the customer
Live inbox with a complaint waiting for a person
Agent takes over and sends a replacement product
Customer's phone: product cards, order status and handoff
Knowledge base article with linked products and the router tester
Analytics: resolved by the bot vs the team
Settings: business hours, thresholds and auto-messages

Have a project in mind?

Send the brief through Workana. The reply comes with questions and a written scope before any quote, so the price reflects the actual work.

Hire me on Workana

What helps in a brief: what the finished thing must do, what already exists (site, store, server, accounts), your deadline and budget range, and two or three references you like.