# Omnichannel AI Customer Support Chatbot Solution — API Store Hub

> VI: Triển khai trợ lý CSKH 24/7 hiểu sâu tiếng Việt, tra cứu đơn hàng qua Function Calling và chuyển nhân viên mượt khi cần — tối ưu chi phí từng hội thoại.
> EN: Deploy 24/7 omnichannel support assistants with fast Vietnamese/multilingual replies, live order lookup via tool calling, and smooth human handoff.

- Industry: Customer Support & Omnichannel Contact Center
- Canonical VI: https://apistorehub.com/vi/giai-phap/cskh-chatbot-da-kenh
- Canonical EN: https://apistorehub.com/en/giai-phap/cskh-chatbot-da-kenh

## Reference Architecture
Webhooks from Zalo OA, web chat, Messenger, and Telegram flow into a central router: `deepseek-v4-flash` handles high-speed intent routing and FAQ replies, Function Calling queries CRM/orders, and complex escalations route to `claude-sonnet-5-5`.

## Recommended Model Stack (Live ST Pricing)
| Role | Model | Live ST Rate | Why |
|---|---|---|---|
| Fast FAQ & Intent Classification | `deepseek-v4-flash` | 1,500 ST / 1M tokens | Sub-second response latency and minimal per-request cost at scale. |
| Customer Receipt & Photo Vision | `gemini-3.8-flash` | 5,200 ST / 1M tokens | Accurate multimodal reading of transfer receipts and shipping labels. |
| Complex Escalations & Consultation | `claude-sonnet-5-5` | 7,700 ST / 1M tokens | Natural tone and strict adherence to brand support policies. |

## Deployment Steps
1. Organize FAQs, pricing, and return policies into concise tagged knowledge blocks.
2. Expose three backend tools: `search_kb`, `lookup_order`, and `handoff_to_human`.
3. Acknowledge messaging webhooks asynchronously and deliver AI replies via queue workers.
4. Track ticket deflection rates and refine prompts from escalated conversations.

## Quickstart cURL
```bash
curl https://apistorehub.com/v1/chat/completions \
  -H "Authorization: Bearer sk-ash-your_key" \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek-v4-flash","max_tokens":300,"messages":[{"role":"system","content":"Trả lời ngắn gọn, lịch sự bằng tiếng Việt."},{"role":"user","content":"Đơn hàng #DH1029 giao tới đâu rồi?"}]}'
```

## FAQ
- **Can the bot escalate smoothly to human agents?**: Yes. Configure a `handoff_to_human` tool triggered on low confidence, complaints, or explicit user requests.
- **How do I keep policy answers always up to date?**: Fetch live policy and order status through Function Calling or RAG.
- **Does it support multilingual customer queues?**: Yes. Models automatically detect and respond in Vietnamese, English, Chinese, Japanese, Korean, and more.
