1
Build an endpoint that takes an order number
Keep it narrow. This will be called by a model on behalf of a member of the
public, so it should do exactly one thing.
Express
2
Add it as an action
On the agent’s Actions page, add a custom HTTP action.
Describe it in the words the model needs:
3
Try it in the Playground
Test all four cases, not just the happy one:
4
Ship it
The action works identically on WhatsApp and Telegram — you configured it
once, on the agent.
Doing better: skip the questions entirely
If the customer is signed in and verified, your server already knows who they are. Send their customer id along with the request and the agent can list their recent orders without asking anything. That is the difference between a bot that interrogates people and one that recognises them.What good looks like
A real exchange
A real exchange