Copy Slots to Context
Description


The Copy Slots to Context Node is used to store a found Slot in a specific place in the Context.
Parameter | Type | Description |
---|---|---|
Key | CognigyScript | The place in the Context where the found Slot should be stored. |
Tag | CognigyScript | The tag of the Slot that should be stored in the Context if found (e.g a food). |
Mode | Select | Can be either |
UseNeg | Toggle | If |
Let's say you create a Copy Slots To Context Node with a
key
of "foods", atag
of "food", amode
of "array", andUseNeg
asfalse
. You then attach a Lexicon that has the Keyphrases "salad" and "pizza" with a Tag of "food". If a user then says "I want to order a pizza and a salad", then the Keyphrases "pizza" and "salad" will be stored in an array in the Context under the key "foods".
Updated almost 3 years ago