eComm AI Voice Agent 📞
A production-ready, 12-workflow AI voice agent system for eCommerce businesses. Handles order confirmation calls, customer support, returns, retries, and outbound campaigns — fully automated.
Problem
eCommerce businesses (especially COD-heavy markets) lose 20-40% of orders to fake orders, no-shows, and unconfirmed deliveries. Manual confirmation calls are expensive and don't scale.
This system automates the entire confirmation and support lifecycle using AI voice calls.
What's Included
12 Production Workflows
| # |
Workflow |
Function |
| 01 |
Order Intake |
Webhook receives new orders, validates, routes by payment type |
| 02 |
COD Confirmation Call |
AI voice call to confirm cash-on-delivery orders |
| 03 |
Prepaid Confirmation |
SMS confirmation + optional high-value voice call |
| 04 |
Call Result Handler |
Processes Vapi callbacks, routes by outcome |
| 05 |
Retry Engine |
Auto-retries unanswered calls on schedule |
| 06 |
WhatsApp/SMS Fallback |
Multi-channel fallback for unreachable customers |
| 07 |
Returns & FAQ Handler |
Intent-based routing for support queries |
| 08 |
Order Status Updater |
Syncs status back to Shopify/WooCommerce |
| 09 |
CRM & Sheet Logger |
Central event logging + HubSpot sync |
| 10 |
Outbound Campaign |
Proactive engagement for unconfirmed orders |
| 11 |
Daily Report |
Automated metrics email to admin |
| 12 |
Customer Callback |
Inbound call queue management |
Architecture
Shopify/WooCommerce Order
│
▼
Workflow 01: Order Intake & Routing
│
├── COD Order ──► Workflow 02: AI Voice Call
│ │
│ ▼
│ Workflow 04: Parse Call Result
│ │
│ ├── Confirmed → Fulfill
│ ├── Declined → Cancel
│ └── No Answer → Workflow 05: Retry
│ │
│ └── Max retries → Workflow 06: SMS/WhatsApp
│
├── Prepaid ──► Workflow 03: SMS + Optional Call
│
└── All Events ──► Workflow 09: Central Logger
│
├── Google Sheets (Orders, Call Log, Customers)
└── HubSpot CRM (optional)
Scheduled:
├── Workflow 05: Retry Engine (configurable intervals)
├── Workflow 08: Status Sync (periodic)
├── Workflow 10: Outbound Campaigns (2-hourly, 9AM-7PM)
└── Workflow 11: Daily Report (once daily)
Required n8n Credentials
You must create these credentials in your n8n instance before importing:
| Credential Type |
Used For |
Placeholder in JSON |
| Google Sheets OAuth2 |
Order tracking, call logs, customer CRM |
YOUR_GOOGLE_SHEETS_CREDENTIAL_ID |
| SMTP (Gmail or custom) |
Daily report emails |
YOUR_SMTP_CREDENTIAL_ID |
All other API keys are configured via n8n environment variables (see below).
Quick Start
1. Prerequisites
- n8n v2.4+ (self-hosted)
- Vapi.ai account (AI voice calls)
- Twilio account (SMS + phone numbers)
- Google Sheets OAuth2 credentials
- Shopify or WooCommerce store
2. Environment Variables
# Google Sheets
ECOMM_ORDERS_SHEET_ID=your-sheet-id
ECOMM_CALL_LOG_SHEET_ID=your-sheet-id
ECOMM_CUSTOMERS_SHEET_ID=your-sheet-id
# Vapi AI Voice
VAPI_API_URL=https://api.vapi.ai
VAPI_API_KEY=your-vapi-key
VAPI_COD_ASSISTANT_ID=your-assistant-id
# Twilio
TWILIO_ACCOUNT_SID=your-sid
TWILIO_PHONE_NUMBER=+1234567890
TWILIO_AUTH_HEADER=Basic base64encoded
TWILIO_API_URL=https://api.twilio.com/2010-04-01
# Inter-workflow routing
N8N_WEBHOOK_BASE=https://your-n8n-instance.com/webhook
# Email addresses
ECOMM_FROM_EMAIL=orders@yourbusiness.com
ECOMM_OWNER_EMAIL=owner@yourbusiness.com
ECOMM_STAFF_EMAIL=staff@yourbusiness.com
# Optional
HUBSPOT_API_KEY=your-key
OPENAI_API_KEY=your-key
SHOPIFY_STORE_URL=https://your-store.myshopify.com
SHOPIFY_ACCESS_TOKEN=your-shopify-access-token
WOOCOMMERCE_STORE_URL=https://your-store.com
WOOCOMMERCE_AUTH_HEADER=Basic base64encoded
WHATSAPP_API_URL=https://graph.facebook.com/v17.0/YOUR_PHONE_ID
WHATSAPP_API_TOKEN=your-whatsapp-token
ECOMM_CONFIRM_BASE_URL=https://your-store.com/confirm
3. Sheet Setup
Create 3 Google Sheets with these tabs:
- Orders: order_id, customer_name, phone, email, amount, payment_type, status, created_at
- Call Log: call_id, order_id, phone, outcome, transcript, duration, created_at
- Customers: customer_id, name, phone, email, total_orders, last_order_date
4. Import Workflows
Import all 12 workflow JSON files into n8n. Update webhook paths (all prefixed ecomm-ai/).
5. Configure Vapi Assistant
Create a Vapi assistant for COD confirmation with your business script, voice, and language settings.
Use Cases
- COD-heavy eCommerce (South Asia, Middle East, Africa) — Confirm orders before shipping
- High-ticket items — Voice confirmation for orders above threshold
- Subscription businesses — Renewal confirmation calls
- B2B order confirmation — Verify large purchase orders
- Appointment businesses — Confirm bookings (dentists, salons, clinics)
Revenue Potential
- For store owners: Reduce fake orders by 30-50%, saving $1,000-10,000+/month
- As a service: Charge $500-2,000/month per client for managed voice confirmation
- Per-call pricing: $0.50-2.00 per successful confirmation call
Customization
- Voice: Change Vapi assistant for different languages/accents
- Script: Customize confirmation dialogue in Vapi dashboard
- Channels: Enable/disable WhatsApp, SMS, Email fallbacks
- Retry logic: Configure max attempts and intervals
- Reporting: Customize daily report metrics and recipients
Requirements
- n8n v2.4+ (self-hosted recommended for webhook reliability)
- Vapi.ai account ($0.05-0.10 per minute of voice)
- Twilio account ($0.0075 per SMS)
- Google Sheets API credentials
- Shopify/WooCommerce webhook access
1---2name: ecomm-ai-voice-agent3description: Complete AI voice agent system for eCommerce order confirmation, customer support, and outbound campaigns. 12 production-ready n8n workflows with Vapi AI voice, Twilio SMS, Shopify/WooCommerce integration, and Google Sheets CRM.4---56# eComm AI Voice Agent 📞78A production-ready, 12-workflow AI voice agent system for eCommerce businesses. Handles order confirmation calls, customer support, returns, retries, and outbound campaigns — fully automated.910## Problem1112eCommerce businesses (especially COD-heavy markets) lose 20-40% of orders to fake orders, no-shows, and unconfirmed deliveries. Manual confirmation calls are expensive and don't scale.1314This system automates the entire confirmation and support lifecycle using AI voice calls.1516## What's Included1718### 12 Production Workflows1920| # | Workflow | Function |21|---|----------|----------|22| 01 | **Order Intake** | Webhook receives new orders, validates, routes by payment type |23| 02 | **COD Confirmation Call** | AI voice call to confirm cash-on-delivery orders |24| 03 | **Prepaid Confirmation** | SMS confirmation + optional high-value voice call |25| 04 | **Call Result Handler** | Processes Vapi callbacks, routes by outcome |26| 05 | **Retry Engine** | Auto-retries unanswered calls on schedule |27| 06 | **WhatsApp/SMS Fallback** | Multi-channel fallback for unreachable customers |28| 07 | **Returns & FAQ Handler** | Intent-based routing for support queries |29| 08 | **Order Status Updater** | Syncs status back to Shopify/WooCommerce |30| 09 | **CRM & Sheet Logger** | Central event logging + HubSpot sync |31| 10 | **Outbound Campaign** | Proactive engagement for unconfirmed orders |32| 11 | **Daily Report** | Automated metrics email to admin |33| 12 | **Customer Callback** | Inbound call queue management |3435## Architecture3637```38Shopify/WooCommerce Order39 │40 ▼41Workflow 01: Order Intake & Routing42 │43 ├── COD Order ──► Workflow 02: AI Voice Call44 │ │45 │ ▼46 │ Workflow 04: Parse Call Result47 │ │48 │ ├── Confirmed → Fulfill49 │ ├── Declined → Cancel50 │ └── No Answer → Workflow 05: Retry51 │ │52 │ └── Max retries → Workflow 06: SMS/WhatsApp53 │54 ├── Prepaid ──► Workflow 03: SMS + Optional Call55 │56 └── All Events ──► Workflow 09: Central Logger57 │58 ├── Google Sheets (Orders, Call Log, Customers)59 └── HubSpot CRM (optional)6061Scheduled:62├── Workflow 05: Retry Engine (configurable intervals)63├── Workflow 08: Status Sync (periodic)64├── Workflow 10: Outbound Campaigns (2-hourly, 9AM-7PM)65└── Workflow 11: Daily Report (once daily)66```6768## Required n8n Credentials6970You must create these credentials in your n8n instance before importing:7172| Credential Type | Used For | Placeholder in JSON |73|----------------|----------|---------------------|74| Google Sheets OAuth2 | Order tracking, call logs, customer CRM | `YOUR_GOOGLE_SHEETS_CREDENTIAL_ID` |75| SMTP (Gmail or custom) | Daily report emails | `YOUR_SMTP_CREDENTIAL_ID` |7677All other API keys are configured via n8n environment variables (see below).7879## Quick Start8081### 1. Prerequisites82- n8n v2.4+ (self-hosted)83- Vapi.ai account (AI voice calls)84- Twilio account (SMS + phone numbers)85- Google Sheets OAuth2 credentials86- Shopify or WooCommerce store8788### 2. Environment Variables89```bash90# Google Sheets91ECOMM_ORDERS_SHEET_ID=your-sheet-id92ECOMM_CALL_LOG_SHEET_ID=your-sheet-id93ECOMM_CUSTOMERS_SHEET_ID=your-sheet-id9495# Vapi AI Voice96VAPI_API_URL=https://api.vapi.ai97VAPI_API_KEY=your-vapi-key98VAPI_COD_ASSISTANT_ID=your-assistant-id99100# Twilio101TWILIO_ACCOUNT_SID=your-sid102TWILIO_PHONE_NUMBER=+1234567890103TWILIO_AUTH_HEADER=Basic base64encoded104TWILIO_API_URL=https://api.twilio.com/2010-04-01105106# Inter-workflow routing107N8N_WEBHOOK_BASE=https://your-n8n-instance.com/webhook108109# Email addresses110ECOMM_FROM_EMAIL=orders@yourbusiness.com111ECOMM_OWNER_EMAIL=owner@yourbusiness.com112ECOMM_STAFF_EMAIL=staff@yourbusiness.com113114# Optional115HUBSPOT_API_KEY=your-key116OPENAI_API_KEY=your-key117SHOPIFY_STORE_URL=https://your-store.myshopify.com118SHOPIFY_ACCESS_TOKEN=your-shopify-access-token119WOOCOMMERCE_STORE_URL=https://your-store.com120WOOCOMMERCE_AUTH_HEADER=Basic base64encoded121WHATSAPP_API_URL=https://graph.facebook.com/v17.0/YOUR_PHONE_ID122WHATSAPP_API_TOKEN=your-whatsapp-token123ECOMM_CONFIRM_BASE_URL=https://your-store.com/confirm124```125126### 3. Sheet Setup127Create 3 Google Sheets with these tabs:128- **Orders**: order_id, customer_name, phone, email, amount, payment_type, status, created_at129- **Call Log**: call_id, order_id, phone, outcome, transcript, duration, created_at130- **Customers**: customer_id, name, phone, email, total_orders, last_order_date131132### 4. Import Workflows133Import all 12 workflow JSON files into n8n. Update webhook paths (all prefixed `ecomm-ai/`).134135### 5. Configure Vapi Assistant136Create a Vapi assistant for COD confirmation with your business script, voice, and language settings.137138## Use Cases1391401. **COD-heavy eCommerce** (South Asia, Middle East, Africa) — Confirm orders before shipping1412. **High-ticket items** — Voice confirmation for orders above threshold1423. **Subscription businesses** — Renewal confirmation calls1434. **B2B order confirmation** — Verify large purchase orders1445. **Appointment businesses** — Confirm bookings (dentists, salons, clinics)145146## Revenue Potential147148- **For store owners**: Reduce fake orders by 30-50%, saving $1,000-10,000+/month149- **As a service**: Charge $500-2,000/month per client for managed voice confirmation150- **Per-call pricing**: $0.50-2.00 per successful confirmation call151152## Customization153154- **Voice**: Change Vapi assistant for different languages/accents155- **Script**: Customize confirmation dialogue in Vapi dashboard156- **Channels**: Enable/disable WhatsApp, SMS, Email fallbacks157- **Retry logic**: Configure max attempts and intervals158- **Reporting**: Customize daily report metrics and recipients159160## Requirements161162- n8n v2.4+ (self-hosted recommended for webhook reliability)163- Vapi.ai account ($0.05-0.10 per minute of voice)164- Twilio account ($0.0075 per SMS)165- Google Sheets API credentials166- Shopify/WooCommerce webhook access