Loading...
Loading...
Loading...
A guide variable enables your AI agent to pass information within the guide, send information to Architect Virtual Agent flows, and receive information from Architect Virtual Agent flows. For example, you can use references between steps in the guide and exchange data with Architect flows during the conversation, making the customer’s interaction more dynamic.
When creating variables, you can use optional validation controls to define how values are captured in guides. Once configured, the guide accepts only values that meet the specified criteria. Provide brief, high-level descriptions for variables and rely on validation settings to enforce constraints. If a participant submits a value outside the allowed criteria, the guide-based Virtual Agent responds with a message indicating the issue.
The validation options in the Validation section enable you to apply rules and conditions to a variable. The validation parameters are optional and they vary depending on the selected data type.
You can configure the validation options for string variables using either the pre-existing rules or regular expressions. Rules and regex enable authors to enforce predefined criteria for user input. If a value fails validation, the system returns an error message and requires a valid input before proceeding from the Ask command.
To add rule conditions, select Rules in the Rules | Regex toggle and click Add Rules. The following rule conditions are available:
| Rule | Usage description |
|---|---|
| Starts with | The value must start with the selected text. |
| Ends with | The value must end with the selected text. |
| Contains | The value must contain the selected text. Spaces are not allowed. This rule can be applied up to five times. |
| Allowed characters | Allowed combination of characters. The following combinations are available:
|
| Min length | The minimum allowed length (number) of the string value. The value can be greater than or equal to this length. |
| Max length | The maximum allowed length (number) of the string value. The value can be less than or equal to this length. |
| First characters | The first N number of letters or alphabets allowed in the string value. |
| Last characters | The last N number of letters or alphabets allowed in the string value. |
To add regex, select Regex in the Rules | Regex toggle and click Add Regex. Then, enter your regular expression to validate the string values. You can combine multiple expressions.
You can also test how your rules or regular expressions work by entering a sample string value in the Test field.
Set the minimum and maximum values that the variable must accept. Both the minimum and maximum values are optional.
Use the date validation options to indicate which dates and date formats that the system must allow.
Get user feedback about articles.