Order Status Template: Connect Your Order API

Turn the Order Status voice agent template into an agent that reads real orders: pick the right variant, add a custom HTTP function for your order API, update the prompt, test and put it on your support number.

4 min readUpdated

The Order Status template answers "where is my order?" calls. Out of the box it greets the caller, asks for the order number or the phone number used for the order, and keeps answers short. It has no tools, so on its own it cannot see your orders: it can only collect the number and offer a human. This guide connects your order API so the agent reads the real status, delivery date and tracking during the call.

Time: about 20 minutes if your store already has an order API.

Before you start#

  • An Edesy account at voice-agent.edesy.in.
  • An endpoint that returns one order by order number (and, ideally, recent orders by phone). Shopify, WooCommerce, Magento, BigCommerce, Wix and custom stores are covered in Store Integrations.
  • The API key or token for that endpoint.

Step 1: Pick the variant#

The order status job has 22 variants. Choose by how your customers talk:

Your callers Variant
Mostly English Order Status Bot (English) or the quick-start Order Status card
One Indian language Order Status Bot in Hindi, Gujarati, Bengali, Telugu, Tamil, Marathi, Kannada, Malayalam or Odia
Mix the language with English The bilingual variant, for example Order Status Bot (Telugu + English)
Hindi-English mix, high call volume Order Status Bot (Fast), the Hinglish low-latency variant
You want fixed branches (order ID, phone, transfer) Order Status (AI Flow): see AI Flow starters

More on the trade-offs in Language variants.

Step 2: Create the agent#

  1. Go to Agents > New > See all templates.
  2. Filter by category Customer Support and your language, then pick the variant.
  3. Fill in Company Name and Support Hours. Don't leave them empty: an empty variable is replaced with the placeholder ("Our Company", "9 AM - 6 PM").
  4. Create the agent.

Step 3: Add the order lookup function#

  1. Open the agent and go to the Tools tab.
  2. Add a custom HTTP function. Name it get_order_status and describe when to use it, for example: "Look up an order by the order number the caller gives. Call this as soon as you have the order number."
  3. Add one parameter, order_id (string): "The order number the caller said, digits and letters only."
  4. Set the request, for example GEThttps://yourstore.example/api/orders/{{order_id}}.
  5. Put the token in the credential vault and reference it in a header as {{vault.your_token_name}}. Never paste keys into the prompt.
  6. Optional: a response mapping that keeps only status, expected delivery date, courier and tracking number. The agent reads faster when the response is small.

A second function, get_orders_by_phone, helps callers who don't have the order number. The full field reference is in Function Calling; platform-specific URLs are in Connect any online store and the WooCommerce guide.

Step 4: Tell the prompt about the tool#

The template prompt says to ask for the order number or phone number and to offer a human when it can't help. Add three lines under its guidelines, in the prompt's own language:

- When the caller gives an order number, call get_order_status before answering.
- Read back only the status, the expected delivery date and the courier. Do not read the full address.
- If the order is not found, ask the caller to repeat the number once, then offer a callback.

These rules stop the two common failures: the agent guessing a status before the lookup, and reading out personal details on a call that may be on speaker.

Step 5: Test it#

  1. Use the browser test on the agent page with three real order numbers: one shipped, one delivered, one that doesn't exist.
  2. Check that the agent calls the function before it answers, and that what it reads back matches the order.
  3. Say the order number the way customers do: "four four seven three", "hash 4473", with a pause in the middle.
  4. Add these as cases in the Test Center so later prompt edits don't break them.

Step 6: Put it on your number#

Connect a number under Phone Numbers: buy one, bring your own, or forward your existing support line to it. Set up Call Transfer so "talk to a person" reaches your team.

To also call customers when an order is delayed or out for delivery, use the Delivery Updates template with the outbound campaign guide or order events.

Was this page helpful?