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

# Think

[Updated in 4.88](https://docs-classic.cognigy.com/release-notes/4.88.md)

![Think Node configuration panel](https://mintcdn.com/cognigy-docs-legacy/sbu8K_1z3Hht9e7i/_assets/ai/develop/node-reference/logic/think.png?fit=max\&auto=format\&n=sbu8K_1z3Hht9e7i\&q=85\&s=5148c2234c5769149874e669ffa839cc)

## Description

This Node re-executes the Flow within a single iteration. The Node is useful when you want to restart the Flow, either with changed text or data or by explicitly triggering an Intent.

When the Think Node is reached, the Flow stops and restarts at the Start Node.
This behavior can be changed if you use an [Execute Flow Node](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/logic/execute-flow.md) in the parent Flow to access a child Flow with a Think Node. When the Think Node is reached, the child Flow stops,
and execution resumes from the beginning of the parent Flow at its Start Node.

## Parameters

| Parameter | Type | Description |
| - | - | - |
| Think Action | Select | A type of action to execute:<ul><li>**Think Text (default)** — lets you rerun the Flow with input text and/or input data, which will then be treated as a simulated message from the end user. This input will be sent through the NLU engine again, identifying Slots and matching Intents. This option is selected by default.</li><li>**Trigger Intent** — lets you rerun the Flow, ensuring a specific Intent is found instead of relying on the NLU engine. This approach is similar to the process outlined in [Trigger Intent](https://docs-classic.cognigy.com/ai/platform-features/nlu/intents/trigger-intent.md), where using an input like `cIntent:orderFood` triggers the `orderFood` Intent. You can achieve the same result by selection this option and entering `orderFood` in the **Intent to trigger** field.</li></ul> |
| Text to think | CognigyScript | This field appears if the **Think Text (default)** action is selected.  The provided text serves as a message to emulate user input. This custom data will be available in the `input.text` object. |
| Data to think | JSON | This field appears if the **Think Text (default)** action is selected.  The provided data serves as a message to emulate user input. This custom data will be available in the `input.data` object and can include any additional information that are relevant to the Flow. |
| Intent to trigger | CognigyScript | This field appears if the **Trigger Intent** action is selected.  Cognigy will trigger the Intent using the [`cIntent`](https://docs-classic.cognigy.com/ai/platform-features/nlu/intents/trigger-intent) method. |

### Error Handling

| Parameter | Type | Description |
| - | - | - |
| Log to System Logs | Toggle | Logs errors to the system logs. They can be viewed on the [Logs](https://docs-classic.cognigy.com/ai/agents/test/logs.md) page of your Project. This parameter is inactive by default. |
| Select Error Handling Approach | List | Sets how Flow execution behaves if the AI Agent throws an error. You can select one of the following options:<ul><li>**Stop Flow Execution** — terminates the current Flow execution.</li><li>**Continue Flow Execution** — allows the Flow to continue executing, bypassing the error and proceeding to the next steps.</li><li>**Go to Node** — redirects Flow execution to a specific Node, which can be useful for error recovery or customized error handling.</li></ul> |
| Error Message (optional) | Text | This parameter appears when you select **Continue Flow Execution** in **Select Error Handling Approach**. Add a message to output if the AI Agent fails. |
| Select Flow | List | This parameter appears when you select **Go to Node** in **Select Error Handling Approach**. Sets the Flow that includes the Node to which you want to redirect Flow execution. |
| Select Node | List | This parameter appears when **Go to Node** in **Select Error Handling Approach** is selected. Sets the Node to which you want to redirect Flow execution. |

## Alternatives

When you need to process user input or other text in the middle of a Flow to retrieve an NLU result, and you do not want to restart the Flow from the Start Node, use the [Execute Cognigy NLU Node](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/ai/execute-cognigy-nlu.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.