Reference action outputs, webhook payloads, secrets, and more.
Prefix | Expression syntax | Description |
---|---|---|
ACTIONS | ACTIONS.<action_slug>.result.<jsonpath> | Reference the result of an action |
TRIGGER | TRIGGER.<jsonpath> | Reference data passed via webhook or UI |
SECRETS | SECRETS.<name>.<key> | Reference a secret |
FN | FN.<fn_name>(<arg1>, <arg2>, ...) | Call an inline function |
${{ <context>.<expression> }}
syntax:
ACTIONS
contextACTIONS
and TRIGGER
expression contexts support JSONPath syntax.
If you are new to JSONPath or need a refresher, check out our JSONPath syntax cheatsheet.ACTIONS
context.
Actions are referenced by a sluggified version of their name.
Example
Rename action
core.http_request
action in Your first workflow from HTTP Request
to Get weather
.
You can rename the action under the General
section in the action inputs panel.Reference action output
Get weather
action’s output in the next action by using the ACTIONS.get_weather.result
expression.
For example, you can use the core.transform.reshape
action as a pass-through action to extract and organize the weather data.temp
and rain
outputs in downstream actions in the workflow using:TRIGGER
contextExecute child workflow
action.
Use the TRIGGER
context to reference the data from the trigger as a JSON object.
Manual trigger example
Send webhook
POST
request to the workflow’s webhook URL with the following payload:Reference webhook payload
lat
and long
values in an action’s inputs using the TRIGGER
context.Webhook example
{"data": {"name": "John", "age": 30}}
and trigger the workflow:John
:SECRETS
contextSECRETS
prefix:
+
, -
, *
, /
) on int
, float
, str
, datetime
, timedelta
, list
, and dict
data in actions.
Example
hello world
:Data Type | Behavior |
---|---|
int | Python int |
float | Python float |
str | Python str |
bool | Custom bool - true for any truthy value, 1 , or upper/lower case true |
Example
${{ "101" -> int }}
and ${{ int("101") }}
both return the integer object 101
.FN
contextFN
context.
Here are some examples of functions you can use with FN
:
Example alert
JSON as sample data.
Feel free to copy and paste this into your own workflow to follow along.Example alert