> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognigy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Execute Cognigy NLU

<Frame>
  <img class="image-center" src="https://mintcdn.com/cognigy-15abf2ba/OU10XTKbB-9IwiZJ/_assets/ai/develop/node-reference/ai/execute-cognigy-nlu.png?fit=max&auto=format&n=OU10XTKbB-9IwiZJ&q=85&s=e710b8906ebdc57668e2431d26d51560" alt="Execute Cognigy NLU Node configuration panel" style={{ width: 'auto' }} width="464" height="126" data-path="_assets/ai/develop/node-reference/ai/execute-cognigy-nlu.png" />
</Frame>

## Description

The Execute Cognigy NLU Node executes the Cognigy.AI NLU pipeline and updates the [Input](/ai/agents/develop/ai-agent-memory/input) or [Context](/ai/agents/develop/ai-agent-memory/context) object. For example, you can use a Code Node to modify a user's input and subsequently execute the NLU pipeline with the modified user input to obtain fresh NLU results.

The Execute Cognigy NLU Node doesn't trigger standard responses in Intents nor execute the Flow based on a triggered Intent.

<AccordionGroup>
  <Accordion title="Settings">
    | Parameter               | Type          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
    | ----------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | Text                    | CognigyScript | Use `{{ input.text }}` or the Answer Token.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
    | Data                    | JSON          | Data to send to the NLU pipeline. Can be used to modify `input.data`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
    | Mode                    | Select        | Three modes are available to control how the output of the NLU pipeline is stored. The available selections are:<ul><li>**Overwrite** — overwrites the Input object with the result of the NLU pipeline.</li><li>**Input** — stores the result of the NLU pipeline in the Input object under the key specified in the **Input Key to write to** field. This option is useful if you are running the NLU pipeline a second time with different text than the user input.</li><li>**Context** — stores the result of the NLU pipeline in the Context object under the key specified in the **Context Key to write to** field.</li></ul> |
    | Context Key to write to | CognigyScript | This field appears if the **Write to Context** option is selected.<br /><br /> Store the result of the NLU Pipeline in the Context object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
    | Input Key to write to   | CognigyScript | This field appears if the **Write to Input** option is selected.<br /><br /> Store the result of the NLU Pipeline in the Input object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
  </Accordion>

  <Accordion title="Advanced">
    | Parameter                    | Type   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
    | ---------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | Parse Intents                | Toggle | Determine whether Cognigy should parse Intents in the child Flow. The parameter is enabled by default.<br /><br />If the parameter is enabled, the NLU pipeline reparses the Intents in the target Flow, using either [input.text](/ai/agents/develop/ai-agent-memory/input#accessing-input-properties) or the [Optionally Injected Text](/ai/agents/develop/node-reference/logic/go-to).<br /><br />The NLU pipeline parses the input into the child Flow, and the NLU pipeline then scores this text using the available Intents in the child Flow, not based on Intents in the parent Flow.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
    | Parse System Slots           | Toggle | Determine whether Cognigy should parse System Slots in the child Flow. This parameter is enabled by default.<br /><br />If the parameter is enabled, the NLU pipeline reparses the Slots in the target Flow, using either [input.text](/ai/agents/develop/ai-agent-memory/input#accessing-input-properties) or the [Optionally Injected Text](/ai/agents/develop/node-reference/logic/go-to).<br /><br />The NLU pipeline parses the input into the child Flow, and the NLU scores this text using the available Slots in the child Flow, not based on System Slots in the parent Flow.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
    | Parse Slots                  | Toggle | Determine whether Cognigy should parse Slots in the child Flow. This parameter is enabled by default.<br /><br />If the parameter is enabled, the NLU pipeline reparses the Slots in the target Flow, using either [input.text](/ai/agents/develop/ai-agent-memory/input#accessing-input-properties) or the [Optionally Injected Text](/ai/agents/develop/node-reference/logic/go-to).<br /><br />The NLU pipeline parses the input into the child Flow, and the NLU scores this text using the available Slots in the child Flow, not based on Slots in the parent Flow.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
    | Find Type                    | Toggle | Identify the type of user input. This parameter is enabled by default.<br /><br />If the user's answer contains words associated with a particular type of question, the system identifies the type of user input accordingly. The following types can be recognized:<ul><li>**whQuestion** — questions about specific details that include question words. For example, questions with `who`, `whom`, `when`, `where`, `why`, `whose`, or `what`.</li><li>**ynQuestion** — questions that are answered with yes or no. These questions contain auxiliary verbs. For example, questions with `am`, `are`, `is`, `was`, `were`, `do`, or `does`.</li><li>**howQuestion** — questions that start with the word `how`.</li><li>**Greeting** — common expressions used to greet someone. For example, `hi`, `hello`, `greetings`, `hey`, or `howdy`.</li><li>**BGreeting** — common expressions used to say farewell or goodbye. For example, `bye`, `goodbye`, or `see you`.</li><li>**nAnswer** — negative responses or negations, including `no`, `nope`, `na`, `nah`, `not`, or `false`.</li><li>**pAnswer** — positive responses or confirmations, such as `yes` or `super`.</li><li>**Statement** — any other user responses. If the system cannot identify the type of user input or the **Find Type** is disabled, it classifies it as a statement.</li></ul><br />Note that certain user responses may be ambiguous and could potentially be misinterpreted by the agent. For example:<br /><ul><li>The user input `Why not` is interpreted as a **whQuestion**.</li><li>The user input `My name only, yes` is interpreted as a **Statement**.</li><li>The user input `Could you help me?` is interpreted as a **Statement**</li></ul> |
    | Process Intent Default Reply | Toggle | By default, this parameter is disabled, so the default reply isn't processed. If the option is enabled, the default reply is handled in the same manner as when triggered by means other than the Execute Cognigy NLU Node.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
  </Accordion>
</AccordionGroup>

## Alternatives

When you need to process user input or other text in the middle of a Flow to retrieve an NLU result, and you want to restart the Flow from the Start Node, use the [Think Node](/ai/agents/develop/node-reference/logic/think).
