Test HTTP tools and approve them for the voice agent
A tool contains the configuration of an external HTTP call. Via POST /api/tools/{id}/execute it can be run manually. Private Work orders can use active assigned tools if auto_tools=true on the agent and auto_execute=true on the tool are set. Publishing the agent is not required for this. Read-only GETs additionally require read_only=true; other HTTP actions wait for owner/admin approval. In the LiveKit voice worker, its existing explicit tool approvals apply.
Configure a tool
Enter the target address, the method and, if needed, the name of an operator environment variable for credentials. Example configuration:
{
"name": "CRM-Kontaktprüfung",
"status": "active",
"data": {
"url": "https://crm.example.at/api/contacts/search",
"method": "POST",
"secret_env": "AIHUB_TOOL_SECRET_CRM"
}
}
secret_env is a variable name, not a password. It must use AIHUB_TOOL_SECRET_ as its prefix. The operator sets up the actual key in the process environment; the executor sends it as a bearer header. The target host must be explicitly listed in AIHUB_TOOL_HOSTS to be allowed. In addition, AIHUB_TOOL_SECRET_BINDINGS binds the key to exactly the authorized workspace and allowed hosts. Another workspace must not be able to access operator credentials by guessing the variable name.
AIHUB_TOOL_HOSTS=crm.example.at
AIHUB_TOOL_SECRET_CRM=BETREIBERSECRET_HIER_SETZEN
AIHUB_TOOL_SECRET_BINDINGS='{"AIHUB_TOOL_SECRET_CRM":{"workspace_id":"WORKSPACE_ID","hosts":["crm.example.at"]}}'
Replace WORKSPACE_ID with the actual ID from manage.py list-workspaces. The executor allows only public HTTPS targets on port 443, checks DNS addresses and does not follow redirects. The allowlist is not a general authorization to access internal networks.
Test and live calls
{"mode": "test", "input": {"email": "[email protected]"}}
Tools run in live mode and must be active or published. Simulations are disabled. Tool permissions, action approvals and the host allowlist also apply. Inputs are sent as query parameters for GET and as JSON for POST/PUT/PATCH/DELETE. An input may contain at most about 16,000 characters, and a response at most 256 KB. There is no guaranteed universal API/OAuth/MCP client.
A live call can transmit data to a third party or trigger an action in their system. Therefore, describe exactly in the tool name and prompt whether the endpoint only reads or writes. API errors are returned as errors; no successful booking is invented.
Automatic voice tools
Configure an active tool with auto_execute=true, a clear description and a JSON object schema in parameters. Assign its ID to the agent in tool_ids and then publish a new agent version. Example of a read-only contact lookup:
{
"auto_execute": true,
"read_only": true,
"method": "GET",
"description": "Vorhandenen Kontakt anhand seiner E-Mail-Adresse suchen; verändert keine Daten.",
"parameters": {
"type": "object",
"properties": {"email": {"type": "string", "maxLength": 254}},
"required": ["email"],
"additionalProperties": false
}
}
These fields are added to the existing data-object alongside url and optionally secret_env fields. The worker receives the schema, not the endpoint credentials. The backend rechecks the session, published assignment, active approval, workspace and operator host binding. Schemas contain no external references or regular expressions.
Provider call IDs are mapped to stable idempotent IDs. Successful identical write actions are reused within the session; unclear or aborted write actions require a check of the external status. This lock is limited to the current voice session. For cross-system guarantees, the target API must provide its own idempotency/confirmation rules. Do not mark writing endpoints as read_only.
Cal.com/CRM/SMS/MCP entries are integration configurations. For Google Calendar, the native appointment agent is available, with availability checks and explicitly confirmed entries. The standard templates include their own contact and calendar actions; contact actions in work orders require human approval. Other calendar providers require a suitable integration. Conversation notifications have a separate email/webhook outbox worker; they are configured via agent.data.notifications and require a running worker. A URL in the tool editor does not enable automatic event delivery.