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
UUID of the agent this function belongs to
Function name in snake_case (e.g.,
check_order_status). Must be unique per agent.Description of what the function does. The AI uses this to decide when to call it.
HTTP method:
GET, POST, PUT, PATCH, or DELETEThe webhook URL to call (must be HTTPS in production)
Custom headers to include with requests
Parameters the AI should collect before calling
Variables to extract from the response using JSON paths
Request timeout in milliseconds (max 300000)
Number of retry attempts on failure (max 5)
Whether the function is active and available to the agent
Response
UUID of the created function
UUID of the agent
Function name
Function description
HTTP method
Webhook URL
Whether the function is active
ISO 8601 timestamp