Execute Cognigy NLU

Description

The Execute Cognigy NLU Node is used to execute the COGNIGY.AI NLU Pipeline with a specified text input. This enables you to e.g. use a Code Node to change a user's input slightly and then running the NLU Pipeline with the modified sentence. It can also be used in conjunction with the No NLU connector in order to delay running the NLU Pipeline. This can be useful to e.g. avoid triggering certain Intents before you have a chance to analyze the sentence in e.g. a Code Node.

Parameter

Type

Description

Text

CognigyScript

The text that will be performed NLU on. Can e.g. be {{ci.text}} to run the NLU Pipeline with the user input.

Data

JSON

Data to send to the NLU Pipeline. Can be used to modify ci.data

Mode

Select

There are three modes available which control how the output of the NLU Pipeline will be stored. The available selections are


Overwrite: This selection will overwrite the Input Object with the result of the NLU Pipeline. Useful if you are e.g. using this with the No NLU Connector


Input: This selection will store the result of the NLU Pipeline into the Input Object under a different key as specified in the store field. This is useful if you are e.g. running the NLU Pipeline a second time with a completely different text than the user input.


Context: This selection will store the result of the NLU Pipeline into the Context under the key specified in the store field

Store

CognigyScript

Where to store the result of the NLU Pipeline in either the Context or the Input Object, depending on the selected mode.


NOTE If the mode is set to overwrite then the store field doesn't do anything


Did this page help you?