Skip to main content

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"
โŒ˜I