Build and test your voice agent from one file.
Define the agent, the calls it should handle and the checks it has to pass, all in your repo. Apply it, then run the simulation from the CLI.
New to Roark? This walks you through your first simulation.
$ roark get-started
Read the guide→roark.config.ts
const agent = defineAgent({ name: 'frontdesk', provider: 'roark', jobDescription: 'Books appointments for callers.', endpoints: [{ value: '+15551234567' }],})const bookAppointmentTestFlow = defineImprovFlow({ name: 'book-appointment', agents: ['frontdesk'], happyPath: { persona: 'new-caller', environment: 'Quiet line', prompt: 'You call to book an appointment for next week.', expectations: ['Agent confirms a real opening'], },})const testPlan = defineSimulationPlan({ name: 'booking-tests', direction: 'INBOUND', agentEndpoints: [{ agent: 'frontdesk' }], flows: [{ flow: 'book-appointment' }], metrics: ['agent_responsive'], maxDurationSeconds: 300,})Terminal
$roark config apply roark.config.ts$roark simulation run --data '{"planId":"<plan-id>"}'