https://github.com/marker-inc-korea/ecommerce-multi-agent
Multi-agent inbound voice customer support system for e-commerce using LiveKit & Twilio
https://github.com/marker-inc-korea/ecommerce-multi-agent
livekit telephony-agent twilio
Last synced: 4 months ago
JSON representation
Multi-agent inbound voice customer support system for e-commerce using LiveKit & Twilio
- Host: GitHub
- URL: https://github.com/marker-inc-korea/ecommerce-multi-agent
- Owner: Marker-Inc-Korea
- License: mit
- Created: 2025-06-02T08:10:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-02T08:26:14.000Z (about 1 year ago)
- Last Synced: 2025-10-13T06:15:25.834Z (9 months ago)
- Topics: livekit, telephony-agent, twilio
- Language: Python
- Homepage:
- Size: 67.4 KB
- Stars: 7
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐๏ธ Voice Agent for E-commerce Customer Support (Inbound, Multi-Agent)
์ด ํ๋ก์ ํธ๋ LiveKit Agents๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ๊ตฌ์ถ๋ ๋ค์ค ์์ด์ ํธ ๊ธฐ๋ฐ Inbound ์์ฑ ์๋ด ์์คํ
์
๋๋ค. ์ด์ปค๋จธ์ค ๊ณ ๊ฐ์ด ์ ํ๋ก ๋ฌธ์ํ๋ฉด AI ์์ด์ ํธ๊ฐ ์๋์ผ๋ก ์๋ตํ๊ณ , ๋ฌธ์ ๋ด์ฉ์ ๋ฐ๋ผ ์ ์ ํ ์ ๋ฌธ๊ฐ ์ญํ ์ Agent๋ก ์ฐ๊ฒฐํด์ค๋๋ค.
## ๐ฆ ์ฃผ์ ๊ธฐ๋ฅ
- โ๏ธ Twilio Voice ๊ธฐ๋ฐ Inbound ์ฝ ์ฒ๋ฆฌ
- ๐ง ๋ค์ค LLM Agent ๊ตฌ์ฑ (Triage โ Pre/Post/After Sales)
- ๐ Agent ๊ฐ ์์ฐ์ค๋ฌ์ด ์ ํ๊ณผ context ์ ์ง
- ๐ฃ๏ธ Deepgram STT, Cartesia TTS, Silero VAD ํตํฉ
- ๐งช ์ํ ์ํ/์ฃผ๋ฌธ/๋ฐํ ๋ฐ์ดํฐ๋ก ํ
์คํธ ๊ฐ๋ฅ
## ๐ง Agent ๊ตฌ์ฑ
- TriageAgent (์ด๊ธฐ ์ง์
์ ): ์ ์ ํ ์ธ๋ถ ์์ด์ ํธ๋ก ์ฐ๊ฒฐ
- PrePurchaseAgent: ์ํ ๋ฐ ๊ตฌ๋งค ์ ๋ฌธ์ ์ฒ๋ฆฌ
- PostPurchaseAgent: ์ฃผ๋ฌธ ์ํ ํ์ธ ๋ฐ ๊ตฌ๋งค ํ ์ง์
- AfterSalesAgent: ๋ฐํ, ํ๋ถ ๋ฑ ์ฌํ ์ฒ๋ฆฌ ๋ด๋น
## โ๏ธ Twilio & SIP ์ฐ๋
์ด ํ๋ก์ ํธ๋ Twilio Programmable Voice + SIP โ LiveKit ์ฐ๊ฒฐ ๋ฐฉ์์ผ๋ก ์๋ํฉ๋๋ค.
[๊ณต์ ๋ฌธ์](https://docs.livekit.io/sip/accepting-calls-twilio-voice/)๋ฅผ ์ฐธ๊ณ ํด ์ค์ ์ ์งํํ์ธ์.
์ค์ ์๋ฃ ํ Twilio ๋ฒํธ๋ก ์ ํ๋ฅผ ๊ฑธ๋ฉด ์์ด์ ํธ๊ฐ ์๋์ผ๋ก ์๋ตํฉ๋๋ค.
## ์ค์น ๋ฐ ํ๊ฒฝ ์ค์
1. ์ ์ฅ์ ๋ณต์
```bash
git clone https://github.com/Marker-Inc-Korea/ecommerce-multi-agent.git
cd ecommerce-multi-agent
```
2. ์์กด์ฑ ์ค์น
uv๋ฅผ ์ด์ฉํด ํ์ํ ํ์ด์ฌ ํจํค์ง๋ฅผ ํ ๋ฒ์ ์ค์นํฉ๋๋ค.
```bash
uv sync
```
3. ํ๊ฒฝ ๋ณ์ ๊ตฌ์ฑ
* `.env.example`๋ฅผ `.env`๋ก ๋ณต์ฌ ํ ๋ค์ ๊ฐ์ ์ฑ์ ๋ฃ์ต๋๋ค:
```dotenv
LIVEKIT_API_KEY=...
LIVEKIT_API_SECRET=...
LIVEKIT_URL=wss://your.livekit.server
...
```
## ๐ป Agent ์คํ
```python
python agent.py dev
```
## ๐ ์ฝ ํ๋ฆ
1. ๊ณ ๊ฐ์ด Twilio ์ ํ๋ฒํธ๋ก ์ ํ
2. Twilio โ SIP โ LiveKit์ผ๋ก ์ฐ๊ฒฐ
3. TriageAgent๊ฐ ์ธ์ฌ ๋ฐ ๋ผ์ฐํ
4. ์ฌ์ฉ์ ์์ฒญ์ ๋ฐ๋ผ ์ ๋ฌธ Agent๋ก ์ ํ
5. ๊ฐ Agent๋ ํด ํธ์ถ (tool call)์ ํตํด ์ฌ์ฉ์ ์์ฒญ ์ฒ๋ฆฌ
## ๐งช ์์ด์ ํธ function ์์
- `list_products()` โ ์์ฑ ์นํ์ ์ธ ์ํ ๋ชฉ๋ก ์๋ด
- `check_order_status(order_id)`
- `request_return(order_id)`
- `transfer_to_*()` โ ์์ฐ์ค๋ฌ์ด Agent ์ ํ
## ๐ท๏ธ License
MIT ยฉ Marker-Inc-Korea