{
  "id": "34bd96f3-3d72-4cfc-99c7-0da63b97f1cf",
  "dialogId": "9d359058-555d-4109-b231-b85668cfbcb3",
  "number": "+381603022591",
  "direction": "outbound",
  "room": "node-34bd96f3-3d72-4cfc-99c7-0da63b97f1cf",
  "status": "ended",
  "sipCallId": "SCL_XbxUH8h4hGUP",
  "sipStatus": "dialing",
  "createdAt": "2026-10-08T14:58:55.839Z",
  "updatedAt": "2026-10-08T14:59:09.879Z",
  "answeredAt": null,
  "endedAt": "2026-10-08T14:59:09.876Z",
  "endedReason": "SIP participant disconnected",
  "dialog": {
    "id": "9d359058-555d-4109-b231-b85668cfbcb3",
    "createdAt": "2026-10-08T14:58:55.839Z",
    "initialState": {
      "id": "9d359058-555d-4109-b231-b85668cfbcb3",
      "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": {
              "filler": {
                "text": "Trenutak, molim.",
                "format": "pcm_s16le",
                "sha256": "e51d232b40ce2167937b32b5d88b7b2d784fe31e46a95c39f52ee670a6b4c5c7",
                "channels": 1,
                "byteLength": 66720,
                "durationMs": 1390,
                "sampleRate": 24000
              },
              "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": [
              {
                "audioId": "filler",
                "delayMs": 1250
              }
            ]
          },
          "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": 9,
    "historyStartedAt": "2026-10-08T14:58:55.839Z",
    "events": [
      {
        "id": "b6f1a064-a827-46b3-9ddd-f6319b01e88d",
        "dialogId": "9d359058-555d-4109-b231-b85668cfbcb3",
        "sequence": 1,
        "layer": "CALL",
        "type": "call.created",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:55.816Z",
        "recordedAt": "2026-10-08T14:58:55.839Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "room": "node-34bd96f3-3d72-4cfc-99c7-0da63b97f1cf",
          "type": "call.created",
          "callId": "34bd96f3-3d72-4cfc-99c7-0da63b97f1cf",
          "number": "+381603022591",
          "direction": "outbound"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "1f1abf6c-6b06-4cb8-a71d-79469cca9254",
        "dialogId": "9d359058-555d-4109-b231-b85668cfbcb3",
        "sequence": 2,
        "layer": "CALL",
        "type": "call.connecting",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:55.816Z",
        "recordedAt": "2026-10-08T14:58:55.839Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.connecting",
          "callId": "34bd96f3-3d72-4cfc-99c7-0da63b97f1cf"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "05d34f71-c4bb-43ff-9d4d-c8806c882baf",
        "dialogId": "9d359058-555d-4109-b231-b85668cfbcb3",
        "sequence": 3,
        "layer": "DIALOG",
        "type": "dialog.started",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:55.816Z",
        "recordedAt": "2026-10-08T14:58:55.839Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "dialog.started",
          "callId": "34bd96f3-3d72-4cfc-99c7-0da63b97f1cf",
          "dialogId": "9d359058-555d-4109-b231-b85668cfbcb3"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "fb1b385c-ee9b-4ca7-a595-b5ea70ff5902",
        "dialogId": "9d359058-555d-4109-b231-b85668cfbcb3",
        "sequence": 4,
        "layer": "CALL",
        "type": "call.sip_status",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:56.119Z",
        "recordedAt": "2026-10-08T14:58:56.132Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.sip_status",
          "callId": "34bd96f3-3d72-4cfc-99c7-0da63b97f1cf",
          "sipCallId": "SCL_XbxUH8h4hGUP"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "4d41fba5-6037-4917-a8a6-f470d771c3d0",
        "dialogId": "9d359058-555d-4109-b231-b85668cfbcb3",
        "sequence": 5,
        "layer": "CALL",
        "type": "call.participant_joined",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:56.150Z",
        "recordedAt": "2026-10-08T14:58:56.160Z",
        "operationId": null,
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "type": "call.participant_joined",
          "callId": "34bd96f3-3d72-4cfc-99c7-0da63b97f1cf",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "2f758843-3616-48a5-b2a5-c798c6d489d9",
        "dialogId": "9d359058-555d-4109-b231-b85668cfbcb3",
        "sequence": 6,
        "layer": "CALL",
        "type": "call.sip_status",
        "version": 1,
        "occurredAt": "2026-10-08T14:58:56.150Z",
        "recordedAt": "2026-10-08T14:58:56.166Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.sip_status",
          "callId": "34bd96f3-3d72-4cfc-99c7-0da63b97f1cf",
          "sipCallId": "SCL_XbxUH8h4hGUP",
          "sipStatus": "dialing"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "a2944f9d-124e-4468-9cd2-34c25e50c41c",
        "dialogId": "9d359058-555d-4109-b231-b85668cfbcb3",
        "sequence": 7,
        "layer": "CALL",
        "type": "call.participant_left",
        "version": 1,
        "occurredAt": "2026-10-08T14:59:09.876Z",
        "recordedAt": "2026-10-08T14:59:09.883Z",
        "operationId": null,
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "type": "call.participant_left",
          "callId": "34bd96f3-3d72-4cfc-99c7-0da63b97f1cf",
          "reason": "SIP participant disconnected",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "d7ea0600-6564-48d7-bd6e-03a7065c8835",
        "dialogId": "9d359058-555d-4109-b231-b85668cfbcb3",
        "sequence": 8,
        "layer": "CALL",
        "type": "call.ended",
        "version": 1,
        "occurredAt": "2026-10-08T14:59:09.876Z",
        "recordedAt": "2026-10-08T14:59:09.887Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.ended",
          "callId": "34bd96f3-3d72-4cfc-99c7-0da63b97f1cf",
          "reason": "SIP participant disconnected"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "ba82c3e7-16be-4af7-b8dc-8edde30c83b7",
        "dialogId": "9d359058-555d-4109-b231-b85668cfbcb3",
        "sequence": 9,
        "layer": "DIALOG",
        "type": "dialog.ended",
        "version": 1,
        "occurredAt": "2026-10-08T14:59:09.876Z",
        "recordedAt": "2026-10-08T14:59:09.890Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "dialog.ended",
          "callId": "34bd96f3-3d72-4cfc-99c7-0da63b97f1cf",
          "reason": "SIP participant disconnected",
          "dialogId": "9d359058-555d-4109-b231-b85668cfbcb3"
        },
        "audioId": null,
        "audio": null
      }
    ]
  }
}