Skip to content
Docs

Workflows

Variables in text

Put a variable's value in a message, a question or any other text, with single curly brackets.

In anything your AI agent sends or builds as text, put the variable’s name in single curly brackets. It’s replaced with the value.

Thanks {full_name} – we'll email you at {email_address}.

Reach inside a value with a full stop or square brackets:

Your order {order.id} arrives on {order.delivery_date}.
Your first item is {order.items[0].name}.

A variable that doesn’t exist is replaced with nothing. But if part of it is missing – such as {order.id} when there’s no order – or the text has a mistake in it, the whole text is sent exactly as you wrote it, curly brackets and all. Use variables you know are set, such as in a Success branch.

Important: use single curly brackets – {name}, not {{name}}. Double brackets show the brackets themselves, so {{name}} sends {name}, not the name.

To show part of a message only sometimes, or repeat a line for each item in a list, see Logic in text.

Which fields are text

Send message messages and quick replies, Show carousel titles, subtitles and button values, Ask survey questions, Create ticket fields, the Send API URL and headers, the LLM Processing input and prompt, the Auto team match input, SQL Query bind values and Send graph titles and labels.

Curly brackets the person should see

Any word in single curly brackets is read as a variable. Use code {SAVE10} at checkout sends Use code at checkout, with a gap where the code was, because there’s no variable called SAVE10. To show the brackets, double them: Use code {{SAVE10}} at checkout sends Use code {SAVE10} at checkout.

Stuck? Ask Advisor in the Proto dashboard, or contact us.

© Proto