Agent Script Reference: Conditional Expressions
if and else conditions deterministically specify what actions to take or which prompts to include. For example, you can check a variable's value and then run an action based on the result:
You can also check a variable in order to set other variables.
You can use a conditional expression to determine which natural-language prompt to include.
Currently, Agent Script supports if and else logic, but it doesn't support else if logic after an if statement.
Related Topics