Dashboard
Patter includes a built-in web dashboard for monitoring calls in real time.Embedded Dashboard
When runningserve(), the dashboard is enabled by default at the root URL:
Standalone Dashboard
Run the dashboard as a separate process — useful when using the SDK as a tool (e.g. from LangGraph or Claude Code).Features
- Total Calls — count of all calls in the session
- Total Cost — aggregate cost breakdown (STT, LLM, TTS, telephony)
- Avg Duration — average call duration
- Avg Latency — end-to-end response latency
- Call List — all completed calls with cost, latency, turns
- Active Calls — currently in-progress calls
- Call Detail — click a call to see transcript, latency bars, cost breakdown
- Real-time Updates — live via Server-Sent Events (SSE)
API Endpoints
| Endpoint | Description |
|---|---|
GET / | Dashboard web UI |
GET /api/dashboard/calls | List calls (paginated) |
GET /api/dashboard/calls/:id | Single call detail |
GET /api/dashboard/active | Active calls |
GET /api/dashboard/aggregates | Aggregate stats |
GET /api/dashboard/events | SSE event stream |
GET /api/dashboard/export/calls | Export as CSV or JSON |

