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
CODEBLOCK0
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 | INLINECODE0 |
| 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
CODEBLOCK1
3. Sheet Setup
Create 3 Google Sheets with these tabs:
- - Orders: orderid, customername, phone, email, amount, paymenttype, status, createdat
- Call Log: callid, orderid, phone, outcome, transcript, duration, createdat
- Customers: customerid, name, phone, email, totalorders, lastorder_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
- 1. 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
eComm AI 语音助手 📞
一个面向电商企业的、可用于生产环境的12工作流AI语音助手系统。可自动处理订单确认电话、客户支持、退货、重试和外呼营销活动。
问题
电商企业(尤其是货到付款占比较高的市场)因虚假订单、无人签收和未确认配送而损失20-40%的订单。人工确认电话成本高昂且无法规模化扩展。
该系统利用AI语音通话实现整个确认和支持生命周期的自动化。
包含内容
12个生产工作流
| # | 工作流 | 功能 |
|---|
| 01 | 订单接收 | Webhook接收新订单,验证,按支付类型路由 |
| 02 |
货到付款确认电话 | AI语音电话确认货到付款订单 |
| 03 |
预付确认 | 短信确认 + 可选的高价值语音电话 |
| 04 |
通话结果处理器 | 处理Vapi回调,按结果路由 |
| 05 |
重试引擎 | 按计划自动重试未接听的电话 |
| 06 |
WhatsApp/短信备用方案 | 针对无法联系的客户的多渠道备用方案 |
| 07 |
退货与常见问题处理器 | 基于意图的客户支持查询路由 |
| 08 |
订单状态更新器 | 将状态同步回Shopify/WooCommerce |
| 09 |
CRM与表格记录器 | 中央事件记录 + HubSpot同步 |
| 10 |
外呼营销活动 | 针对未确认订单的主动跟进 |
| 11 |
每日报告 | 向管理员自动发送指标邮件 |
| 12 |
客户回拨 | 入站通话队列管理 |
架构
Shopify/WooCommerce订单
│
▼
工作流01: 订单接收与路由
│
├── 货到付款订单 ──► 工作流02: AI语音电话
│ │
│ ▼
│ 工作流04: 解析通话结果
│ │
│ ├── 已确认 → 履行订单
│ ├── 已拒绝 → 取消订单
│ └── 无人接听 → 工作流05: 重试
│ │
│ └── 达到最大重试次数 → 工作流06: 短信/WhatsApp
│
├── 预付 ──► 工作流03: 短信 + 可选电话
│
└── 所有事件 ──► 工作流09: 中央记录器
│
├── Google Sheets(订单、通话记录、客户)
└── HubSpot CRM(可选)
定时任务:
├── 工作流05: 重试引擎(可配置间隔)
├── 工作流08: 状态同步(定期)
├── 工作流10: 外呼营销活动(每2小时,上午9点至下午7点)
└── 工作流11: 每日报告(每天一次)
所需的n8n凭证
导入前,您必须在n8n实例中创建以下凭证:
| 凭证类型 | 用途 | JSON中的占位符 |
|---|
| Google Sheets OAuth2 | 订单跟踪、通话记录、客户CRM | YOURGOOGLESHEETSCREDENTIALID |
| SMTP(Gmail或自定义) |
每日报告邮件 | YOUR
SMTPCREDENTIAL_ID |
所有其他API密钥通过n8n环境变量配置(见下文)。
快速入门
1. 前提条件
- - n8n v2.4+(自托管)
- Vapi.ai账户(AI语音通话)
- Twilio账户(短信 + 电话号码)
- Google Sheets OAuth2凭证
- Shopify或WooCommerce店铺
2. 环境变量
bash
Google Sheets
ECOMM
ORDERSSHEET_ID=您的表格ID
ECOMM
CALLLOG
SHEETID=您的表格ID
ECOMM
CUSTOMERSSHEET_ID=您的表格ID
Vapi AI语音
VAPI
APIURL=https://api.vapi.ai
VAPI
APIKEY=您的vapi密钥
VAPI
CODASSISTANT_ID=您的助手ID
Twilio
TWILIO
ACCOUNTSID=您的SID
TWILIO
PHONENUMBER=+1234567890
TWILIO
AUTHHEADER=Basic base64编码
TWILIO
APIURL=https://api.twilio.com/2010-04-01
工作流间路由
N8N
WEBHOOKBASE=https://您的n8n实例.com/webhook
邮箱地址
ECOMM
FROMEMAIL=orders@您的企业.com
ECOMM
OWNEREMAIL=owner@您的企业.com
ECOMM
STAFFEMAIL=staff@您的企业.com
可选
HUBSPOT
APIKEY=您的密钥
OPENAI
APIKEY=您的密钥
SHOPIFY
STOREURL=https://您的店铺.myshopify.com
SHOPIFY
ACCESSTOKEN=您的shopify访问令牌
WOOCOMMERCE
STOREURL=https://您的店铺.com
WOOCOMMERCE
AUTHHEADER=Basic base64编码
WHATSAPP
APIURL=https://graph.facebook.com/v17.0/您的电话ID
WHATSAPP
APITOKEN=您的whatsapp令牌
ECOMM
CONFIRMBASE_URL=https://您的店铺.com/confirm
3. 表格设置
创建3个Google Sheets,包含以下标签页:
- - 订单: orderid, customername, phone, email, amount, paymenttype, status, createdat
- 通话记录: callid, orderid, phone, outcome, transcript, duration, createdat
- 客户: customerid, name, phone, email, totalorders, lastorder_date
4. 导入工作流
将所有12个工作流JSON文件导入n8n。更新webhook路径(全部以ecomm-ai/为前缀)。
5. 配置Vapi助手
创建一个用于货到付款确认的Vapi助手,配置您的业务脚本、语音和语言设置。
使用场景
- 1. 货到付款为主的电商(南亚、中东、非洲)— 发货前确认订单
- 高价值商品 — 对超过阈值的订单进行语音确认
- 订阅制业务 — 续订确认电话
- B2B订单确认 — 验证大批量采购订单
- 预约业务 — 确认预约(牙科诊所、美发沙龙、诊所)
收入潜力
- - 对店主: 减少30-50%的虚假订单,每月节省1,000-10,000+美元
- 作为服务: 每个客户每月收取500-2,000美元的管理式语音确认服务费
- 按次计费: 每次成功确认电话收费0.50-2.00美元
定制化
- - 语音: 更换Vapi助手以适应不同语言/口音
- 脚本: 在Vapi仪表板中自定义确认对话
- 渠道: 启用/禁用WhatsApp、短信、邮件备用方案
- 重试逻辑: 配置最大尝试次数和间隔
- 报告: 自定义每日报告指标和收件人
要求
- - n8n v2.4+(建议自托管以确保webhook可靠性)
- Vapi.ai账户(语音每分钟$0.05-0.10)
- Twilio账户(每条短信$0.0075)
- Google Sheets API凭证
- Shopify/WooCommerce webhook访问权限