> ## 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.

# Logic

Logic Nodes allow you to customize your Flow's behavior. You can use them to control which parts of the Flow should run based on conditions or integrate with other Flows.

> [card] [Add To Context](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/logic/add-to-context.md)
>
> Use the Add To Context Node to store information in the [Context](https://docs-classic.cognigy.com/ai/agents/develop/ai-agent-memory/context.md) object and use this information throughout the session.

> [card] [Copy Data To Context](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/logic/copy-data-to-context.md)
>
> The Copy Data To Context Node copies the contents of the Input `data` object into the [Context](https://docs-classic.cognigy.com/ai/agents/develop/ai-agent-memory/context.md) object.

> [card] [Execute Flow](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/logic/execute-flow.md)
>
> Use the Execute Flow Node to execute another Flow and return to the initial Flow afterward.

> [card] [Go To](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/logic/go-to.md)
>
> Use the Go To Node to switch between Flows or between Nodes.

> [card] [If](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/logic/if.md)
>
> The If Node evaluates a condition statement and triggers either the Then or Else child Nodes.

> [card] [Interval](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/logic/interval.md)
>
> Use the Interval Node to add a minimal interval before other Nodes are executed.

> [card] [Lookup](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/logic/lookup.md)
>
> The Lookup Node acts as a switch between different options. Based on the input value, the Node executes one of the options.

> [card] [Once](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/logic/once.md)
>
> Once Nodes limit the Flow execution after them to once per session, for example, for greetings or database requests.

> [card] [Remove From Context](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/logic/remove-from-context.md)
>
> The Remove From Context Node removes information from the [Context](https://docs-classic.cognigy.com/ai/agents/develop/ai-agent-memory/context.md) object.

> [card] [Sleep](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/logic/sleep.md)
>
> The Sleep Node pauses the Flow execution for a period you define.

> [card] [Stop and Return](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/logic/stop-and-return.md)
>
> The Stop and Return Node stops the Flow execution and returns to the Start Node.

> [card] [Switch Locale](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/logic/switch-locale.md)
>
> The Switch Locale Node changes [Locales](https://docs-classic.cognigy.com/ai/platform-features/translation-and-localization/localization) during a conversation, for example, based on language detection or user region.

> [card] [Think](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/logic/think.md)
>
> Use the Think Node to inject a text into the Start Node, for example, to restart the Flow, with specific data, text, or Intent.

> [card] [Wait for Input](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/logic/wait-for-input.md)
>
> The Wait for Input Node halts the Flow execution until the user input is received.


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