Copy Slots to Context¶
The Copy Slots to Context Node is used to store a found Slot in a specific place in the Context.
|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
Handling Multiple Slots with Arrays
Let's say you create a Copy Slots To Context Node with a
key of "foods", a
tag of "food", a
mode of "array", and
false. 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".