Remote tools
A remote tool is a function the store exposes over HTTPS. The model sees it like a built-in tool. Your plan must include custom tools; it also sets how many you can enable. Add them in Settings → Remote tools or with the API.
Register
Section titled “Register”PATCH /v1/admin/tenant{ "remoteTools": [{ "name": "checkStoreStock", "description": "Stock of a product in our physical shops. Use when the visitor asks whether they can buy it in a shop.", "url": "https://shop.example.com/helpvane/tools", "inputSchema": { "type": "object", "properties": { "sku": { "type": "string" }, "city": { "type": "string" } }, "required": ["sku"], "additionalProperties": false }, "timeoutMs": 5000, "enabled": true, "requiresAuth": false }]}namemust match^[a-zA-Z][a-zA-Z0-9_]{0,63}$. Invalid or disabled tools are skipped.descriptionis what the model reads to decide when to call the tool. Be precise.inputSchemais JSON Schema. An empty schema means no input.timeoutMsis clamped to 500–10,000 (default 5,000).requiresAuth: true(“Signed-in only” in the admin) offers the tool only to signed-in customers.
The whole remoteTools array is replaced on each PATCH.
The call
Section titled “The call”POST <url>x-helpvane-timestamp: 1791500000x-helpvane-signature: sha256=…
{ "event": "tool.invoke", "tenantId": "…", "toolName": "checkStoreStock", "conversationId": "…", "visitor": { "visitorId": "…", "externalUserId": "42", "channel": "web" }, "context": { "language": "en", "plan": "pro" }, "input": { "sku": "LIN-001", "city": "Istanbul" }}Respond with any JSON or text. The response is passed to the model as is and cut at 32 KB. Errors and timeouts become “Tool ‘
Verify the signature before trusting anything; see Webhook signing. Treat input as untrusted: it comes from the model, which a visitor can influence. Only visitor.externalUserId (from a token you signed) identifies the customer.