Actions

Variables

All variables are pairs of curly braces, containing the keys for where to find the needed information.

Fallback/ Default Values

If the information you're trying to use isn't found, by default, it will appear blank.

Example: {{ not.a.real.value }} would output as "".

You can set a fallback value which will take the empty output's place by using a single |, followed by your value.

Example: {{ not.a.real.value | "demo fallback" }} would output as "demo fallback".

Using event data in actions

You might need to use information from the received events in actions.

For example could be the dollar amount donated, or number of gifted subs.

Image Example
Description

When inspecting at an event's data, the indexing begins within metadata. Examples To access root.data.metadata.id, you would write {{ id }} To access root.data.metadata.value, you would write {{ value }}

Using data from other actions

You can use values from other actions within your action output.

For example - showing the final shock intensity % for a device.

To do this, you'll need to use special formatting.

Image Example
Description

When trying to use an action's data in other actions, indexing begins under results. The preload_data is available for use. Examples To access the PiShock intensity %, you would write {{ pishock.main_op.intensity }} To access the PiShock duration, you would write {{ pishock.main_op.duration }}

Last updated

Was this helpful?