Run Script Block

Execute a Workflow Script from the Automations Canvas.

Overview

The Run Script block runs a Workflow Script file and maps its inputs and outputs to workflow variables. It acts as the connection point between a script written in the Script Editor and the broader workflow on the Automations Canvas.

See Workflow Scripts to get started.

Configuration

Source Code

Select the Workflow Script file you want to run from the dropdown. Source code that will be executed when the Agent runs.

Parameters

Input Variables

Map workflow variables to the script's input parameters. Each row shows the parameter name and the workflow variable to assign to it.

Field
Description

Parameter name

The input parameter defined in the script (e.g., topic)

Variable

The workflow variable whose value will be passed in (e.g., {{topic}})

circle-info

Assign values to the launch variables of the selected script.

Output Variables

Map the script's return values to workflow variables so they can be used by following blocks.

Field
Description

Return key

The key from the script's return object (e.g., summary)

Variable

The workflow variable to store the value in (e.g., {{summary}})

circle-info

Map the return values of the script to workflow variables.

Last updated