Call simulatorPro
A test call against a voice agent with a persona, a live transcript and pass or fail checks.
On this page
ProA scripted test call streams in and each check is scored as it is decided.
Installation
Usage
import { CallSimulator } from "@/components/ui/chatcn/pro/call-simulator"
<CallSimulator personas={personas} persona={persona} transcript={turns} checks={checks} status={status} onRun={run} />Your app runs the simulation and passes the transcript and check results in as they arrive; the component lays them out. Each check says why it passed or failed, pointing at the turn it hinges on.
Examples
States
ProBefore the first run, finished with a failure, and could not connect.
Props
| Prop | Type | Notes |
|---|---|---|
personas, persona, onPersonaChange | Persona list and choice | Real radio buttons |
transcript | { speaker, text }[] | The call so far |
checks | SimCheck[] | { id, label, status, note? } |
status, onRun, error | Run state | idle, running, done or error |
Accessibility
- The transcript is a focusable, named list that follows the call only while you are at the bottom.
- The score is a polite live region; checks pair glyphs with words.