Body
application/json
Response
200
Webhook received successfully
Triggered when a post call analysis is completed (e.g., user ends the conversation)
{
"eventId": "evt_01234567890abcdef",
"eventType": "conversation.analysisCompleted",
"payload": {
"id": "conv_1234567890abcdef",
"phoneId": "phone_1234567890abcdef",
"agentId": "agent_1234567890abcdef",
"workspaceId": "ws_1234567890abcdef",
"wsUrl": "wss://api.example.com/ws/conv_1234567890abcdef",
"llmUrl": "https://api.example.com/llm/conv_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",
"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,
"isDoNotDisturbEnabled": false,
"metadata": {
"custom_field": "value"
}
},
"toPhoneNumber": "+1234567890",
"fromPhoneNumber": "+0987654321",
"conversationStatus": "completed",
"telephonyType": "outbound",
"telephonyStatus": "completed",
"endReason": "user_hangup",
"recordingStatus": "completed",
"postCallNotes": "Customer satisfied with the service",
"postCallCategory1": "sales",
"postCallCategory2": "follow_up",
"postCallCategory3": "high_priority",
"postCallMetadata": {
"sentiment": "positive",
"duration": 3600,
"resolution": "completed"
},
"conversationType": "telephony",
"dynamicVariables": "{\"customer_name\": \"John Doe\", \"priority\": \"high\"}",
"summary": "Customer inquiry about product features and pricing",
"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"
}
}Webhook received successfully
{
"eventId": "evt_01234567890abcdef",
"eventType": "conversation.analysisCompleted",
"payload": {
"id": "conv_1234567890abcdef",
"phoneId": "phone_1234567890abcdef",
"agentId": "agent_1234567890abcdef",
"workspaceId": "ws_1234567890abcdef",
"wsUrl": "wss://api.example.com/ws/conv_1234567890abcdef",
"llmUrl": "https://api.example.com/llm/conv_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",
"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,
"isDoNotDisturbEnabled": false,
"metadata": {
"custom_field": "value"
}
},
"toPhoneNumber": "+1234567890",
"fromPhoneNumber": "+0987654321",
"conversationStatus": "completed",
"telephonyType": "outbound",
"telephonyStatus": "completed",
"endReason": "user_hangup",
"recordingStatus": "completed",
"postCallNotes": "Customer satisfied with the service",
"postCallCategory1": "sales",
"postCallCategory2": "follow_up",
"postCallCategory3": "high_priority",
"postCallMetadata": {
"sentiment": "positive",
"duration": 3600,
"resolution": "completed"
},
"conversationType": "telephony",
"dynamicVariables": "{\"customer_name\": \"John Doe\", \"priority\": \"high\"}",
"summary": "Customer inquiry about product features and pricing",
"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"
}
}