Skip to content
All case studies

AI Voice Agent · E-commerce · Workflow Automation

COD Voice Agent: AI Order Confirmation Calls

An AI voice agent that calls cash-on-delivery customers for a Moroccan perfume store and confirms their orders in natural Moroccan Darija.

Role
AI automation engineer
Type
AI & Automation
COD Voice Agent interface
  • 5 Step store script followed on every call
  • 4 Situations handled: cancel, callback, address change, wrong number

01

Problem

In Moroccan e-commerce, many COD orders are refused at the door or have incomplete addresses. Confirming every order by phone takes hours of agent time each day, and a voice bot that misreads prices and addresses breaks customer trust. The agent had to speak and understand Darija mixed with French, handle real situations, and never record a confirmation the customer did not clearly give.

02

Architectural decision

A confirmation is only recorded when the customer clearly gives it. One tool sends the call outcome to n8n, which validates it before touching the sheet. Each row is reserved with a unique attempt ID, so late or repeated results never overwrite a decision.

03

Execution

Built a Vapi voice agent powered by Anthropic Claude, with a Moroccan Arabic ElevenLabs voice and a Speechmatics transcriber that understands Arabic, Darija and Latin brand or street names. The call follows the store's own five-step script: amounts are spelled out in Darija, addresses are read the way a delivery driver would say them. The agent handles cancellations without pressure, callback requests, address changes and wrong numbers. One tool sends the outcome to n8n, which validates it and updates the matching Google Sheets row. Each row is reserved with a unique attempt ID, so late or repeated results never overwrite a decision.

How the system flows

  1. 01 Order row in Google Sheets
  2. 02 Outbound call (Vapi)
  3. 03 Claude five-step script
  4. 04 Outcome tool call
  5. 05 n8n validation
  6. 06 Sheet row updated

What shipped

  • Outbound confirmation calls
  • Product, quantity and total price check in dirhams
  • Delivery address read back and corrected live
  • Cancellation, callback, address change and wrong-number handling
  • Automatic Google Sheets update with an Arabic note
  • Browser call page to test the agent without a phone number
COD Voice Agent , additional view
Additional view

04

Impact

Order confirmation calls run in natural Moroccan Darija without tying up staff, and every outcome reaches the shipping team automatically.

5
Step store script followed on every call
4
Situations handled: cancel, callback, address change, wrong number