Tool Model
A tool describes what the AI can call, the JSON input it should provide, and the HTTP endpoint Visito will invoke.parameters should be a JSON Schema object. Visito uses it to decide when the tool is relevant and to shape the input sent to your endpoint.
What Visito Sends to Your Endpoint
For aGET tool, Visito converts tool arguments into query parameters. Primitive values are sent as strings; objects and arrays are JSON-encoded.
POST tool, Visito sends the arguments together with conversation metadata:
bearersendsAuthorization: Bearer <configured secret>.api_keysends the configured secret inauth.headerName.- Stored secrets are redacted from invocation logs and are never returned by the API.
Example Conversation and Tool-Call Receipt
Assumeget_order_status is active, read only, and enabled in Playground. The following sequence shows what the customer, Visito, and an operator each see.
1. The customer asks for live information
get_order_status with:
2. Your backend returns a structured result
3. Visito records an operator-only receipt
While the call is running, Playground can show:4. The assistant answers the customer
Create a Tool
tools:write scope.
Create and Update Rules
namemust start with a letter or underscore, contain only letters, numbers, and underscores, and be at most64characters.descriptionis required and can be at most2000characters.parametersmust be a JSON Schema object. Visito setstype: "object"andadditionalProperties: falsewhen they are omitted.endpoint.urlmust be an HTTP or HTTPS URL.endpoint.methodmust beGETorPOST.endpoint.timeoutMs, when provided, must be an integer from500to30000.auth.typemust benone,bearer, orapi_key.allowInPlaygrounddefaults tofalse. Active read-only tools remain eligible in Playground; this flag permits mutating tools there. Playground executes the real endpoint.active: trueis required for normal agent calls, including Playground; it also makes the tool available for live execution. The direct test endpoint can execute inactive definitions.readOnlydeclares behavior; it does not prevent your endpoint from changing data.- Omitting
auth.valueduring a patch preserves the existing secret. Settingauth.typetononeremoves it.
List and Read Tools
tools:read.
Update or Delete a Tool
Update one or more fields:tools:write.
Test a Tool
Use the test endpoint before enabling a tool in production conversations.tools:execute.
Execution Logs
Use logs to audit AI tool calls and diagnose backend failures.tools:logs:read.
Endpoint Requirements
- Your endpoint must be reachable from Visito’s backend.
- Supported methods are
GETandPOST. - Return JSON whenever possible.
- Return a
2xxresponse for success. A non-2xxresponse is recorded ascustom_tool_http_error. - Keep tool responses concise and structured for AI use.
- Use
readOnly: truefor lookup tools that should never mutate state. - Use tool-specific auth secrets instead of broad internal credentials.
- Make mutating endpoints idempotent using a business identifier from
argumentsormeta.eventId. - Do not rely on the assistant to hide sensitive fields returned by your endpoint; omit secrets and unnecessary personal data from the response.
Production Checklist
- Create the tool with
active: false. - Test representative success, validation, timeout, and upstream-failure cases.
- Confirm request headers are redacted in Build → Tool calls → Activity logs.
- Keep the response small and stable so the assistant can interpret it reliably.
- Set
readOnly: falsefor mutations and require your own authorization and idempotency checks. - Enable the tool, then review invocation logs after the first real conversations.