Adding a function
After creating and testing your function, integrate it into your agent’s Managed Topics so it can be invoked during conversations. You can add a function in three ways:- Type
/in the Actions field of a Managed Topic card to open the function menu. - Right-click in the Actions field to access the function menu.
- Click the
+icon on the right side of the Actions field.
{"{{fn:...}}"} syntax references global functions, which can be used across topics, flows, and rules. This is different from transition functions ({"{{ft:...}}"} syntax), which are scoped to a single flow. See Transition functions for details.
Best practices
Function invocation requires testing and iteration. Here is a recommended prompting pattern for the Actions field:utterance for the agent to speak, trigger a handoff, or end the call with hangup.
Testing
Test the invocation
Ask a test question like “Where is my order?” and observe how the agent handles the interaction.
Verify function calls
In the test chat panel, enable the tool calls toggle in settings to inspect which functions were called and what parameters were passed. This is useful for confirming whether the function was actually triggered and whether the correct arguments were sent — especially when the agent is not behaving as expected.

