Copy Slots to Context¶

Description¶
The Copy Slots to Context Node stores a found Slot in a specific place in the Context.
Parameters¶
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 |
|
UseNeg | Toggle |
|
Example¶
You create a Copy Slots To Context Node and set:
key
tofoods
.tag
tofood
.mode
toarray
.UseNeg
tofalse
.
You attach a Lexicon with the Keyphrases salad
and pizza
with the food
tag. If a user says I want to order a pizza and a salad
, then the Keyphrases pizza
and salad
are stored in an array in the Context under the key foods
.