{
  "id": "2569f637-c97b-432e-b987-f67cb861b4bc",
  "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
  "number": "+381603022591",
  "direction": "inbound",
  "room": "phone-_+381603022591_XfKPqd65cUzw",
  "status": "ended",
  "sipCallId": "SCL_mH8UyLsAou9Y",
  "sipStatus": "active",
  "createdAt": "2026-10-03T14:40:25.080Z",
  "updatedAt": "2026-10-03T14:40:27.926Z",
  "answeredAt": "2026-10-03T14:40:26.552Z",
  "endedAt": "2026-10-03T14:40:27.925Z",
  "endedReason": "Agent execution failed",
  "dialog": {
    "id": "fdfea357-040a-4a67-b280-ba573d089033",
    "createdAt": "2026-10-03T14:40:25.080Z",
    "initialState": {
      "id": "fdfea357-040a-4a67-b280-ba573d089033",
      "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": "assertive",
            "greeting": {
              "initiative": "submissive",
              "interruptible": false
            }
          },
          "template": {
            "id": "agent:Aki",
            "name": "Aki",
            "audios": {
              "greeting": {
                "text": "Dobar dan. Dobili ste Aki, virtuelnu asistentkinju АИК банке za proveru stanja na kreditnoj kartici. Kako mogu da Vam pomognem?",
                "format": "pcm_s16le",
                "sha256": "781a9a0ce75b39f58b7c0ccd8dab72b138df2d822ed2068f37e181d02a5beed6",
                "channels": 1,
                "byteLength": 353280,
                "durationMs": 7360,
                "sampleRate": 24000
              }
            },
            "prompts": {
              "system": "АИК банка. Provera raspoloživog stanja na kreditnoj kartici."
            },
            "latencyCovers": []
          },
          "definition": {
            "kind": "code",
            "options": {},
            "voicePack": {
              "id": "elevenlabs:oICC5xEEbDGIZC1LVOOM",
              "label": "Aki",
              "model": "eleven_v3",
              "voiceId": "oICC5xEEbDGIZC1LVOOM",
              "language": "sr",
              "provider": "elevenlabs"
            },
            "configuration": {
              "name": "Aki",
              "timing": {
                "softMs": 350,
                "openingMs": 1200,
                "committedMs": 1100
              },
              "behavior": {
                "turns": "assertive",
                "greeting": {
                  "initiative": "submissive",
                  "interruptible": false
                }
              },
              "providers": {
                "ttv": "elevenlabs",
                "vtt": "soniox",
                "reply": "openai"
              },
              "voicePackId": "elevenlabs:oICC5xEEbDGIZC1LVOOM",
              "systemPrompt": "АИК банка. Provera raspoloživog stanja na kreditnoj kartici."
            },
            "implementation": {
              "key": "aki",
              "version": "1"
            }
          }
        }
      ],
      "currentSpeakerId": null,
      "awaitingParticipantId": null
    },
    "lastSequence": 18,
    "historyStartedAt": "2026-10-03T14:40:25.080Z",
    "events": [
      {
        "id": "64c8a7fd-733b-4300-9122-6a945e263f96",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 1,
        "layer": "CALL",
        "type": "call.created",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:25.079Z",
        "recordedAt": "2026-10-03T14:40:25.080Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "room": "phone-_+381603022591_XfKPqd65cUzw",
          "type": "call.created",
          "callId": "2569f637-c97b-432e-b987-f67cb861b4bc",
          "number": "+381603022591",
          "direction": "inbound"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "de1f6842-e99f-4410-af96-6311a6b1fadf",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 2,
        "layer": "CALL",
        "type": "call.connecting",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:25.079Z",
        "recordedAt": "2026-10-03T14:40:25.080Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.connecting",
          "callId": "2569f637-c97b-432e-b987-f67cb861b4bc"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "40b312a7-a57a-4bc5-b648-bd741f2871d0",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 3,
        "layer": "DIALOG",
        "type": "dialog.started",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:25.079Z",
        "recordedAt": "2026-10-03T14:40:25.080Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "dialog.started",
          "callId": "2569f637-c97b-432e-b987-f67cb861b4bc",
          "dialogId": "fdfea357-040a-4a67-b280-ba573d089033"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "16817ec9-c9f6-4a10-aac3-5c805f0dc011",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 4,
        "layer": "CALL",
        "type": "call.participant_joined",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:25.089Z",
        "recordedAt": "2026-10-03T14:40:25.092Z",
        "operationId": null,
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "type": "call.participant_joined",
          "callId": "2569f637-c97b-432e-b987-f67cb861b4bc",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "0da8fb99-9b7a-4592-ba75-29a4c002d528",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 5,
        "layer": "CALL",
        "type": "call.sip_status",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:25.089Z",
        "recordedAt": "2026-10-03T14:40:25.094Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.sip_status",
          "callId": "2569f637-c97b-432e-b987-f67cb861b4bc",
          "sipCallId": "SCL_mH8UyLsAou9Y",
          "sipStatus": "ringing"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "a419e255-7f56-44c6-89b9-ea90a9cd1912",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 6,
        "layer": "CALL",
        "type": "call.sip_status",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:26.552Z",
        "recordedAt": "2026-10-03T14:40:26.557Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.sip_status",
          "callId": "2569f637-c97b-432e-b987-f67cb861b4bc",
          "sipCallId": "SCL_mH8UyLsAou9Y",
          "sipStatus": "active"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "b3994b43-c473-4db8-8967-6c658ab9414a",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 7,
        "layer": "CALL",
        "type": "call.connected",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:26.552Z",
        "recordedAt": "2026-10-03T14:40:26.560Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.connected",
          "callId": "2569f637-c97b-432e-b987-f67cb861b4bc"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "4625c00e-a5c1-442d-b2ed-598f696ceaff",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 8,
        "layer": "L1",
        "type": "vtt.started",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:26.564Z",
        "recordedAt": "2026-10-03T14:40:26.573Z",
        "operationId": "a20383cd-2a3f-4fa6-aaa8-b78ebfe3d751",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "mode": "live",
          "type": "vtt.started",
          "sessionId": "fdfea357-040a-4a67-b280-ba573d089033",
          "operationId": "a20383cd-2a3f-4fa6-aaa8-b78ebfe3d751",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "c834dd1a-f2db-4d4b-97b5-880048d3ee7f",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 9,
        "layer": "DIALOG",
        "type": "dialog.ready",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:26.587Z",
        "recordedAt": "2026-10-03T14:40:26.591Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "dialog.ready",
          "callId": "2569f637-c97b-432e-b987-f67cb861b4bc",
          "behavior": {
            "turns": "assertive",
            "greeting": {
              "initiative": "submissive",
              "interruptible": false
            }
          },
          "dialogId": "fdfea357-040a-4a67-b280-ba573d089033"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "f060b786-6914-4bb5-b67c-4ef9a38abbae",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 10,
        "layer": "L1",
        "type": "silence.soft",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:26.919Z",
        "recordedAt": "2026-10-03T14:40:26.932Z",
        "operationId": "a20383cd-2a3f-4fa6-aaa8-b78ebfe3d751",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "atMs": 633.8782009929419,
          "type": "silence.soft",
          "sessionId": "fdfea357-040a-4a67-b280-ba573d089033",
          "silenceId": "90aa64e6-2da2-47e2-839c-9b7ae500d1d3",
          "durationMs": 352,
          "operationId": "a20383cd-2a3f-4fa6-aaa8-b78ebfe3d751",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "6a3dc5b0-6bc9-4857-9e3e-54d27ee87822",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 11,
        "layer": "L1",
        "type": "silence.committed",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:27.688Z",
        "recordedAt": "2026-10-03T14:40:27.712Z",
        "operationId": "a20383cd-2a3f-4fa6-aaa8-b78ebfe3d751",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "atMs": 1402.5017070025206,
          "type": "silence.committed",
          "sessionId": "fdfea357-040a-4a67-b280-ba573d089033",
          "silenceId": "90aa64e6-2da2-47e2-839c-9b7ae500d1d3",
          "durationMs": 1120,
          "operationId": "a20383cd-2a3f-4fa6-aaa8-b78ebfe3d751",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "a63ae96d-2fd9-407a-8ab5-6dce52d56ade",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 12,
        "layer": "L1",
        "type": "silence.opening",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:27.784Z",
        "recordedAt": "2026-10-03T14:40:27.802Z",
        "operationId": "a20383cd-2a3f-4fa6-aaa8-b78ebfe3d751",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "atMs": 1498.5017070025206,
          "type": "silence.opening",
          "sessionId": "fdfea357-040a-4a67-b280-ba573d089033",
          "silenceId": "90aa64e6-2da2-47e2-839c-9b7ae500d1d3",
          "durationMs": 1216,
          "operationId": "a20383cd-2a3f-4fa6-aaa8-b78ebfe3d751",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "1876e68c-8fa3-441b-8e39-6df79fd228f6",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 13,
        "layer": "DIALOG",
        "type": "dialog.turn.started",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:27.791Z",
        "recordedAt": "2026-10-03T14:40:27.807Z",
        "operationId": null,
        "turnId": "35669c91-3aea-4fbf-82e4-5248c0eb0e44",
        "participantId": "agent",
        "payload": {
          "kind": "greeting",
          "text": "Dobar dan. Dobili ste Aki, virtuelnu asistentkinju АИК банке za proveru stanja na kreditnoj kartici. Kako mogu da Vam pomognem?",
          "type": "dialog.turn.started",
          "callId": "2569f637-c97b-432e-b987-f67cb861b4bc",
          "turnId": "35669c91-3aea-4fbf-82e4-5248c0eb0e44",
          "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
          "participantId": "agent"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "3b26ad69-e31a-4ef7-b466-3e35ea9db3c6",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 14,
        "layer": "L1",
        "type": "vtt.failed",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:27.888Z",
        "recordedAt": "2026-10-03T14:40:27.892Z",
        "operationId": "a20383cd-2a3f-4fa6-aaa8-b78ebfe3d751",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "type": "vtt.failed",
          "message": "No audio received.",
          "sessionId": "fdfea357-040a-4a67-b280-ba573d089033",
          "operationId": "a20383cd-2a3f-4fa6-aaa8-b78ebfe3d751",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "445d08cc-38c1-4384-96d5-ab53d68826eb",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 15,
        "layer": "L1",
        "type": "audio.recording.saved",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:27.914Z",
        "recordedAt": "2026-10-03T14:40:27.918Z",
        "operationId": "a20383cd-2a3f-4fa6-aaa8-b78ebfe3d751",
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "type": "audio.recording.saved",
          "audio": {
            "asset": {
              "id": "eee5758d-58e1-4ceb-bd3c-aa097956b425",
              "key": "recordings/2569f637-c97b-432e-b987-f67cb861b4bc/audio/caller/eee5758d-58e1-4ceb-bd3c-aa097956b425.wav",
              "bucket": "livekit-node-stage",
              "objectSha256": "a3d3a7a78cd4d09f844d87a9b4e5619b906577ef184e8863a450cace02599390"
            },
            "format": "pcm_s16le",
            "sha256": "6d41529162572acfcbfc64b51961c756bdb2e8fe4ad339daabfefe3772b90fce",
            "channels": 1,
            "byteLength": 58560,
            "durationMs": 1220,
            "sampleRate": 24000
          },
          "speaker": "caller",
          "sessionId": "fdfea357-040a-4a67-b280-ba573d089033",
          "startedAt": "2026-10-03T14:40:26.567Z",
          "operationId": "a20383cd-2a3f-4fa6-aaa8-b78ebfe3d751",
          "participantId": "callee"
        },
        "audioId": "eee5758d-58e1-4ceb-bd3c-aa097956b425",
        "audio": {
          "id": "eee5758d-58e1-4ceb-bd3c-aa097956b425",
          "name": null,
          "text": null,
          "format": "pcm_s16le",
          "sampleRate": 24000,
          "channels": 1,
          "sha256": "6d41529162572acfcbfc64b51961c756bdb2e8fe4ad339daabfefe3772b90fce",
          "byteLength": 58560,
          "durationMs": 1220,
          "bucket": "livekit-node-stage",
          "key": "recordings/2569f637-c97b-432e-b987-f67cb861b4bc/audio/caller/eee5758d-58e1-4ceb-bd3c-aa097956b425.wav",
          "objectSha256": "a3d3a7a78cd4d09f844d87a9b4e5619b906577ef184e8863a450cace02599390",
          "objectByteLength": 58604,
          "mimeType": "audio/wav",
          "createdAt": "2026-10-03T14:40:27.894Z"
        }
      },
      {
        "id": "7f2a8f79-1605-4138-be9f-41e5890805a1",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 16,
        "layer": "CALL",
        "type": "call.participant_left",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:27.925Z",
        "recordedAt": "2026-10-03T14:40:27.929Z",
        "operationId": null,
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "type": "call.participant_left",
          "callId": "2569f637-c97b-432e-b987-f67cb861b4bc",
          "reason": "Agent execution failed",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "cfe90ad7-042e-4c38-af87-d830929fa804",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 17,
        "layer": "CALL",
        "type": "call.ended",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:27.925Z",
        "recordedAt": "2026-10-03T14:40:27.930Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.ended",
          "callId": "2569f637-c97b-432e-b987-f67cb861b4bc",
          "reason": "Agent execution failed"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "7893c5b4-a680-4eb8-b849-4f80d515d3ae",
        "dialogId": "fdfea357-040a-4a67-b280-ba573d089033",
        "sequence": 18,
        "layer": "DIALOG",
        "type": "dialog.ended",
        "version": 1,
        "occurredAt": "2026-10-03T14:40:27.925Z",
        "recordedAt": "2026-10-03T14:40:27.932Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "dialog.ended",
          "callId": "2569f637-c97b-432e-b987-f67cb861b4bc",
          "reason": "Agent execution failed",
          "dialogId": "fdfea357-040a-4a67-b280-ba573d089033"
        },
        "audioId": null,
        "audio": null
      }
    ]
  }
}