Skip to Content
Confident AI is free to try . No credit card required.

Simulate Multi-Turn Conversations

You can simulate user conversations by providing a list of conversational goldens and a list of ongoing turns.

POST - /v1/simulate
curl -X POST "https://api.confident-ai.com/v1/simulate" \ -H "Content-Type: application/json" \ -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>" \ -d '{ "golden": { "scenario": "A frustrated user asking for a refund.", "userDescription": "A white male who is a customer for over 2 years." }, "existingTurns": [ {"role": "assistant", "content": "Hey, how can I help you today?"} ] }'
response
{ "success": true, "data": { "simulationId": "SIMULATION-ID", "completed": false, "userResponse": "I'd like my refund please.", "turns": [ {"role": "assistant", "content": "Hey, how can I help you today?"}, {"role": "user", "content": "I'd like my refund please."} ] } }
Last updated on