Skip to main content

Functions

A Function step in allows you to write JavaScript code to process some data in your flow. This can be useful if you want to transform a response from an HTTP request into a certain type of string to include in a message for a user.

A function step requires:

FieldDescription
InputThis could be a string, JSON or other data collected in a flow.
Save result asThe name of the variable you want to assign the result to
CodeThe code for processing the input.

Output

To reference the output of a function you can use the name of the variable you saved your result to. So if in your function step you saved the result as data you can reference this value returned from the function using {{session.data.output}}.