Skip to main content

Functions

A function defines a structured action that an AI model can request. It describes the tool name, when to use it, and the accepted arguments. An adapter performs the action.

Create functions under Bot → Functions.

Definition

Choose a stable, specific name. Write the description for the model: state the action, when it is appropriate, and any important precondition. Define parameters with the structured schema editor. Object properties can use standard types such as string, number, integer, boolean, object, and array. Mark fields as required only when the adapter cannot operate without them.

The function name should match the intent route that dispatches the call.

Built-in telephony functions

The runtime supplies definitions for hangup, call_transfer, and conference. A custom function with the same name replaces the default definition. Exposing a definition does not implement its side effect: the required SIP adapter and intent route must still be available.

Activation

Assign the function to the Bot, include it in the active policy, and route its name to an adapter. Every referenced function and adapter must share the policy's Bot assignments.