Skip to content
Docs

Workflows

System variables

The values Proto fills in for every message – the person, the chat, your AI agent and the channel.

Proto fills these in for every message. Their names start with _, so they never clash with yours.

VariableWhat it holds
_user_inputThe person’s latest message – text, or the file they sent
_user_input_filesThe files in the person’s latest message
_langThe chat’s language, such as en
_customerThe person: name, email, phone_number, location, tags and custom_fields, by field name
_chatThis chat: id, custom_fields by field name, and who closed it – is_closed_by_chatbot, is_closed_by_agent and is_closed_by_user
_chatbotYour AI agent: id and name
_channelThe channel: id and type
_extraValues your website passed in – see Values from your website
_new_ticketThe ticket from the last Create ticket

For example: Hi {_customer.name} or _customer.custom_fields.Plan == "Gold".

custom_fields only holds fields that have a value. For a field name with spaces, which needs square brackets, check it’s there first: "Plan type" in _customer.custom_fields and _customer.custom_fields["Plan type"] == "Gold".

Some actions also leave details in a system variable when something goes wrong – such as _json_api_error for Send API. Each action’s page lists them.

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

© Proto