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.
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.- 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 → 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.