This page shows the different transcript formats supported when sending calls to the observe API endpoint.

Transcript JSON Example:

Cekura Format

[
   {
      "role": "Testing Agent",
      "content": "Hello.",
      "end_time": 1.9399999,
      "start_time": 1.4399999
   },
   {
      "role": "Main Agent",
      "content": "Hello. I want to book appointment today. My name is John.",
      "end_time": 7.539999511718751,
      "start_time": 3.1
   },
   {
      "role": "Testing Agent",
      "content": "Well, I mean, sure. What time exactly are we talking about here",
      "end_time": 15.71,
      "start_time": 12.01
   },
   {
      "role": "Main Agent",
      "content": "6 PM.",
      "end_time": 18.269999,
      "start_time": 17.609999
   },
   {
      "role": "Testing Agent",
      "content": "Great. I'll book that for you. Just a sec.",
      "end_time": 21.45,
      "start_time": 19.16
   },
   {
      "role": "Main Agent",
      "content": "Okay.",
      "end_time": 23.25,
      "start_time": 22.75
   },
   {
      "data": {
         "id": "call_5otWH44dxeXEHY8RlhYYaFbV",
         "name": "bookUserAppointment",
         "arguments": "{\"name\": \"John\", \"datetime\": \"2024-10-17T18:00:00\"}"
      },
      "role": "Function Call",
      "content": "",
      "end_time": 23.164,
      "start_time": 23.164
   },
   {
      "data": {
         "id": "call_5otWH44dxeXEHY8RlhYYaFbV",
         "name": "bookUserAppointment",
         "result": "No result returned."
      },
      "role": "Function Call Result",
      "end_time": 24.6,
      "start_time": 24.6
   },
   {
      "role": "Testing Agent",
      "content": "1 moment.",
      "end_time": 25.92,
      "start_time": 25.1
   },
   {
      "role": "Main Agent",
      "content": "Yes. Yes.",
      "end_time": 27.979999999999997,
      "start_time": 27.08
   },
   {
      "role": "Testing Agent",
      "content": "Appointment booked for 6 PM today.",
      "end_time": 29.5,
      "start_time": 27.08
   },
   {
      "role": "Main Agent",
      "content": "Oh, okay. Bye.",
      "end_time": 31.72,
      "start_time": 30.64
   },
   {
      "role": "Testing Agent",
      "content": "Bye.",
      "end_time": 33.6,
      "start_time": 33.1
   }
]