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.
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):
{
"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" } }
]
}firstSpeakerisa(target) orb(counterpart). It is the only key insimulationConfig. The first speaker's agent needs a greeting clip or must start the conversation itself ("initiate": truein 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 incallOverrides.- Participants can set
placeholdersandpluginContexts. 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
Use the `dino-pong` skill to run a two-agent simulation.
Target agent: <agent>. Counterpart agents: <agents>.
Verify both agents are available and I have a Runtime, partner credentials, and concurrency.
Write the batch file, and show it with the billing effect.
Wait for my approval, run once, then return both Lens links and outcomes.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.
| Status | Read |
|---|---|
completed | Both archives are ready. Open the simulation Lens link, or each side's link, and read each report. |
failed | failure.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.