Skip to main content

Order Management Agent

In this tutorial, you’ll build a voice agent that handles order-related phone calls for an e-commerce or retail business. It verifies caller identity, looks up orders in real time, handles status inquiries, processes modifications, and manages returns.

What You’ll Build

A phone agent that:
  • Verifies the caller’s identity before sharing order details
  • Looks up order status via your API in real time
  • Provides shipping and tracking information
  • Processes order modifications (address changes, cancellations)
  • Handles return and exchange requests
  • Sends tracking links and receipts via SMS and email
  • Follows your return policy and escalates exceptions
Time to set up: ~10 minutes

Step 1: Create the Agent

  1. Go to your thinnestAI Dashboard
  2. Click Create Agent
  3. Name it: Order Management Agent
  4. Set the description: Handles order status, modifications, returns, and shipping inquiries

Step 2: Choose the Model

Select GPT-4o as your model. GPT-4o is excellent at structured data extraction and following multi-step verification flows. It handles order numbers, dates, and addresses accurately.

Step 3: Add Knowledge

Return Policy Document

Upload a document containing your complete return and exchange policy:

Shipping FAQ

Upload both documents in the Knowledge tab.

Step 4: Assign Tools

Custom API Tool (Order Lookup)

Set up a custom API tool that connects to your order management system.
  1. Go to the Tools tab
  2. Enable Custom API / Webhook
  3. Configure the order lookup endpoint:
The agent will send:
Your API should return:

SMS

Enable SMS to send tracking links and return labels.
  1. Enable SMS in the Tools tab

Gmail

Enable Gmail to send detailed receipts and return instructions.
  1. Enable Gmail in the Tools tab
  2. Connect your support email account

Step 5: Set the System Prompt

Step 6: Assign a Phone Number

  1. Go to the Phone tab
  2. Assign a phone number
  3. Set call direction to Inbound
  4. Save

Step 7: Test Your Agent

Testing Checklist

What to Listen For

  • Verification flow: Does the agent always verify before sharing details?
  • Data accuracy: Does it read back order info correctly?
  • Natural delivery: Does it say “Saturday, March eighth” not “2026-03-08”?
  • Empathy: When you report a problem, does the agent acknowledge it before jumping to solutions?

Tips for Improvement

  1. Add order status webhooks. Set up real-time webhook notifications so the agent can proactively text customers when their order ships or is delivered.
  2. Handle multiple orders. If a customer calls about multiple orders, the agent should handle each one sequentially: resolve the first, then ask “Now for your other order…”
  3. Build a returns dashboard. Use the CRM webhook data to track return reasons. If a specific product has high return rates, that’s valuable product feedback.
  4. Add self-service options. For simple status checks, consider adding an IVR option: “Press 1 to hear your order status, or press 2 to speak with an agent.”
  5. Integrate loyalty data. If you have a loyalty program, give the agent access so it can offer VIP customers extended return windows or expedited replacements.

Next: Survey & Feedback Agent — Build an agent that conducts phone surveys and collects NPS scores.