Skip to content
v2.3.2 Updated Verified

Simulate a conversation ​

Connect two of your agents on one Runtime and read a separate Lens report for each side. Use a simulation to prove a full, multi-turn conversation without telephony.

You run dino simulation batch run with a batch file. Command takes two Widget slots per counterpart and starts one simulation per counterpart on the Runtime. Each simulation starts a transcribed call for the target (side A) and one for the counterpart (side B); each AI finds the turns with its provider's own turn detection. When both AIs are ready, the line opens, and every 20 ms each side sends the other one frame, its speech or silence. The first speaker opens, the agents take turns, and the flow or the stall rule ends the conversation. The Runtime closes the other call and uploads both archives to Command, which stores them in Lens. dino simulation batch get returns each simulation's status and both Lens links.You run dino simulation batch run with a batch file. Command takes two Widget slots per counterpart and starts one simulation per counterpart on the Runtime. Each simulation starts a transcribed call for the target (side A) and one for the counterpart (side B); each AI finds the turns with its provider's own turn detection. When both AIs are ready, the line opens, and every 20 ms each side sends the other one frame, its speech or silence. The first speaker opens, the agents take turns, and the flow or the stall rule ends the conversation. The Runtime closes the other call and uploads both archives to Command, which stores them in Lens. dino simulation batch get returns each simulation's status and both Lens links.

PlantUML source

Requirements ​

A simulation is Pong-tier and billable. It needs:

  • A Runtime and partner credentials for the account.
  • AI Studio or Vertex credentials for each agent, compatible with its model. Vertex supports Gemini 3.8 Live.
  • Two free Widget slots per counterpart. A batch takes all of them at once.

Both agents must be available for the account. A simulation takes no VAD mode and no VAD profile. Each AI finds the turns with its provider's own default turn detection.

Write the batch file ​

A batch file holds the whole request. It runs the target (side A) against each entry in counterparts (side B):

json
{
  "name": "pizza debates",
  "simulationConfig": { "firstSpeaker": "a" },
  "voxServerId": "<runtime-id>",
  "callOverrides": { "hardCloseSecs": 300 },
  "target": { "agentId": "<agent-id>", "partnerCredentialId": "<credential-id>" },
  "counterparts": [
    { "agentId": "<agent-id>", "partnerCredentialId": "<credential-id>", "placeholders": { "motion": "Cats" } }
  ]
}
  • firstSpeaker is a (target) or b (counterpart). It is the only key in simulationConfig. The first speaker's agent needs a greeting clip or must start the conversation itself ("initiate": true in its flow); otherwise the batch is rejected.
  • Every simulation call is transcribed, both speakers. Transcription adds provider cost.
  • hardCloseSecs (90–900) is the fallback call limit. It is the only key in callOverrides.
  • Participants can set placeholders and pluginContexts. Every counterpart must differ in agent, partner credential, placeholders, or plugin contexts.
  • Unknown keys are rejected.

Each side keeps its own persona and first-stage instruction. The line opens when both AIs are ready. The first speaker then opens as on a real call: its greeting, if it has one, then its flow. The other side never plays its greeting. It listens, then replies.

A simulation runs in real time, like a call. Every 20 ms each side sends the other one 20 ms frame: its speech, or silence. A conversation takes as long as it would on a call, and Lens plays it with that timing.

When a side should reply and does not, or its tool calls run longer than 15 s, the side that waits plays its own idle clip after 15 s. If no reply comes 15 s later, that side ends as user_unresponsive. This is a normal end, not a failure. When one side ends, the other side hears 1.5 s of silence, so its model can finish its turn. Then it hears the line close and runs its own ending steps.

Run and inspect ​

Read the result ​

simulation get returns status, a lensUrl, and an initiator and responder object. The top-level lensUrl opens both sides on one clock: the target (A) and the counterpart (B), with their turns, interruptions, flow steps and end reasons. It is null until both archives are ready. Each side has callId, agent (the id and name of the exact agent version that ran), archiveReady, lensUrl, and report.

StatusRead
completedBoth archives are ready. Open the simulation Lens link, or each side's link, and read each report.
failedfailure.code and failure.participant (a or b).

simulation list returns newest first. Each item has the ID, the batch name, status, both call IDs, lensUrl for both sides, and initiatorLensUrl/responderLensUrl. A Lens link is null until its archives are ready.

Gotchas ​

  • hardCloseSecs (90–900) is the fallback limit. There is no separate simulation duration.
  • Each Lens link appears only after that side's archive reaches Lens.
  • A Lens link opens only after sign-in to the owning account. To share a simulation with a person without an account, open it in Lens and use Share.
  • An available Lens link does not clear an earlier failure.
  • Do not start a replacement run automatically. Each run is billable.

Next ​

Use Test your agent for the single-call preview path.