{{My variable}}
where “My variable” is the name of your variable.
{{={{My variable}}.toUpperCase()=}}
When you insert {{= ... =}}
, it means what’s inside will be evaluated as JavaScript. So you can use any JavaScript inline function inside. The behavior is similar to the custom value in the Set variable block.
If you would like to get the first item of a list:
{{={{My variable}}[0]=}}
or {{={{My variable}}.at(0)=}}
Likewise for last item:
{{={{My variable}}.at(-1)=}}
https://typebot.io/my-bot?Email=test@test.com&First%20name=John
(Note that spaces in variable names should be replaced by %20
)
Then the variables will be prefilled as following:
prefilledVariables
that contains a dictionary of your values. For example:
utm_source
parameter (in the case of a marketing campaign), or anything else.
You just have to make sure that the variables exist in the variables dropdown:
string
) or a list of texts (string[]
).
JSON.stringify
function to convert it into a text. And whenever you are using the variable, you can dynamically parse it back into an object using JSON.parse
in an inline format: