- General data about the user input, such as time and type of input
- Endpoint-specific data
- Results from the NLU Intent mapping process, such as the recognized Intent and Slots
Limitations
- You can store up to 1.5 MB in the Input object. For on-premises installations, you can configure the limit using the
MAX_MEMORY_OBJECT_SIZEvariable in thevalues.yamlfile. Increasing the object size could lead to performance issues.
Properties
The data in the Input object depends on the Endpoint through which the user input is received. This article doesn’t include all possible property variations.
Input Object Properties
Input Object Properties
Nested Objects
nlu Object
nlu Object
currentTime Object
currentTime Object
activeQuestion Object
activeQuestion Object
apps Object
apps Object
intentLevel Object
intentLevel Object
transcript Object
transcript Object
The
transcript object is only available if the Get Transcript Node is used in the Flow.Working with the Input Object
You can view the Input object by navigating to Info > Input in the Interaction Panel. You can copy the exact JSON path of an Input object value by right-clicking it and selecting Copy JSON Path.Accessing Input Properties
Nodes can dynamically access Input properties with CognigyScript, for example,{{input.property}} or Tokens. The CognigyScript expression you use to access the input object follows the dot notation for JSON objects: property.child.child.
Examples
{{input.text}}returns the text that the user sent to the Flow.{{input.nlu.tokens}}returns the tokens of the user input in an array.{{input.attachments[0].url}}returns the URL of the first attachment uploaded to the chat.
More Information
1: The NLU properties are computed by the NLU Connector and stored after the NLU processing. For this reason, Rules and Intent Conditions can’t access these properties.