danielgarcia_85844
07/30/2025, 11:36 PMAI Evy
07/30/2025, 11:36 PMAI Evy
07/30/2025, 11:36 PM{your-server-websocket-endpoint}/{call_id} .
For handling custom tools (function calls) , you'll need to implement tool call events in your WebSocket server . The system supports:
- **Tool Call Invocation Event**: To send tool call invocations to Retell
- **Tool Call Result Event**: To send tool call results back to Retell
Here's how the tool calling works in the WebSocket:
typescript
// Tool Call Invocation Event structure
{
"response_type": "tool_call_invocation",
"tool_call_id": "string",
"name": "string",
"arguments": "boolean"
}
// Tool Call Result Event structure
{
"response_type": "tool_call_result",
"tool_call_id": "string",
"content": "string"
}AI Evy
07/30/2025, 11:37 PMAI Evy
07/30/2025, 11:37 PMAI Evy
07/30/2025, 11:37 PMdanielgarcia_85844
07/30/2025, 11:37 PMAI Evy
07/30/2025, 11:37 PM