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

# addToInput

## Syntax

`addToInput(key, value)`

## Description

Writes a value into the Input object for the execution.
This function allows you to store data in the Input object, which can be accessed later in the execution context.

**Parameters:**

* **key** — the key in the Input object.
* **value** — the value to store.

**Returns:** `void`

## Example

```js theme={null}
// Add a user's preferred language to the Input object
addToInput("userLanguage", "en-US");

// Later in the Flow, you can access input.userLanguage
console.log(input.userLanguage); // Output: "en-US"
```
