Chat Ended

Sent when an EVI chat ends.

Payload

The payload of this webhook request is an object.
chat_group_idstringRequired

Unique ID of the Chat Group associated with the Chat session.

chat_idstringRequired

Unique ID of the Chat session.

duration_secondsintegerRequired

Total duration of the session in seconds.

end_reasonenumRequired

Reason for the session’s termination.

end_timeintegerRequired

Unix timestamp (in milliseconds) indicating when the session ended.

caller_numberstringOptional

Phone number of the caller in E.164 format (e.g., +12223333333). This field is included only if the Chat was created via the Twilio phone calling integration.

config_idstringOptional

Unique ID of the EVI Config used for the session.

custom_session_idstringOptional

User-defined session ID. Relevant only when employing a custom language model in the EVI Config.

event_name"chat_ended"OptionalDefaults to chat_ended

Always chat_ended.

Response

200
any
Return a 200 status to indicate that the data was received successfully.