Order Events and Outcomes

Call customers automatically when an order is placed, shipped or fails delivery, from any store platform. Start calls with the Calls API, Zapier, Make or n8n, and get each call's result back as a signed call.analyzed webhook.

3 min read

Your voice agent can call customers when something happens to their order, such as a new order, a shipment, a failed delivery or a delivered order, and send the result back to your store, CRM or sheet. This works with any store platform, because your store (or an automation tool) starts the call and Edesy sends the outcome back.

Order event in your store ──► start a call (Calls API, Zapier, Make, n8n)
                                        │
                              AI voice agent talks to the customer
                                        │
Your systems ◄── call.analyzed webhook (disposition, summary, collected data)

Common recipes#

When The agent You get back
Order placed Confirms the order and delivery address, answers questions Confirmed / wants changes / not reachable
Order shipped Tells the customer it's on the way and when to expect it Reached / not reached
Delivery failed (NDR) Asks when to re-attempt and confirms the address New delivery slot or address note
Delivered Asks for feedback Rating and comments

For cash-on-delivery confirmation, use Edesy Order Calls: it connects to Shopify and WooCommerce, calls each new COD order, and tags the order with the result, with no code.

1. Start a call when an order event happens#

From your server. Create an API key in Settings → API Keys, then call the Calls API when the event fires:

curl -X POST https://voice-agent.edesy.in/api/v1/calls \
  -H "Authorization: Bearer vp_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-4473-shipped" \
  -d '{
    "agentId": 123,
    "phoneNumber": "+919876543210",
    "variables": {
      "customer_name": "Priya",
      "order_id": "4473",
      "items": "Round bottle applicator (pack of 2)",
      "expected_delivery": "Thursday"
    }
  }'
  • variables fill placeholders in the agent's greeting and prompt, for example Hi {{customer_name}}, your order {{order_id}} is on its way.
  • The Idempotency-Key header makes a retried request attach to the same call instead of dialling twice. Use the order ID plus the event.
  • The response includes conversationId, which you'll see again in the outcome webhook.

Full reference: Trigger an outbound call and Calls API.

Without code. Send your store's webhook (for example "order created" or "order fulfilled") to Zapier, Make or n8n, and add a step that starts a call. See Zapier and n8n. You can connect them from Marketplace → Automation in the dashboard.

2. Get the result back#

In Settings → Integrations → Webhooks, add a subscription to your endpoint and select the call.analyzed event. After each call you receive the call's disposition, summary and any data the agent collected, signed with HMAC-SHA256 in the X-Webhook-Signature header and retried up to 5 times.

Use call.analyzed for order outcomes: it's the event that carries the result, and it's sent for every call. Use call.failed too if you want to know about calls that never connected.

Save the conversationId against the order when you start the call, and use it to match the result when the webhook arrives. Then update the order: add a note or tag in your store, change a status, or create a task for your team.

Details and signature verification: Webhook subscriptions.

3. Answer order questions on inbound calls too#

The same agent can take calls from customers. Give it an order lookup so it can answer "where is my order?": see Connect any store or WooCommerce.

Calling rules#

  • Call within sensible hours for your customers, and respect DND and opt-outs. See Campaigns for calling windows and retries.
  • Order updates (shipped, delivery failed) are transactional calls. Offers and abandoned-cart calls are promotional and need consent in most countries.
Was this page helpful?