{
  "id": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
  "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
  "number": "+381603022591",
  "direction": "outbound",
  "room": "node-bbbbc809-b714-44bd-8290-7fd8cb890f2a",
  "status": "failed",
  "sipCallId": "SCL_gM7jyBVSpmpv",
  "sipStatus": "active",
  "createdAt": "2026-10-08T14:58:08.384Z",
  "updatedAt": "2026-10-08T14:58:27.707Z",
  "answeredAt": "2026-10-08T14:58:19.875Z",
  "endedAt": "2026-10-08T14:58:27.705Z",
  "endedReason": "Agent execution failed",
  "dialog": {
    "id": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
    "createdAt": "2026-10-08T14:58:08.384Z",
    "initialState": {
      "id": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
      "turns": [],
      "inputs": {},
      "status": "created",
      "version": 2,
      "collected": {},
      "agentState": null,
      "participants": [
        {
          "id": "callee",
          "kind": "human",
          "name": "+381603022591",
          "status": "disconnected"
        },
        {
          "id": "agent",
          "kind": "agent",
          "name": "Aki",
          "status": "disconnected",
          "behavior": {
            "turns": "submissive",
            "greeting": {
              "initiative": "assertive",
              "interruptible": true
            }
          },
          "template": {
            "id": "c8387d21-1991-4c9e-b773-fe4c51724802@4",
            "name": "Aki",
            "audios": {
              "greeting": {
                "text": "Dobar dan, aik banka. Ja sam Aki, virtuelna savetnica. Kako mogu da Vam pomognem?",
                "asset": {
                  "id": "6e4cfdf3-b074-4283-bc59-7293a6a439c3",
                  "key": "template-values/elevenlabs-dc63dfa48d0ddb5d/6e4cfdf3-b074-4283-bc59-7293a6a439c3.wav",
                  "bucket": "livekit-node-stage",
                  "objectSha256": "967135084f7df5922d199f76e5832ca962dc0c89d538e0cede3a252b5c52ae43"
                },
                "format": "pcm_s16le",
                "sha256": "186c173d3285a222d3d8729bc2bcc7486c4804f8a2df167e8108dc009b1ac30f",
                "channels": 1,
                "byteLength": 276480,
                "durationMs": 5760,
                "sampleRate": 24000
              }
            },
            "prompts": {
              "system": "aik banka. Provera raspoloživog stanja na kreditnoj kartici."
            },
            "latencyCovers": []
          },
          "definition": {
            "kind": "code",
            "options": {
              "latencyFiller": true,
              "speechProfile": {
                "speed": 1,
                "stability": 0.8,
                "similarityBoost": 0.8
              },
              "expectedReplyPool": true
            },
            "voicePack": {
              "id": "elevenlabs:oICC5xEEbDGIZC1LVOOM",
              "label": "Aki",
              "model": "eleven_v4_turbo",
              "voiceId": "oICC5xEEbDGIZC1LVOOM",
              "language": "sr",
              "provider": "elevenlabs"
            },
            "configuration": {
              "name": "Aki",
              "timing": {
                "softMs": 250,
                "openingMs": 1200,
                "committedMs": 850
              },
              "behavior": {
                "turns": "submissive",
                "greeting": {
                  "initiative": "assertive",
                  "interruptible": true
                }
              },
              "providers": {
                "ttv": "elevenlabs",
                "vtt": "soniox",
                "reply": "openai"
              },
              "voicePackId": "elevenlabs:oICC5xEEbDGIZC1LVOOM",
              "systemPrompt": "aik banka. Provera raspoloživog stanja na kreditnoj kartici."
            },
            "implementation": {
              "key": "aki",
              "version": "1"
            }
          }
        }
      ],
      "currentSpeakerId": null,
      "awaitingParticipantId": null
    },
    "lastSequence": 53,
    "historyStartedAt": "2026-10-08T14:58:08.384Z",
    "events": [
      {
        "id": "2a004088-78da-436c-878c-33e9eecf167c",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 1,
        "layer": "CALL",
        "type": "call.created",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:08.364Z",
        "recordedAt": "2026-10-08T14:58:08.384Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "room": "node-bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "type": "call.created",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "number": "+381603022591",
          "direction": "outbound"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "61943607-d129-44f3-8b2c-7d80f2c7dcd5",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 2,
        "layer": "CALL",
        "type": "call.connecting",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:08.364Z",
        "recordedAt": "2026-10-08T14:58:08.384Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.connecting",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "5e31a094-68a0-458d-b05a-3a6eb0628c82",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 3,
        "layer": "DIALOG",
        "type": "dialog.started",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:08.364Z",
        "recordedAt": "2026-10-08T14:58:08.384Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "dialog.started",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "e2251b7d-b093-467e-b479-1327f1110f23",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 4,
        "layer": "CALL",
        "type": "call.sip_status",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:08.660Z",
        "recordedAt": "2026-10-08T14:58:08.675Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.sip_status",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "sipCallId": "SCL_gM7jyBVSpmpv"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "f806e84d-3c6b-4f4e-9856-c82e12850a95",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 5,
        "layer": "CALL",
        "type": "call.participant_joined",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:08.686Z",
        "recordedAt": "2026-10-08T14:58:08.697Z",
        "operationId": null,
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "type": "call.participant_joined",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "790ccf8b-6b8c-4077-8d00-f05741f27170",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 6,
        "layer": "CALL",
        "type": "call.sip_status",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:08.686Z",
        "recordedAt": "2026-10-08T14:58:08.702Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.sip_status",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "sipCallId": "SCL_gM7jyBVSpmpv",
          "sipStatus": "dialing"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "1936ff98-cd0e-4724-8130-1e6de70299dc",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 7,
        "layer": "CALL",
        "type": "call.sip_status",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:12.010Z",
        "recordedAt": "2026-10-08T14:58:12.015Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.sip_status",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "sipCallId": "SCL_gM7jyBVSpmpv",
          "sipStatus": "ringing"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "6585b842-23ad-4956-9476-f2818a2a0b5c",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 8,
        "layer": "CALL",
        "type": "call.sip_status",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:19.875Z",
        "recordedAt": "2026-10-08T14:58:19.881Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.sip_status",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "sipCallId": "SCL_gM7jyBVSpmpv",
          "sipStatus": "active"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "4d145e42-762d-44a4-b7e3-26eabcaadda0",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 9,
        "layer": "CALL",
        "type": "call.connected",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:19.875Z",
        "recordedAt": "2026-10-08T14:58:19.886Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.connected",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "f1417743-c52d-4ad8-8297-2b045022c63b",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 10,
        "layer": "L1",
        "type": "vtt.started",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:20.177Z",
        "recordedAt": "2026-10-08T14:58:20.203Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "mode": "live",
          "type": "vtt.started",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "c3d1d065-4edb-4b5c-a0dc-b803c60ad2c2",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 11,
        "layer": "DIALOG",
        "type": "dialog.ready",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:20.218Z",
        "recordedAt": "2026-10-08T14:58:20.225Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "dialog.ready",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "behavior": {
            "turns": "submissive",
            "greeting": {
              "initiative": "assertive",
              "interruptible": true
            }
          },
          "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "b74092d8-ebfb-482d-8e51-32ddb6a7f74c",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 12,
        "layer": "DIALOG",
        "type": "dialog.turn.started",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:20.232Z",
        "recordedAt": "2026-10-08T14:58:20.239Z",
        "operationId": null,
        "turnId": "fc848636-af7d-4a6a-b845-3ccc82381400",
        "participantId": "agent",
        "payload": {
          "kind": "greeting",
          "text": "Dobar dan, aik banka. Ja sam Aki, virtuelna savetnica. Kako mogu da Vam pomognem?",
          "type": "dialog.turn.started",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "turnId": "fc848636-af7d-4a6a-b845-3ccc82381400",
          "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "participantId": "agent"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "94db458e-614a-4b42-b35d-2487b38b7557",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 13,
        "layer": "L1",
        "type": "audio.playback.started",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:20.243Z",
        "recordedAt": "2026-10-08T14:58:20.255Z",
        "operationId": "3a71271d-4571-43d5-9095-6fc259f98f70",
        "turnId": null,
        "participantId": "agent",
        "payload": {
          "type": "audio.playback.started",
          "audio": {
            "text": "Dobar dan, aik banka. Ja sam Aki, virtuelna savetnica. Kako mogu da Vam pomognem?",
            "asset": {
              "id": "6e4cfdf3-b074-4283-bc59-7293a6a439c3",
              "key": "template-values/elevenlabs-dc63dfa48d0ddb5d/6e4cfdf3-b074-4283-bc59-7293a6a439c3.wav",
              "bucket": "livekit-node-stage",
              "objectSha256": "967135084f7df5922d199f76e5832ca962dc0c89d538e0cede3a252b5c52ae43"
            },
            "format": "pcm_s16le",
            "sha256": "186c173d3285a222d3d8729bc2bcc7486c4804f8a2df167e8108dc009b1ac30f",
            "channels": 1,
            "byteLength": 276480,
            "durationMs": 5760,
            "sampleRate": 24000
          },
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "operationId": "3a71271d-4571-43d5-9095-6fc259f98f70",
          "participantId": "agent"
        },
        "audioId": "6e4cfdf3-b074-4283-bc59-7293a6a439c3",
        "audio": {
          "id": "6e4cfdf3-b074-4283-bc59-7293a6a439c3",
          "name": "template:dc59673d38ad8755300885fc7723ee427abbb4f7213499f1af27369a3bf9a095",
          "text": "Dobar dan, aik banka. Ja sam Aki, virtuelna savetnica. Kako mogu da Vam pomognem?",
          "format": "pcm_s16le",
          "sampleRate": 24000,
          "channels": 1,
          "sha256": "186c173d3285a222d3d8729bc2bcc7486c4804f8a2df167e8108dc009b1ac30f",
          "byteLength": 276480,
          "durationMs": 5760,
          "bucket": "livekit-node-stage",
          "key": "template-values/elevenlabs-dc63dfa48d0ddb5d/6e4cfdf3-b074-4283-bc59-7293a6a439c3.wav",
          "objectSha256": "967135084f7df5922d199f76e5832ca962dc0c89d538e0cede3a252b5c52ae43",
          "objectByteLength": 276524,
          "mimeType": "audio/wav",
          "createdAt": "2026-10-08T14:48:48.248Z"
        }
      },
      {
        "id": "6a66a882-40f8-4639-b515-b89d5285be89",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 14,
        "layer": "L1",
        "type": "audio.playback.first_frame",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:20.261Z",
        "recordedAt": "2026-10-08T14:58:20.271Z",
        "operationId": "3a71271d-4571-43d5-9095-6fc259f98f70",
        "turnId": null,
        "participantId": "agent",
        "payload": {
          "type": "audio.playback.first_frame",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "operationId": "3a71271d-4571-43d5-9095-6fc259f98f70",
          "firstFrameAt": "2026-10-08T14:58:20.259Z",
          "participantId": "agent"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "b355d8d8-3e2e-49d8-bfe2-a253dae83f3d",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 15,
        "layer": "L1",
        "type": "silence.soft",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:20.453Z",
        "recordedAt": "2026-10-08T14:58:20.454Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "atMs": 282.0260299999991,
          "type": "silence.soft",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "silenceId": "f204a6eb-04f3-43fa-95c3-868c49253d2d",
          "durationMs": 256,
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "0b359944-38e1-407a-98a8-c9aeb77e87a6",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 16,
        "layer": "L1",
        "type": "speech.started",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:20.709Z",
        "recordedAt": "2026-10-08T14:58:20.779Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "atMs": 538.0260299999991,
          "type": "speech.started",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "1ac69cf9-acb7-4f4d-b3a3-76edc944c068",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 17,
        "layer": "DIALOG",
        "type": "dialog.interrupted",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:20.771Z",
        "recordedAt": "2026-10-08T14:58:20.789Z",
        "operationId": null,
        "turnId": "fc848636-af7d-4a6a-b845-3ccc82381400",
        "participantId": "callee",
        "payload": {
          "type": "dialog.interrupted",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "turnId": "fc848636-af7d-4a6a-b845-3ccc82381400",
          "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "byParticipantId": "callee",
          "interruptedParticipantId": "agent"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "8cc1dd2a-69d1-4872-932d-145fbc103575",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 18,
        "layer": "L1",
        "type": "audio.playback.cancelled",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:20.774Z",
        "recordedAt": "2026-10-08T14:58:20.796Z",
        "operationId": "3a71271d-4571-43d5-9095-6fc259f98f70",
        "turnId": null,
        "participantId": "agent",
        "payload": {
          "type": "audio.playback.cancelled",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "operationId": "3a71271d-4571-43d5-9095-6fc259f98f70",
          "participantId": "agent"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "562060be-435c-4b7c-a14f-5f1320855761",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 19,
        "layer": "DIALOG",
        "type": "dialog.goal.started",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:20.803Z",
        "recordedAt": "2026-10-08T14:58:20.818Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "name": "Credit card balance",
          "type": "dialog.goal.started",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "goalId": "aki.balance",
          "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "goalIndex": 0
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "c4530fd1-c261-4835-9f16-7c007b957daf",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 20,
        "layer": "L1",
        "type": "audio.recording.saved",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:20.823Z",
        "recordedAt": "2026-10-08T14:58:20.828Z",
        "operationId": "3a71271d-4571-43d5-9095-6fc259f98f70",
        "turnId": null,
        "participantId": "agent",
        "payload": {
          "type": "audio.recording.saved",
          "audio": {
            "asset": {
              "id": "de4af4eb-6058-4d90-bbbd-b3b9fc0f376d",
              "key": "recordings/bbbbc809-b714-44bd-8290-7fd8cb890f2a/audio/agent/de4af4eb-6058-4d90-bbbd-b3b9fc0f376d.wav",
              "bucket": "livekit-node-stage",
              "objectSha256": "9f81eede9c21d32e90c1e5368e20463eafcb863236d6e73208bf9f735c04c2a9"
            },
            "format": "pcm_s16le",
            "sha256": "0cb70868229f878e04020b21f9047320b840e4a4e74b20ae8553988c56aea20d",
            "channels": 1,
            "byteLength": 24514,
            "durationMs": 510.7083333333333,
            "sampleRate": 24000
          },
          "speaker": "agent",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "startedAt": "2026-10-08T14:58:20.259Z",
          "operationId": "3a71271d-4571-43d5-9095-6fc259f98f70",
          "participantId": "agent"
        },
        "audioId": "de4af4eb-6058-4d90-bbbd-b3b9fc0f376d",
        "audio": {
          "id": "de4af4eb-6058-4d90-bbbd-b3b9fc0f376d",
          "name": null,
          "text": null,
          "format": "pcm_s16le",
          "sampleRate": 24000,
          "channels": 1,
          "sha256": "0cb70868229f878e04020b21f9047320b840e4a4e74b20ae8553988c56aea20d",
          "byteLength": 24514,
          "durationMs": 510.7083333333333,
          "bucket": "livekit-node-stage",
          "key": "recordings/bbbbc809-b714-44bd-8290-7fd8cb890f2a/audio/agent/de4af4eb-6058-4d90-bbbd-b3b9fc0f376d.wav",
          "objectSha256": "9f81eede9c21d32e90c1e5368e20463eafcb863236d6e73208bf9f735c04c2a9",
          "objectByteLength": 24558,
          "mimeType": "audio/wav",
          "createdAt": "2026-10-08T14:58:20.801Z"
        }
      },
      {
        "id": "9bc84b5b-962c-499e-9100-82c8fc46255c",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 21,
        "layer": "DIALOG",
        "type": "dialog.agent.state",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:20.823Z",
        "recordedAt": "2026-10-08T14:58:20.834Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "dialog.agent.state",
          "state": {
            "phase": "opening",
            "fragments": [],
            "jmbgAttempts": 0,
            "lastQuestion": "help",
            "nameAttempts": 0,
            "offerDelivered": false,
            "clarifyAttempts": 0,
            "serviceFailures": 0,
            "mismatchAttempts": 0,
            "greetingInterrupted": true
          },
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "implementation": "aki@1"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "8f94bcd2-6b4c-49d4-b3f9-a83bfbac44c7",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 22,
        "layer": "L1",
        "type": "speech.stopped",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:20.997Z",
        "recordedAt": "2026-10-08T14:58:21.095Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "atMs": 826.0260299999991,
          "type": "speech.stopped",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "silenceId": "d49ae85a-7bb8-4620-b0af-917c90b26a46",
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "0c77a762-0c59-4bff-9ebf-25cfb942d2d7",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 23,
        "layer": "L1",
        "type": "silence.soft",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:21.253Z",
        "recordedAt": "2026-10-08T14:58:21.256Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "atMs": 1082.026029999999,
          "type": "silence.soft",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "silenceId": "d49ae85a-7bb8-4620-b0af-917c90b26a46",
          "durationMs": 256,
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "da7e5839-0892-4ce5-9f3e-7948c54282db",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 24,
        "layer": "L1",
        "type": "vtt.transcript.delta",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:21.369Z",
        "recordedAt": "2026-10-08T14:58:21.378Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": "95a3db27-f7a2-498a-b154-201170c0ce28",
        "participantId": "callee",
        "payload": {
          "text": "Jeste.",
          "type": "vtt.transcript.delta",
          "turnId": "95a3db27-f7a2-498a-b154-201170c0ce28",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "cd70dd51-2663-45cb-aa1c-e0d53b70576c",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 25,
        "layer": "L1",
        "type": "vtt.transcript.completed",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:21.381Z",
        "recordedAt": "2026-10-08T14:58:21.385Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": "95a3db27-f7a2-498a-b154-201170c0ce28",
        "participantId": "callee",
        "payload": {
          "text": "Jeste.",
          "type": "vtt.transcript.completed",
          "turnId": "95a3db27-f7a2-498a-b154-201170c0ce28",
          "endedAt": "2026-10-08T14:58:20.997Z",
          "segmentId": "4730630d-5592-4127-ab14-31e55e443ef6",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "startedAt": "2026-10-08T14:58:20.709Z",
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "a1882443-85aa-4743-9af8-d69c3597d603",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 26,
        "layer": "DIALOG",
        "type": "dialog.response.preparing",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:21.389Z",
        "recordedAt": "2026-10-08T14:58:21.394Z",
        "operationId": null,
        "turnId": "cef1cf8e-6df5-4c3b-9ac5-9521669b9f44",
        "participantId": null,
        "payload": {
          "text": "Jeste.",
          "type": "dialog.response.preparing",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "turnId": "cef1cf8e-6df5-4c3b-9ac5-9521669b9f44",
          "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "segmentIds": [
            "4730630d-5592-4127-ab14-31e55e443ef6"
          ]
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "80d4934b-8155-44c2-9730-a9f0adde50b2",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 27,
        "layer": "L1",
        "type": "regression.started",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:21.398Z",
        "recordedAt": "2026-10-08T14:58:21.401Z",
        "operationId": "549262ca-1bc1-4316-ac54-888131bca7bb",
        "turnId": "cef1cf8e-6df5-4c3b-9ac5-9521669b9f44",
        "participantId": "agent",
        "payload": {
          "type": "regression.started",
          "goalId": "aki.balance",
          "turnId": "cef1cf8e-6df5-4c3b-9ac5-9521669b9f44",
          "purpose": "goal_regression",
          "provider": "openai",
          "goalIndex": 0,
          "iteration": 1,
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "operationId": "549262ca-1bc1-4316-ac54-888131bca7bb",
          "retryAllowed": true,
          "participantId": "agent"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "4a3b412b-bce0-42b0-879d-b248db009a92",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 28,
        "layer": "L1",
        "type": "silence.committed",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:21.861Z",
        "recordedAt": "2026-10-08T14:58:21.874Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "atMs": 1690.026029999999,
          "type": "silence.committed",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "silenceId": "d49ae85a-7bb8-4620-b0af-917c90b26a46",
          "durationMs": 864,
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "139c86f8-7e24-4ed6-beec-a8252d8033c8",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 29,
        "layer": "L1",
        "type": "audio.recording.saved",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:22.210Z",
        "recordedAt": "2026-10-08T14:58:22.216Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "type": "audio.recording.saved",
          "audio": {
            "asset": {
              "id": "b70c536c-399c-4ab3-8442-d6f2e928e0ea",
              "key": "recordings/bbbbc809-b714-44bd-8290-7fd8cb890f2a/audio/caller/b70c536c-399c-4ab3-8442-d6f2e928e0ea.wav",
              "bucket": "livekit-node-stage",
              "objectSha256": "558a817662830e177849324076c07da7a570eaf25dedf9c42dbe3d6baaa0e7d3"
            },
            "format": "pcm_s16le",
            "sha256": "724717e1330159c70f906a2ec620ac98689eb3d3b253ef9d97fd17b03a1d505e",
            "channels": 1,
            "byteLength": 96000,
            "durationMs": 2000,
            "sampleRate": 24000
          },
          "speaker": "caller",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "startedAt": "2026-10-08T14:58:20.197Z",
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": "b70c536c-399c-4ab3-8442-d6f2e928e0ea",
        "audio": {
          "id": "b70c536c-399c-4ab3-8442-d6f2e928e0ea",
          "name": null,
          "text": null,
          "format": "pcm_s16le",
          "sampleRate": 24000,
          "channels": 1,
          "sha256": "724717e1330159c70f906a2ec620ac98689eb3d3b253ef9d97fd17b03a1d505e",
          "byteLength": 96000,
          "durationMs": 2000,
          "bucket": "livekit-node-stage",
          "key": "recordings/bbbbc809-b714-44bd-8290-7fd8cb890f2a/audio/caller/b70c536c-399c-4ab3-8442-d6f2e928e0ea.wav",
          "objectSha256": "558a817662830e177849324076c07da7a570eaf25dedf9c42dbe3d6baaa0e7d3",
          "objectByteLength": 96044,
          "mimeType": "audio/wav",
          "createdAt": "2026-10-08T14:58:22.188Z"
        }
      },
      {
        "id": "10b11a4f-7bda-4b4d-9226-08108634a5a9",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 30,
        "layer": "L1",
        "type": "regression.finished",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:22.576Z",
        "recordedAt": "2026-10-08T14:58:22.581Z",
        "operationId": "549262ca-1bc1-4316-ac54-888131bca7bb",
        "turnId": "cef1cf8e-6df5-4c3b-9ac5-9521669b9f44",
        "participantId": "agent",
        "payload": {
          "type": "regression.finished",
          "goalId": "aki.balance",
          "reason": "yes",
          "turnId": "cef1cf8e-6df5-4c3b-9ac5-9521669b9f44",
          "values": [],
          "purpose": "goal_regression",
          "nextTurn": null,
          "provider": "openai",
          "completed": false,
          "elapsedMs": 1178.3998570000003,
          "goalIndex": 0,
          "iteration": 1,
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "operationId": "549262ca-1bc1-4316-ac54-888131bca7bb",
          "participantId": "agent"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "c190dd82-e09d-409b-ba85-23293adb5641",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 31,
        "layer": "DIALOG",
        "type": "dialog.response.ready",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:22.584Z",
        "recordedAt": "2026-10-08T14:58:22.589Z",
        "operationId": null,
        "turnId": "cef1cf8e-6df5-4c3b-9ac5-9521669b9f44",
        "participantId": null,
        "payload": {
          "text": "Kako mogu da Vam pomognem?",
          "type": "dialog.response.ready",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "turnId": "cef1cf8e-6df5-4c3b-9ac5-9521669b9f44",
          "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "segmentIds": [
            "4730630d-5592-4127-ab14-31e55e443ef6"
          ]
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "5ac659be-699c-42eb-b1f5-f398c90d26f3",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 32,
        "layer": "DIALOG",
        "type": "dialog.answer_received",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:22.592Z",
        "recordedAt": "2026-10-08T14:58:22.596Z",
        "operationId": null,
        "turnId": "cef1cf8e-6df5-4c3b-9ac5-9521669b9f44",
        "participantId": "callee",
        "payload": {
          "text": "Jeste.",
          "type": "dialog.answer_received",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "turnId": "cef1cf8e-6df5-4c3b-9ac5-9521669b9f44",
          "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "segmentIds": [
            "4730630d-5592-4127-ab14-31e55e443ef6"
          ],
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "e82373a3-55e0-4f5c-938d-356c6c6ce92e",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 33,
        "layer": "DIALOG",
        "type": "dialog.agent.state",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:22.599Z",
        "recordedAt": "2026-10-08T14:58:22.604Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "dialog.agent.state",
          "state": {
            "phase": "opening",
            "fragments": [],
            "lastTurnId": "cef1cf8e-6df5-4c3b-9ac5-9521669b9f44",
            "jmbgAttempts": 0,
            "lastQuestion": "help",
            "nameAttempts": 0,
            "offerDelivered": false,
            "clarifyAttempts": 1,
            "serviceFailures": 0,
            "mismatchAttempts": 0
          },
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "implementation": "aki@1"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "90814227-aca0-4b15-93b4-cffe751215f0",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 34,
        "layer": "DIALOG",
        "type": "dialog.turn.started",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:22.608Z",
        "recordedAt": "2026-10-08T14:58:22.613Z",
        "operationId": null,
        "turnId": "cef1cf8e-6df5-4c3b-9ac5-9521669b9f44",
        "participantId": "agent",
        "payload": {
          "kind": "response",
          "text": "Kako mogu da Vam pomognem?",
          "type": "dialog.turn.started",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "turnId": "cef1cf8e-6df5-4c3b-9ac5-9521669b9f44",
          "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "participantId": "agent"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "c1c286a6-4dd3-4e89-9295-a7226a573141",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 35,
        "layer": "L1",
        "type": "audio.playback.started",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:22.616Z",
        "recordedAt": "2026-10-08T14:58:22.622Z",
        "operationId": "208ae768-d1ab-4fa2-8a00-b0baee1be474",
        "turnId": null,
        "participantId": "agent",
        "payload": {
          "type": "audio.playback.started",
          "audio": {
            "text": "Kako mogu da Vam pomognem?",
            "asset": {
              "id": "3660d825-e15d-401b-a84b-8d2802aaeba6",
              "key": "template-values/elevenlabs-dc63dfa48d0ddb5d/3660d825-e15d-401b-a84b-8d2802aaeba6.wav",
              "bucket": "livekit-node-stage",
              "objectSha256": "8ccc8e538b361dcf71870b12fd2d5ebfefded029cdc47e43a9a153577e9c7f54"
            },
            "format": "pcm_s16le",
            "sha256": "2c0c087a1b49d7bdb103844fa5f71627e48a0db933bd30377475cb754e0da57f",
            "channels": 1,
            "byteLength": 72960,
            "durationMs": 1520,
            "sampleRate": 24000
          },
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "operationId": "208ae768-d1ab-4fa2-8a00-b0baee1be474",
          "participantId": "agent"
        },
        "audioId": "3660d825-e15d-401b-a84b-8d2802aaeba6",
        "audio": {
          "id": "3660d825-e15d-401b-a84b-8d2802aaeba6",
          "name": "template:8098c11cdb0b74e4668097dd222b5b58259458e06e41b0f3bab4859c37749614",
          "text": "Kako mogu da Vam pomognem?",
          "format": "pcm_s16le",
          "sampleRate": 24000,
          "channels": 1,
          "sha256": "2c0c087a1b49d7bdb103844fa5f71627e48a0db933bd30377475cb754e0da57f",
          "byteLength": 72960,
          "durationMs": 1520,
          "bucket": "livekit-node-stage",
          "key": "template-values/elevenlabs-dc63dfa48d0ddb5d/3660d825-e15d-401b-a84b-8d2802aaeba6.wav",
          "objectSha256": "8ccc8e538b361dcf71870b12fd2d5ebfefded029cdc47e43a9a153577e9c7f54",
          "objectByteLength": 73004,
          "mimeType": "audio/wav",
          "createdAt": "2026-10-08T14:48:47.272Z"
        }
      },
      {
        "id": "f1486162-5c63-43dd-9037-eefde6aacc83",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 36,
        "layer": "L1",
        "type": "audio.playback.first_frame",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:22.626Z",
        "recordedAt": "2026-10-08T14:58:22.637Z",
        "operationId": "208ae768-d1ab-4fa2-8a00-b0baee1be474",
        "turnId": null,
        "participantId": "agent",
        "payload": {
          "type": "audio.playback.first_frame",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "operationId": "208ae768-d1ab-4fa2-8a00-b0baee1be474",
          "firstFrameAt": "2026-10-08T14:58:22.624Z",
          "participantId": "agent"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "89f62e6f-d633-4a97-8433-c5a2be6d59e2",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 37,
        "layer": "L1",
        "type": "audio.recording.saved",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:24.202Z",
        "recordedAt": "2026-10-08T14:58:24.206Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "type": "audio.recording.saved",
          "audio": {
            "asset": {
              "id": "f7c73fd0-657e-4942-86d3-f7a03c15a6b7",
              "key": "recordings/bbbbc809-b714-44bd-8290-7fd8cb890f2a/audio/caller/f7c73fd0-657e-4942-86d3-f7a03c15a6b7.wav",
              "bucket": "livekit-node-stage",
              "objectSha256": "511d85e9aa1a2c54875cca62a17d43987b1bd814e6de8f2df3ec3aeeb32f2459"
            },
            "format": "pcm_s16le",
            "sha256": "ff7f2e4ac5b10de0e59fd762d1327b95a3a46b3d838ea61a4cfe1b3f05a862fb",
            "channels": 1,
            "byteLength": 96000,
            "durationMs": 2000,
            "sampleRate": 24000
          },
          "speaker": "caller",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "startedAt": "2026-10-08T14:58:22.197Z",
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": "f7c73fd0-657e-4942-86d3-f7a03c15a6b7",
        "audio": {
          "id": "f7c73fd0-657e-4942-86d3-f7a03c15a6b7",
          "name": null,
          "text": null,
          "format": "pcm_s16le",
          "sampleRate": 24000,
          "channels": 1,
          "sha256": "ff7f2e4ac5b10de0e59fd762d1327b95a3a46b3d838ea61a4cfe1b3f05a862fb",
          "byteLength": 96000,
          "durationMs": 2000,
          "bucket": "livekit-node-stage",
          "key": "recordings/bbbbc809-b714-44bd-8290-7fd8cb890f2a/audio/caller/f7c73fd0-657e-4942-86d3-f7a03c15a6b7.wav",
          "objectSha256": "511d85e9aa1a2c54875cca62a17d43987b1bd814e6de8f2df3ec3aeeb32f2459",
          "objectByteLength": 96044,
          "mimeType": "audio/wav",
          "createdAt": "2026-10-08T14:58:24.188Z"
        }
      },
      {
        "id": "e9acb9db-43e8-48f5-aacf-3b259275e7a2",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 38,
        "layer": "L1",
        "type": "audio.playback.finished",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:24.446Z",
        "recordedAt": "2026-10-08T14:58:24.452Z",
        "operationId": "208ae768-d1ab-4fa2-8a00-b0baee1be474",
        "turnId": null,
        "participantId": "agent",
        "payload": {
          "type": "audio.playback.finished",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "operationId": "208ae768-d1ab-4fa2-8a00-b0baee1be474",
          "participantId": "agent"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "15132d82-6429-4599-907b-fc922edb70d5",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 39,
        "layer": "DIALOG",
        "type": "dialog.turn.completed",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:24.458Z",
        "recordedAt": "2026-10-08T14:58:24.467Z",
        "operationId": null,
        "turnId": "cef1cf8e-6df5-4c3b-9ac5-9521669b9f44",
        "participantId": "agent",
        "payload": {
          "kind": "response",
          "text": "Kako mogu da Vam pomognem?",
          "type": "dialog.turn.completed",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "turnId": "cef1cf8e-6df5-4c3b-9ac5-9521669b9f44",
          "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "participantId": "agent"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "43a25852-4340-4419-9a9e-4810a1c816cc",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 40,
        "layer": "DIALOG",
        "type": "dialog.agent.state",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:24.470Z",
        "recordedAt": "2026-10-08T14:58:24.476Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "dialog.agent.state",
          "state": {
            "phase": "opening",
            "fragments": [],
            "lastPhrase": "help",
            "interrupted": false,
            "jmbgAttempts": 0,
            "lastQuestion": "help",
            "nameAttempts": 0,
            "offerDelivered": false,
            "clarifyAttempts": 1,
            "serviceFailures": 0,
            "mismatchAttempts": 0
          },
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "implementation": "aki@1"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "7019c567-435a-4ae4-95ec-30ed6f6c759d",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 41,
        "layer": "L1",
        "type": "audio.recording.saved",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:24.475Z",
        "recordedAt": "2026-10-08T14:58:24.482Z",
        "operationId": "208ae768-d1ab-4fa2-8a00-b0baee1be474",
        "turnId": null,
        "participantId": "agent",
        "payload": {
          "type": "audio.recording.saved",
          "audio": {
            "asset": {
              "id": "949e3be0-f6bd-458f-8159-7d13cb62e38a",
              "key": "recordings/bbbbc809-b714-44bd-8290-7fd8cb890f2a/audio/agent/949e3be0-f6bd-458f-8159-7d13cb62e38a.wav",
              "bucket": "livekit-node-stage",
              "objectSha256": "d6afe8d49e072329ee4dedbdcc0b3e55f3558a941aa37785075b3c628bcb881c"
            },
            "format": "pcm_s16le",
            "sha256": "763c5ff237facaab2aab4dccc6b76b660c74596e660265f3107711bed7aca4d9",
            "channels": 1,
            "byteLength": 87360,
            "durationMs": 1820,
            "sampleRate": 24000
          },
          "speaker": "agent",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "startedAt": "2026-10-08T14:58:22.624Z",
          "operationId": "208ae768-d1ab-4fa2-8a00-b0baee1be474",
          "participantId": "agent"
        },
        "audioId": "949e3be0-f6bd-458f-8159-7d13cb62e38a",
        "audio": {
          "id": "949e3be0-f6bd-458f-8159-7d13cb62e38a",
          "name": null,
          "text": null,
          "format": "pcm_s16le",
          "sampleRate": 24000,
          "channels": 1,
          "sha256": "763c5ff237facaab2aab4dccc6b76b660c74596e660265f3107711bed7aca4d9",
          "byteLength": 87360,
          "durationMs": 1820,
          "bucket": "livekit-node-stage",
          "key": "recordings/bbbbc809-b714-44bd-8290-7fd8cb890f2a/audio/agent/949e3be0-f6bd-458f-8159-7d13cb62e38a.wav",
          "objectSha256": "d6afe8d49e072329ee4dedbdcc0b3e55f3558a941aa37785075b3c628bcb881c",
          "objectByteLength": 87404,
          "mimeType": "audio/wav",
          "createdAt": "2026-10-08T14:58:24.458Z"
        }
      },
      {
        "id": "9bafa8fa-50cb-48a1-bdcb-ca222658a0de",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 42,
        "layer": "L1",
        "type": "speech.started",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:24.997Z",
        "recordedAt": "2026-10-08T14:58:25.075Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "atMs": 4826.026029999999,
          "type": "speech.started",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "c5ca60af-80ba-4e3a-b5dd-034d0587a539",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 43,
        "layer": "L1",
        "type": "speech.stopped",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:25.221Z",
        "recordedAt": "2026-10-08T14:58:25.337Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "atMs": 5050.026029999999,
          "type": "speech.stopped",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "silenceId": "ad386fc4-b9ad-4b35-ad32-08e9201d1dc3",
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "14b06908-8159-4c8a-bc2a-97146ea5a6e4",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 44,
        "layer": "L1",
        "type": "speech.started",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:25.445Z",
        "recordedAt": "2026-10-08T14:58:25.513Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "atMs": 5274.026029999999,
          "type": "speech.started",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "0c60d521-8ed7-4d78-906b-a6dc83fed60b",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 45,
        "layer": "L1",
        "type": "audio.recording.saved",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:26.202Z",
        "recordedAt": "2026-10-08T14:58:26.206Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "type": "audio.recording.saved",
          "audio": {
            "asset": {
              "id": "30406123-db2a-434e-af00-f8cebadacf1e",
              "key": "recordings/bbbbc809-b714-44bd-8290-7fd8cb890f2a/audio/caller/30406123-db2a-434e-af00-f8cebadacf1e.wav",
              "bucket": "livekit-node-stage",
              "objectSha256": "832ae5b94288f0bab1f96cb3f0b78f47d3c1cf33755a98beed43f67fc62aa5ed"
            },
            "format": "pcm_s16le",
            "sha256": "1564a66fbf77701023e470a00898d5d347fea55440c8ca8ca08c3a0dda866296",
            "channels": 1,
            "byteLength": 96000,
            "durationMs": 2000,
            "sampleRate": 24000
          },
          "speaker": "caller",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "startedAt": "2026-10-08T14:58:24.197Z",
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": "30406123-db2a-434e-af00-f8cebadacf1e",
        "audio": {
          "id": "30406123-db2a-434e-af00-f8cebadacf1e",
          "name": null,
          "text": null,
          "format": "pcm_s16le",
          "sampleRate": 24000,
          "channels": 1,
          "sha256": "1564a66fbf77701023e470a00898d5d347fea55440c8ca8ca08c3a0dda866296",
          "byteLength": 96000,
          "durationMs": 2000,
          "bucket": "livekit-node-stage",
          "key": "recordings/bbbbc809-b714-44bd-8290-7fd8cb890f2a/audio/caller/30406123-db2a-434e-af00-f8cebadacf1e.wav",
          "objectSha256": "832ae5b94288f0bab1f96cb3f0b78f47d3c1cf33755a98beed43f67fc62aa5ed",
          "objectByteLength": 96044,
          "mimeType": "audio/wav",
          "createdAt": "2026-10-08T14:58:26.189Z"
        }
      },
      {
        "id": "73ae2dd9-41a2-4879-b660-060507cf0419",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 46,
        "layer": "L1",
        "type": "vtt.transcript.delta",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:27.534Z",
        "recordedAt": "2026-10-08T14:58:27.539Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": "7dc1e93c-163d-477a-bf1f-f95aaaa0668a",
        "participantId": "callee",
        "payload": {
          "text": " Pa šta, kako? Jao, Bože.",
          "type": "vtt.transcript.delta",
          "turnId": "7dc1e93c-163d-477a-bf1f-f95aaaa0668a",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "acce55a6-04ac-4605-b169-1b9f6d5a6c82",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 47,
        "layer": "L1",
        "type": "vtt.transcript.completed",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:27.541Z",
        "recordedAt": "2026-10-08T14:58:27.546Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": "7dc1e93c-163d-477a-bf1f-f95aaaa0668a",
        "participantId": "callee",
        "payload": {
          "text": "Pa šta, kako? Jao, Bože.",
          "type": "vtt.transcript.completed",
          "turnId": "7dc1e93c-163d-477a-bf1f-f95aaaa0668a",
          "endedAt": "2026-10-08T14:58:27.417Z",
          "segmentId": "9fcb2972-7d18-4227-9098-d770b33b4bfd",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "startedAt": "2026-10-08T14:58:24.997Z",
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "833baa63-5b8a-450b-8d9e-e199c681725d",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 48,
        "layer": "L1",
        "type": "vtt.transcript.delta",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:27.666Z",
        "recordedAt": "2026-10-08T14:58:27.671Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": "2d449631-4bb9-4491-a7cd-da0210334d86",
        "participantId": "callee",
        "payload": {
          "text": " ",
          "type": "vtt.transcript.delta",
          "turnId": "2d449631-4bb9-4491-a7cd-da0210334d86",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "d1b8cc1a-3647-4e6a-bcef-b79c8e8ef82e",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 49,
        "layer": "L1",
        "type": "vtt.finished",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:27.673Z",
        "recordedAt": "2026-10-08T14:58:27.677Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "type": "vtt.finished",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "f0d2105c-c840-434f-9899-d800f25cfeab",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 50,
        "layer": "L1",
        "type": "audio.recording.saved",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:27.692Z",
        "recordedAt": "2026-10-08T14:58:27.697Z",
        "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "type": "audio.recording.saved",
          "audio": {
            "asset": {
              "id": "038a3873-01a4-440b-966c-950f09eba38f",
              "key": "recordings/bbbbc809-b714-44bd-8290-7fd8cb890f2a/audio/caller/038a3873-01a4-440b-966c-950f09eba38f.wav",
              "bucket": "livekit-node-stage",
              "objectSha256": "1cadcef6e20811f32bc34d23960b666fdea0726801de6bbeaee60d1e1411a789"
            },
            "format": "pcm_s16le",
            "sha256": "f34ad39a39b8aa8d1be5fdabf63cd5b8fe5b313fc08d50098a9eb60503f41efe",
            "channels": 1,
            "byteLength": 58560,
            "durationMs": 1220,
            "sampleRate": 24000
          },
          "speaker": "caller",
          "sessionId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
          "startedAt": "2026-10-08T14:58:26.197Z",
          "operationId": "9b80a065-4a2e-41d0-8258-e7dce8326f57",
          "participantId": "callee"
        },
        "audioId": "038a3873-01a4-440b-966c-950f09eba38f",
        "audio": {
          "id": "038a3873-01a4-440b-966c-950f09eba38f",
          "name": null,
          "text": null,
          "format": "pcm_s16le",
          "sampleRate": 24000,
          "channels": 1,
          "sha256": "f34ad39a39b8aa8d1be5fdabf63cd5b8fe5b313fc08d50098a9eb60503f41efe",
          "byteLength": 58560,
          "durationMs": 1220,
          "bucket": "livekit-node-stage",
          "key": "recordings/bbbbc809-b714-44bd-8290-7fd8cb890f2a/audio/caller/038a3873-01a4-440b-966c-950f09eba38f.wav",
          "objectSha256": "1cadcef6e20811f32bc34d23960b666fdea0726801de6bbeaee60d1e1411a789",
          "objectByteLength": 58604,
          "mimeType": "audio/wav",
          "createdAt": "2026-10-08T14:58:27.680Z"
        }
      },
      {
        "id": "861eed7b-9afc-48a7-babc-5ac1ec974d2d",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 51,
        "layer": "CALL",
        "type": "call.participant_left",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:27.705Z",
        "recordedAt": "2026-10-08T14:58:27.710Z",
        "operationId": null,
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "type": "call.participant_left",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "reason": "Agent execution failed",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "aa07133a-b33e-433e-a8a5-eb92ddfc1460",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 52,
        "layer": "CALL",
        "type": "call.failed",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:27.705Z",
        "recordedAt": "2026-10-08T14:58:27.712Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.failed",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "message": "Agent execution failed"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "658bb3cd-07d9-4290-b1e6-01c90c529ef9",
        "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1",
        "sequence": 53,
        "layer": "DIALOG",
        "type": "dialog.ended",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:27.705Z",
        "recordedAt": "2026-10-08T14:58:27.714Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "dialog.ended",
          "callId": "bbbbc809-b714-44bd-8290-7fd8cb890f2a",
          "reason": "Agent execution failed",
          "dialogId": "9dcd5ae1-d9e5-4944-b462-4f04cbfba9c1"
        },
        "audioId": null,
        "audio": null
      }
    ]
  }
}