Loading...
Loading...
Loading...
In addition to built-in slot types, Architect supports four custom slot types: list slot type, dynamic list slot type, regular expression slot type, and if you enable Virtual Agent, AI-powered slots. Use regular expressions (regex or regexp) to identify patterns in utterances that match a specific sequence of characters. Regex is useful if you want to capture strings with different letter and digit combinations such as unknown names, IDs, flight numbers, or license numbers.
For example, if you want to match flight codes for your travel bot, you must know the flight number for handling any cancellations. The regex pattern, ^[A-Z]{2}\d{3,4}$ matches any phrase in the utterance that matches this pattern as a flight number. For more information, see Regular expression language quick reference.
To add a custom regular expression slot type, follow these steps:
You can test a regular expression slot type before you publish your flow. For more information, see Test a regular expression slot type.
To modify slot information, from the Slot menu, select a slot and click Edit .
To delete a slot, from the Slot menu, select a slot and click Delete .
Get user feedback about articles.