Description
Use this Node to fill Slots using regular expressions. To learn more about Slots and Tags, see Lexicons & Slots.
Parameters
| Parameter | Type | Description |
|---|
| Regex | Regular expression | The regular expression applied to the user input. The regular expression must start and end with /, for example, /^1\d{7}$/. Compared to regular expressions in Slot Fillers on the NLU tab, the Regex Slot Filler Node also supports flags. |
| Flags | Regular expression flag characters in single string | Regular expression flags you want to set. When the g flag is used, for example, /^1\d{7}$/g, and the input contains multiple matches, all matched values are stored as an array. The array is stored under the slots key in the Input object. |
| Tag | CognigyScript | The Tag or Slot you want to fill. |
Last modified on June 11, 2026