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

# think (Deprecated)

<Warning>
  As of Cognigy.AI 4.98.0, the `think` function is deprecated. Use `thinkV2` instead.
</Warning>

## Syntax

`think(text, data)`

## Description

Restarts Flow execution with a simulated input.

**Parameters:**

* `text`: `string` — simulated input text.
* `data`: `Record<string, unknown>` — simulated input data.

**Returns:** `void`

## Example

```js theme={null}
think("I want to book a flight", {
  userLocation: "Berlin",
  destination: "Paris"
});
```
