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
// 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"
Last modified on June 12, 2026