The orders tool takes no customer id
The tool that lists orders takes no customer id. It reads the verified sender from the request, so a prompt-injected model asking for someone else's orders still gets the sender's own.
AI and automation / 2026
An ordering agent on a messaging channel can be prompt-injected, read the wrong customer's data, place an order twice when a webhook is redelivered, or tell a customer an order went through when it did not. I wanted each of those blocked in code, with a test for each.
I built this as a small public version of the pattern behind the Gazelle's Kitchen WhatsApp assistant. Unknown and blocked senders are stopped before the model is called. Tools take the customer from the verified request, never from the model. Order rules and pricing in whole kobo live in plain code. Each order is keyed to the message that asked for it, so a repeat delivery places it once. An output check replaces any reply that claims an order was placed when no order was placed in that turn.

My part
Engineering
The tool that lists orders takes no customer id. It reads the verified sender from the request, so a prompt-injected model asking for someone else's orders still gets the sender's own.
It looks for the exact expected order, or for no new order. It does not grade the wording of the reply.
The first live run scored 13/16. All three failures turned out to be eval mistakes, such as a pattern that only accepted a straight apostrophe, and the README explains each one.
Screens
HOW IT WORKS
The channel verifies the sender and puts the customer and message id into the request context.
An input check stops blocked or unknown senders before the model runs.
The agent has three tools: the menu, the customer's own orders, and placing an order through the ordering rules.
An output check stops any reply that claims an order was placed unless placing it succeeded in that turn.
Built with
Links
More work
Gazelle's KitchenA WhatsApp assistant for a home kitchen. It takes orders and only passes the owner finished orders and chats that need her.PilotSellavie AIMy own product for answering a small business's customer messages on Instagram, Facebook and WhatsApp and taking orders from them.MaintainedAI Automation Control PlaneA FastAPI and Next.js service that runs AI agents for several businesses, with approvals, retries, replay and an audit log. It runs on demo data without paid API keys.Maintained