
AI Support Agent That Carries Context Between Email and WhatsApp (Python)
A unified dashboard demo showing customer support across Email and WhatsApp channels using Telnyx APIs.
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
A unified dashboard demo showing customer support across Email and WhatsApp channels using Telnyx APIs.
Scenario: A customer reports a damaged order via email. Support follows up on WhatsApp to collect a damage photo, approves a replacement, and sends a shipping confirmation back via email — all tracked in a single dashboard.
pip install -r requirements.txt python demo/demo_server.py
Open http://localhost:5050 and click Run Demo Journey.
Step Channel Direction What Happens
1a Email Inbound Customer reports damaged headphones
1b Email Outbound Auto-acknowledgment, mentions WhatsApp follow-up
2 WhatsApp Outbound Template message requesting damage photo
3 WhatsApp Inbound Customer sends photo + description
4 WhatsApp Outbound Support confirms replacement approved
5 Email Outbound Shipping confirmation with tracking number
Order status transitions: delivered → damage_reported → replacement_shipping → resolved
cp .env.example .env
Edit .env with your credentials
python app.py
Configure Telnyx webhooks:
email-whatsapp-support-python/ ├── app.py # Flask app: webhooks, channel helpers, SSE, customer registry ├── demo/ │ └── demo_server.py # Imports app.py, mocks APIs, runs scripted journey ├── templates/ │ └── index.html # Dashboard UI (4-panel layout) ├── requirements.txt # flask, python-dotenv, telnyx, requests ├── .env.example # Credential placeholders ├── smoke_test.py # Basic tests ├── README.md # This file ├── API.md # Endpoint reference └── GUIDE.md # Tutorial walkthrough
API Endpoints
See API.md for the full endpoint reference.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。