SlotsΒΆ
Slots are predefined data types or custom phrases detected by the Cognigy NLU and stored in the Input object. They allow AI Agents to extract structured information from user input and use it dynamically in conversations.
There are two types of Slots:
- System-Defined β built-in Slots that Cognigy.AI can use to automatically recognize common data types such as dates, times, numbers, and emails.
- User-Defined β custom Slots based on your vocabularies or regular expressions, allowing detection of specific phrases, entities, or domain-specific terms.
Working with SlotsΒΆ
Working with Slots depends on the type of Slot you choose. While some Slots automatically extract values from the user input, others require manual configuration to map detected values to specific variables.
Accessing Slots via CognigyScriptΒΆ
By default, Slots are stored in the Input object, and you can access them via CognigyScript.
The {{input.slots}}
object contains all system- and user-defined Slots found in a user input.
Tokenize your SlotsΒΆ
Create Tokens for your Slots to speed up the process of adding them to conversation logic and output fields.