Simulate conversation

Deprecated

Deprecated. This endpoint will be removed on 31 Oct 2026. Use the /v1/convai/agent-testing/create and /v1/convai/agents/:agent_id/run-tests endpoints to create and run simulations. Run a conversation between the agent and a simulated user.

Paramètres de chemin

agent_idstringRequis
The id of an agent. This is returned on agent creation.

En-têtes

xi-api-keystringOptionnel

Requête

This endpoint expects an object.
simulation_specificationobjectRequis
A specification detailing how the conversation should be simulated
extra_evaluation_criterialist of objectsOptionnel
A list of evaluation criteria to test
new_turns_limitintegerOptionnel<=100Par défaut 100
Maximum number of new turns to generate in the conversation simulation

Réponse

Successful Response
simulated_conversationlist of objects
analysisobject

Erreurs

422
Agents Simulate Conversation Request Unprocessable Entity Error