Here you’ll find details about each event our system emits, including attributes, examples, and usage notes. These events are typically sent to your configured webhook endpoint whenever relevant actions occur in a call’s lifecycle.
type
field, e.g., event_call_status_updated
timestamp
(Unix time)
call_id
to identify the call
event_call_status_updated
Attribute | Type | Values | Description | Example |
---|---|---|---|---|
call_type | String | phone_call , web_call | Indicates whether the call is a traditional phone call or a web-based call. | phone_call |
direction | String | inbound , outbound | Specifies if the call was received (inbound) or made (outbound). | inbound |
status | String | initiated , ringing , connected , completed , redirection_completed , failed , busy , no_answer , canceled | Describes the current state of the call. | ringing |
from_phone_number (Optional) | String | — | The phone number that initiated the call. | +1234567890 |
to_phone_number (Optional) | String | — | The phone number receiving the call. | +0987654321 |
redirect_duration (Optional) | int (seconds) | — | Duration for which the call was redirected before final status. | 42 |
timestamp | float | — | Unix timestamp indicating when the event was recorded. | 1633035802.123 |
call_id | String(uuid4) | — | Unique identifier for the call. | d8016985-e492-... |
completed
: Call was answered and ended normally.redirection_completed
: Call was redirected to another number and completed successfully.busy
: Destination returned a busy signal.no_answer
: Call rang, but no one answered (or the call was declined) before timeout.failed
: Call could not be routed (invalid number, unreachable, or network error).canceled
: Call was canceled while still queued or ringing.event_call_answer_type_updated
Attribute | Type | Values | Description | Example |
---|---|---|---|---|
call_type | String | phone_call | Specifies this is a phone call (particularly for outbound AMD). | phone_call |
direction | String | inbound , outbound | Typically outbound for AMD, but included for consistency. | outbound |
answer_type | String | human , machine , voicemail | The identified entity that answered the call. | human |
timestamp | float | — | Unix timestamp indicating when the event was recorded. | 1633035802.123 |
call_id | String(uuid4) | — | Unique identifier for the call. | d8016985-e492-4710-b288-97229... |
event_transcript
Attribute | Type | Values | Description | Example |
---|---|---|---|---|
text | String | — | The recognized speech or chat text. | "Hello, how can I assist you?" |
timestamp | float | — | Unix timestamp indicating when the transcript was recorded. | 1633035802.123 |
sender | String | human , agent | Indicates who sent the message (human or agent). | human |
call_id | String(uuid4) | — | Unique identifier for the call. | d8016985-e492-... |
event_tool
Attribute | Type | Description | Example |
---|---|---|---|
name | String | The name of the tool or action invoked. | "check_order_status" |
type | String | The category of the tool (e.g., api_call , database_query , etc.). | "custom_tool" |
arguments (Optional) | dict | Arguments or parameters provided to the tool. | {"order_id": "67890"} |
response (Optional) | dict | If the tool/action returned data, it may appear here. | {"status": "Order in transit"} |
timestamp | float | Unix timestamp indicating when the tool was called. | 1633035802.123 |
call_id | String(uuid4) | Unique identifier for the call associated with this tool event. | d8016985-e492-4710-b288-97229... |
event_task_transition
Attribute | Type | Description | Example |
---|---|---|---|
source_task_name | String | The name of the current/previous task. | "initial_greeting" |
target_task_name (Optional) | String | The name of the next task the system is transitioning to. | "collecting_information" |
source_task_model | ModelType | The model used for the source task. | "model123" |
target_task_model (Optional) | ModelType | The model used for the target task, if applicable. | "model456" |
source_task_duration (Optional) | int (seconds) | How long the source task lasted before transitioning. | 30 |
timestamp | float | Unix timestamp indicating when the transition occurred. | 1633035802.123 |
call_id | String(uuid4) | Unique identifier for the call. | d8016985-e492-... |
event_variable_value_updated
Attribute | Type | Description | Example |
---|---|---|---|
variable_name | String | The name of the variable being updated. | "customer_status" |
value | String | The new value of the variable. | "VIP" |
timestamp | float | Unix timestamp indicating when the variable was updated. | 1633035802.123 |
call_id | String(uuid4) | Unique identifier for the call. | d8016985-e492-4710-b288-97229... |
event_all_variables_resolved
Attribute | Type | Description | Example |
---|---|---|---|
variable_values | dict | A dictionary containing the resolved variables relevant to the call or session. | {"customer_id": "12345"} |
timestamp | float | Unix timestamp indicating when the event was recorded. | 1633035802.123 |
call_id | String(uuid4) | Unique identifier for the call. | d8016985-e492-4710-b288-97229... |
event_recording_status_updated
Attribute | Type | Values | Description | Example |
---|---|---|---|---|
status | String | completed , absent , failed | The current status of the recording. | completed |
recording_url | String | — | A presigned URL to access the call recording, if available. The URL is valid for one hour. | "https://..." |
timestamp | float | — | Unix timestamp indicating when the event was recorded. | 1633035802.123 |
call_id | String(uuid4) | — | Unique identifier for the call. | d8016985-e492-4710-b288-97229... |
event_post_call
Attribute | Type | Description | Example |
---|---|---|---|
timestamp | float | Unix timestamp indicating when the event was recorded. | 1633035802.123 |
call_id | String(uuid4) | Unique identifier for the call. | d8016985-e492-4710-b288-97229... |
call_data | dict | Complete call data matching the response from the Get call details API endpoint. | {"id": "d8016985-e492-...", ...} |
redirect_duration
when no redirect occurred), it may be omitted from the payload.