Skip to main content

Available Events

Levers sends webhook notifications for the following events:
EventDescription
phone_call.endedTriggered when an AI phone call completes

phone_call.ended

Triggered when an AI phone call finishes. This event includes comprehensive call data including transcription, sentiment analysis, and call outcome.

Payload Schema

{
  "providerCallId": "069652c8-d01e-733e-8000-7c64a16dde5f",
  "numberFrom": "+15074106928",
  "numberTo": "+971585420805",
  "providerStatus": "pass",
  "deliveryStatus": "pass",
  "duration": 53,
  "summary": null,
  "endedReason": null,
  "callOutput": "CALL_RESULT",
  "callOutputReasoning": "Detailed evaluation and reasoning for the call result based on the conversation context and objectives.",
  "sentimentOutput": "NEUTRAL",
  "sentimentOutputReasoning": "Analysis of the contact's emotional tone and engagement level throughout the conversation.",
  "transcription": "Full transcript of the conversation between the AI assistant and the contact.",
  "recordingUrl": "levers-test-bucket:livekit-egress/56d4148b-3e6e-4095-b5c2-ca6e383357dd/6e0ac8cd-26c7-41ee-9e1e-a4cb692ba741/recording_1768238221.mp3",
  "metadata": {
    "requestMetadata": {
      "project_id": "proj_123",
      "extra_id": "custom_id_456"
    }
  }
}

Field Descriptions

FieldTypeDescription
providerCallIdstring (UUID)Unique identifier for the call from the telephony provider
numberFromstringThe Levers phone number that made the call (E.164 format)
numberTostringThe phone number that received the call (E.164 format)
providerStatusstringStatus of the call from provider perspective (pass, fail)
deliveryStatusstringWhether the call was successfully delivered (pass, fail)
durationintegerCall duration in seconds
summarystring | nullBrief summary of the call (may be null)
endedReasonstring | nullReason why the call ended (may be null)
callOutputstringResult of the call evaluation based on the conversation outcome
callOutputReasoningstringDetailed evaluation and reasoning for the call result based on the conversation context and objectives
sentimentOutputstringDetected sentiment of the contact (POSITIVE, NEUTRAL, NEGATIVE)
sentimentOutputReasoningstringAnalysis of the contact’s emotional tone and engagement level throughout the conversation
transcriptionstringFull text transcript of the conversation
recordingUrlstringURL to the call recording audio file
metadataobjectAdditional metadata about the call (key-value pairs). Contains requestMetadata which includes any custom data passed when initiating the call (e.g., project_id, extra_id)

Call Output Values

The callOutput field can include various outcomes such as:
ValueDescription
PAYMENT EXTENSIONContact requested more time to pay
PAYMENT PROMISEContact committed to paying by a specific date
CALL BACK REQUESTEDContact asked to be called again later
WRONG NUMBERThe number was invalid or wrong contact
NOT INTERESTEDContact declined to discuss the matter
PAYMENT COMPLETEDPayment was made during/after the call

Sentiment Values

ValueDescription
POSITIVEContact was cooperative and engaged
NEUTRALContact was neither cooperative nor resistant
NEGATIVEContact was frustrated, angry, or uncooperative

Learn how to verify webhook signatures to secure your endpoint.