Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cognigy.com/llms.txt

Use this file to discover all available pages before exploring further.

Regex Slot Filler Node configuration panel

Description

Use this Node to fill Slots using regular expressions. To learn more about Slots and Tags, see Lexicons & Slots.

Parameters

ParameterTypeDescription
RegexRegular expressionThe 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.
FlagsRegular expression flag characters in single stringRegular 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.
TagCognigyScriptThe Tag or Slot you want to fill.