Skip to main content
WEBHOOK
conversation.analysisCompleted
{
  "eventId": "evt_01234567890abcdef",
  "eventType": "conversation.analysisCompleted",
  "payload": {
    "id": "conv_1234567890abcdef",
    "phoneId": "phone_1234567890abcdef",
    "agentId": "agent_1234567890abcdef",
    "workspaceId": "ws_1234567890abcdef",
    "callStartTime": "2023-01-01T12:00:00.000Z",
    "callEndTime": "2023-01-01T12:00:00.000Z",
    "userJoinTime": "2023-01-01T12:00:00.000Z",
    "userLeaveTime": "2023-01-01T12:00:00.000Z",
    "agentJoinTime": "2023-01-01T12:00:00.000Z",
    "agentLeaveTime": "2023-01-01T12:00:00.000Z",
    "transferStartTime": "2023-01-01T12:00:00.000Z",
    "transferEndTime": "2023-01-01T12:00:00.000Z",
    "transferUserJoinTime": "2023-01-01T12:00:00.000Z",
    "transferUserLeaveTime": "2023-01-01T12:00:00.000Z",
    "transferStatus": null,
    "customerId": "cust_1234567890abcdef",
    "customer": {
      "name": "John Doe",
      "id": "cust_1234567890abcdef",
      "createdAt": "2023-01-01T12:00:00.000Z",
      "updatedAt": "2023-01-01T12:00:00.000Z",
      "workspaceId": "ws_1234567890abcdef",
      "email": "john.doe@example.com",
      "phoneNumber": "+1234567890",
      "identifier": "john.doe",
      "priority": 1,
      "sourceFile": null,
      "source": {
        "method": "api"
      },
      "isDoNotDisturbEnabled": false,
      "metadata": {
        "custom_field": "value"
      }
    },
    "toPhoneNumber": "+1234567890",
    "fromPhoneNumber": "+0987654321",
    "transferDestination": null,
    "conversationStatus": "completed",
    "telephonyType": "outbound",
    "telephonyStatus": "completed",
    "endReason": "user_hangup",
    "recordingStatus": "completed",
    "postCallMetadata": {
      "sentiment": "positive",
      "duration": 3600,
      "resolution": "completed"
    },
    "conversationType": "telephony",
    "dynamicVariables": "{\"customer_name\": \"John Doe\", \"priority\": \"high\"}",
    "campaignId": "camp_1234567890abcdef",
    "campaignRunId": "run_1234567890abcdef",
    "recordingUrl": "https://uploads.oration.ai/public/conversations/conv_1234567890abcdef/recordings/mono.mp4",
    "transcript": "Agent: Hello, how can I help you today?\nCustomer: I'd like to know about your pricing...",
    "createdAt": "2023-01-01T12:00:00.000Z",
    "updatedAt": "2023-01-01T12:00:00.000Z",
    "agents": [
      {
        "id": "ca_1234567890abcdef",
        "agentId": "agent_1234567890abcdef",
        "conversationId": "conv_1234567890abcdef",
        "agentJoinTime": "2023-01-01T12:00:00.000Z",
        "agentLeaveTime": "2023-01-01T12:00:00.000Z",
        "createdAt": "2023-01-01T12:00:00.000Z",
        "updatedAt": "2023-01-01T12:00:00.000Z"
      }
    ],
    "users": [
      {
        "id": "cu_1234567890abcdef",
        "agentId": "agent_1234567890abcdef",
        "conversationId": "conv_1234567890abcdef",
        "userJoinTime": "2023-01-01T12:00:00.000Z",
        "userLeaveTime": "2023-01-01T12:00:00.000Z",
        "createdAt": "2023-01-01T12:00:00.000Z",
        "updatedAt": "2023-01-01T12:00:00.000Z"
      }
    ],
    "transfers": [
      {
        "id": "ct_1234567890abcdef",
        "agentId": "agent_1234567890abcdef",
        "conversationId": "conv_1234567890abcdef",
        "transferStartTime": "2023-01-01T12:00:00.000Z",
        "transferEndTime": "2023-01-01T12:00:00.000Z",
        "transferUserJoinTime": "2023-01-01T12:00:00.000Z",
        "transferUserLeaveTime": "2023-01-01T12:00:00.000Z",
        "transferDestination": "+15555555555",
        "transferStatus": "transfer_connected",
        "createdAt": "2023-01-01T12:00:00.000Z",
        "updatedAt": "2023-01-01T12:00:00.000Z"
      }
    ]
  }
}

Body

application/json
eventId
string<uuid>
required
eventType
string
required
Allowed value: "conversation.analysisCompleted"
payload
object
required

Response

200

Webhook received successfully