Common tool call examples
Fetch information
- Get order status using an order number
- Retrieve a door lock code using a reservation number
- Check room availability using check-in and check-out dates
Perform an action
- Create a new apointment in your
- Save a guest’s arrival time to your PMS/CRM
- Create a new appointment in your CRM (HubSpot, Salesforce)
1
Create the tool definition
Use Once created, the assistant can call this tool whenever it needs an order status.References
POST /tools to register the tool your assistant can call.2
Implement your backend endpoint
Implement the endpoint you provided in Tip: Keep the string short and focused on what the assistant needs next.
endpoint. Visito will send a JSON body that matches your parameters schema.Your endpoint response must include a single string (for example,
If you return an object or array, Visito will automatically apply
data).If you return an object or array, Visito will automatically apply
JSON.stringify(...) before infjecting your response into the assistant context.3
Test it in our Playground
Once your tool is created, open the Visito AI Playground and try it end-to-end.For example, ask:
“What is my order status?”You should see the assistant:
- Ask you for the order number (the required input), and then
- Execute the Tool Call and use the returned status in its reply.

Tip: You can refine how and when the assistant should execute a Tool Call by adding instructions in your System Prompt.
You can also add guidance directly in the tool’s description (for example: when to call it, what to ask first, and what to do if the tool returns no result).
You can also add guidance directly in the tool’s description (for example: when to call it, what to ask first, and what to do if the tool returns no result).