Code-based Actions: Store Parameters

You can store or save parameters and use them later in your flow design.

Flow allows you to extract data from conversations. To extract data, you can use entities or the Any Text trigger. You can also view the extracted data and parameters in the TRY IT OUT window.

You can store or save the parameters that can be useful when you want to:

  • Ask the user for confirmation of the data
  • Use the parameters for API calls

The code below displays an example of how to store the parameter "email". If you're using other variable names, ensure to edit the name in the action code below.

async payload => {  
    // Check if the param "email" exists  
    if(Array.isArray( {
// Param exists, let's store it so we can use it later