Dynamic Inputs
References to Variables and Tables
Code in Inputs
Spintax
Last updated
All building block input fields accept dynamic inputs.
Example
"Hello {id: 123, name: "Profile name"}, I wanted to reach out because...."
Code in inputs is available when using Desktop Agent version 1.1.72 and higher
Use ${...} for an expression and $${...} for a code block. Expressions insert the result of the expression. Code blocks run full code and must return a value to insert.
Examples
Using ${...} (expression)
"This is my secret password stored locally: ${await zw.deviceStorage.get("password")}"
Using $${...} (code block)
"This is my more elaborate input: $${
import axios from "axios"; // any import auto-installs locally
const res = await axios.get("https://mydomain.com/my/api/url");
return res.data;
}."
Helps vary content on sites with anti-spam measures that check message or email uniqueness.
Example
"{ Hi | Hey | Howdy }! How { are you | are things going }?"
Last updated