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.
Payload
1{
2 "chat_group_id": "9fc18597-3567-42d5-94d6-935bde84bf2f",
3 "chat_id": "470a49f6-1dec-4afe-8b61-035d3b2d63b0",
4 "duration_seconds": 180,
5 "end_reason": "USER_ENDED",
6 "end_time": 1716244958546,
7 "config_id": "1b60e1a0-cc59-424a-8d2c-189d354db3f3",
8 "event_name": "chat_ended"
9}
Built with