Skip to main content

Tools

During a voice session the agent can decide to call one of its tools, for example to look up an order or book an appointment.

Tools come from the integrations, custom tools and knowledge base you attach to the agent in the console. See Integrations.

Tools run on the VoisX server​

When you build your own client with the session WebSocket, VoisX runs every tool call on its own servers, with the credentials and settings you saved in the console. Your client does not receive the tool's arguments, does not run anything and does not send results back. Your credentials never reach the browser.

Your client only hears about a tool call so it can show progress:

MessageFieldsMeaning
tool_callnameThe agent started running a tool.
tool_resultname, successThe tool finished. success is false if it failed. The agent tells the visitor what happened.
Messages during a tool call
{ "type": "tool_call", "name": "search_knowledge_base" }
{ "type": "tool_result", "name": "search_knowledge_base", "success": true }

Each tool call shows in the session's analytics in the console.

Was this page helpful?
On this page
Try it in the consoleBuild an agent and test it in the Playground.Open console →