Skip to main content

Overview

Custom Functions give your agent the ability to take real actions during a call — check order status, book appointments, query your database, update your CRM. When the agent decides to call a function, TalkifAI sends a POST request to your endpoint with the parameters it extracted from the conversation. Your server responds with data, and the agent uses it in its reply.
For setup instructions, see Custom Functions Guide →

Endpoints


List Functions

For a Specific Agent

Response:

For All User’s Agents

Response:

For Organization

Response:

Create a Function

Request body:
Response:
After creating the function, mention it in your system prompt so the agent knows when to use it. Example: "To check order status, use the check_order_status function."

Update a Function

Request body — include id plus any fields to update:
Response: Updated function object.

Delete a Function

Response:
Deleting a function immediately stops the agent from calling it. The function ID is also removed from the agent’s enabledCustomFunctions array automatically.

How TalkifAI Calls Your Endpoint

When the agent triggers a function, TalkifAI makes a POST to your endpoint: Request from TalkifAI to your server:
Your server must respond within 10 seconds:
The agent receives your response and uses it in its reply to the user. Return any JSON — the agent understands it.

Parameters Format

Parameters are stored as a JSON object following JSON Schema format:
Supported types: string, number, boolean, array, object

Permissions

Notes:
  • Owners and Admins can manage functions for all agents in their organization
  • Members can only view functions for agents they created
  • Commercial agents: Only Owners/Admins can manage functions