Using # and <> Brackets in Synthflow Prompts
Last updated: August 21, 2025
Purpose:
This SOP outlines how to use special syntax (# and <>) to integrate and manage custom actions in Synthflow AI agent prompts.
1. Syntax Definitions
#: Used to call or trigger a custom action.<>: Used to display or insert the result of that custom action into the agent’s spoken or functional response.
2. Workflow Example
Suppose you have a custom action named get_user_name. Here's how you use it:
Prompt Structure:
#get_user_name
Hello, <get_user_name>! How can I help you today?
Explanation:
#get_user_nametriggers the action to run.<get_user_name>tells the AI to say or insert the value returned by the action.
3. Rules and Best Practices
Always trigger the action first using
#before referencing it with<>.Do not insert spaces inside
<>or between#and the action name.Make sure the action name used inside
#and<>matches exactly.Multiple actions can be triggered; each must be called separately using
#.
4. Troubleshooting Tips
If
<action_name>renders blank, confirm that the corresponding#action_nameis called earlier in the prompt.Ensure the custom action is properly configured and returns a response.
Only use
<>for actions that return a displayable value (text, number, etc.).