Customer Service and Orders · Customer service automation
A café message turned into an action
Built for a café's WhatsApp line. A message is read and sent to a booking, an order, a status check, feedback or a plain reply, with payment and win-back messages alongside.
What the workflow handles
5Kinds of requestWhat it covers
Booking, order, status, feedback and everything else. The AI's label is checked against that list, and any other label is treated as everything else, which gets a plain reply.
7Ways inWhat it covers
A customer message, four tool endpoints for an AI voice agent, a payment event and an order-complete event. A daily schedule adds one more start.
4Voice agent toolsWhat it covers
Check table availability, create a booking, read the menu and look up an order. Each is a webhook that calls the café's own service and returns the answer as JSON.
10:00Daily win-back messageWhat it covers
Every day at 10:00 the customers inactive for 30 days are read from the café's service and each gets a WhatsApp message inviting a reply with YES for an offer. The message tells them to reply STOP to opt out.
How a message moves
1A message arrivesOn WhatsApp
2Its intent is readBooking, order, status, feedback
3The matching action runsTable, quote, lookup or save
4The customer gets a replyOn WhatsApp
How it works, in detail
For technical reviewers: the workflow, its routes and architecture.
TriggerStepAnswer to senderRedrawn from the build’s layout file
Inside the automation · 41 nodes
From message to reply
Scroll the steps. Tap any node for its job, retries and what it sends.
Webhook trigger
Code
HTTP call
Yes or no branch
Switch
Answer to sender
Orders and service1 / 9
5
One AI call picks the route
How it works
The phone, name and text are pulled out of the incoming message and posted to an AI chat model with a receptionist prompt: reply briefly in the customer's language or Hinglish, return JSON with an intent, a reply and entities, and never invent availability, prices, menu items or order status. If the JSON cannot be read, the intent becomes HUMAN with a reply that the customer is being connected with the team. Labels outside BOOKING, ORDER, STATUS, FEEDBACK and OTHER become OTHER, and the switch has an output for each of the five. A sixth output for anything unmatched is not connected.
Orders and service2 / 9
3
Availability, booking, confirmation
How it works
Open tables are read for the date, time and guests (2 when none is given), a reservation is created, and a WhatsApp message gives the booking id, guests, date and time. The create step runs after the availability call, but the workflow has no branch for a full table.
Orders and service3 / 9
3
Quote, payment link, message
How it works
The requested items are posted for a quote, the total goes to a payment service for a link, and the customer receives the total in rupees and the link on WhatsApp.
Orders and service4 / 9
2
Order status and feedback
How it works
A status question reads the order by the id the AI found and replies with the id and its status. Feedback saves the phone, rating and message, then posts the same to a manager alert webhook.
Orders and service5 / 9
5 → 1
Every branch ends in one answer
How it works
The generic branch sends the AI's own reply, or a short offer of help when it has none. The booking, order, status, feedback and generic branches all end at one node that answers the webhook with ok: true.
Orders and service6 / 9
4
Tools for a voice agent
How it works
Four webhooks each pass the request to the café's service and return the result as JSON: tables for a date, time and guests, a new reservation, the menu and an order by id. None of them checks who is calling.
Orders and service7 / 9
2
Payment to order and kitchen
How it works
A payment event is mapped to payment id, order id, status, amount and phone, with fallbacks for other field names. The event is posted to the café's service to confirm the order, then to the kitchen webhook, and the sender gets ok: true. The status of the payment is not checked before the order is confirmed.
Orders and service8 / 9
1–5
Feedback request after an order
How it works
When an order is marked complete, the customer gets a thank-you on WhatsApp that asks for a rating from 1 to 5 and any feedback.
Orders and service9 / 9
30 days
Daily win-back message
How it works
At 10:00 each day the customers inactive for 30 days are read and sent a WhatsApp message with an offer prompt and an opt-out line. A reply of STOP is not handled anywhere in the workflow.
Build notes
What the workflow file shows about how it is built, and what it leaves open.
Only the wired set is drawn
Why 41 nodes
The file holds an older set of the same routes, 36 nodes, whose router has no outgoing paths. The page draws the 41 nodes of the wired set: every one is reachable from a trigger and each webhook path appears once.
An unknown label becomes a plain reply
What happens
The AI returns an intent label and the workflow keeps it only if it is BOOKING, ORDER, STATUS, FEEDBACK or OTHER. Anything else, such as MENU or FAQ, becomes OTHER and gets the AI's own reply. An unreadable answer becomes HUMAN with a line that the team is being connected.
The graph shows handoffs, not outcomes
The limit
It does not establish that a classification is right, that a payment is genuine or that a message reaches its recipient.
Deployment configuration
Checklist
Configure webhook authentication and replay protection, add idempotency keys on payment and booking calls, attach retries and an error workflow, add a full-table fallback branch, and handle STOP opt-out replies.