Dynamic Inputs
All building block input fields accept dynamic inputs.
References to Variables and Tables
Example
"Hello {id: 123, name: Profile name}, I wanted to reach out because...."
Code in Inputs
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; }."
Spintax
Available in Update Data and Insert Text or Data blocks.
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