Skip to main content
AI Functions bridge the gap between an AI Agent’s conversational ability and your live business systems. Without them, an Agent can only draw on knowledge it already has. With AI Functions, the Agent can pause mid-conversation, collect whatever information it needs from the customer, trigger a Flow to run an external API call or an automation workflow, and then weave the result back into its reply naturally. For example, when a customer asks “What’s the weather in Hanoi today?”, an AI Function can fire a Flow that calls a weather API and hand the live data back to the Agent so it replies with the real current conditions.

How AI Functions Work

  1. The Agent recognises that the customer’s intent matches an enabled Function’s purpose.
  2. If the Function requires data (such as a date or email address), the Agent collects it through natural conversation.
  3. Once all data is collected, the Agent triggers the linked Flow.
  4. The Flow executes — it can save data, fire a webhook, call an external API, or transfer the chat to a human.
  5. The result is passed back to the Agent, which rewrites it into a smooth, natural reply.

How to Create an AI Function

Go to AI Functions from the left navigation and click + Create AI Function to open the configuration screen.
The output message is almost never sent word-for-word. The Agent uses it as raw material and rephrases it into a natural conversational reply before sending it to the customer.

Common AI Function Examples

The table below shows five ready-to-use patterns that cover the most frequent business scenarios:

Tips for System Prompt Guidance

The System Message (Prompt) of your AI Agent has a strong influence over how Functions behave. You can use it to pre-guide the data collection process and make conversations feel more natural.
If you have a restaurant booking Function, add a note to your Agent’s System Message like: “When a user wants to book a table, always ask for the expected time and the number of guests first.” This helps the Agent proactively gather all required data in the right order instead of asking several follow-up questions.
You can also instruct the Agent on tone and sequencing — for example, telling it to confirm collected details with the customer before actually triggering a booking or order Function.

Enabling and Linking a Function to an Agent

1

Enable the Function

In the AI Functions list, make sure the toggle for your Function is set to Enabled.
2

Open the Agent configuration

Go to AI Agents, find the Agent that should use this Function, and open its settings.
3

Attach the Function

In the Agent’s tools section, select the AI Function you created to link it to the Agent. The Agent will now consider this Function whenever a matching customer intent is detected.
4

Save

Click Confirm (or Save) to apply the changes.
If you delete a Flow that is referenced by an AI Function’s Trigger Flow ID, the Function will fail to execute when triggered. Always update or re-link the Function before removing the associated Flow.