Custom Functions
Create Custom Function
Create a new custom function for an agent
POST
Create a custom webhook function that your AI agent can call during conversations.
Request Body
string
required
UUID of the agent this function belongs to
string
required
Function name in snake_case (e.g.,
check_order_status). Must be unique per agent.string
required
Description of what the function does. The AI uses this to decide when to call it.
string
required
HTTP method:
GET, POST, PUT, PATCH, or DELETEstring
required
The webhook URL to call (must be HTTPS in production)
array
Custom headers to include with requests
array
Parameters the AI should collect before calling
array
Variables to extract from the response using JSON paths
integer
default:"120000"
Request timeout in milliseconds (max 300000)
integer
default:"2"
Number of retry attempts on failure (max 5)
boolean
default:"true"
Whether the function is active and available to the agent
Response
string
UUID of the created function
string
UUID of the agent
string
Function name
string
Function description
string
HTTP method
string
Webhook URL
boolean
Whether the function is active
string
ISO 8601 timestamp