Tool Call

Sent when EVI triggers a tool call

Payload

The payload of this webhook request is an object.
caller_numberstring or nullRequired

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.

chat_group_idstringRequired

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

chat_idstringRequired

Unique ID of the Chat session.

config_idstring or nullRequired

Unique ID of the EVI Config used for the session.

custom_session_idstring or nullRequired

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

timestampintegerRequired

Unix timestamp (in milliseconds) indicating when the tool call was triggered.

tool_call_messageobjectRequired
The tool call.
event_name"tool_call"Optional

Always tool_call.

Response

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