AXL Knowledge Base

Variables in Automations

~5 min read Section: Automations

A variable is a placeholder that AXL automatically replaces with the data you choose. It can be the contact's name, email, account name, order number, webinar date, and so on. For example, add the variable "Contact first name" to the text of an email, and AXL replaces it with the recipient's name when it sends the email.

In a step's settings, you can add variables to the subject, subtitle, and body of an email. You can add variables to these actions: "Send Email", "Webhook", "Send Message (Chat/Email)", "Add Note", "Request Data", and "Notification".

To insert a variable, open the step's settings and click the variables button next to the field: Add Variables in messages and the email subject, Insert variable in the email body toolbar, Variables in Update Contact Attribute, Add Template Variables in Add Note. Click a variable in the list to insert it, for example #Contact.FirstName#. The placeholder stays in the text while you edit; AXL puts the value in when the step runs.

Important:

  • Insert variables from the list rather than typing them: a typo leaves the placeholder as plain text in the message.
  • If the data is missing, the variable is replaced with nothing. A contact without a first name gets "Hello, !" from Hello, #Contact.FirstName#!, so write texts that still read well without the value.
  • The list shows only the groups that make sense in this automation and after the steps connected before this one. For example, Order appears after an order trigger or a Create Order step. Connect the steps first, then open the list.

Contact Details Variables

The "Contact Details" list is always available. Select the variables you need and click a name to add it to the text.
The "Contact Details" list contains variables about the contact: email, first name, last name, phone number, birthday, custom attributes, and so on.

Add Variables panel with the search field and the Contact Details variables.

Account Details Variables

The "Account Details" list contains variables about your account: the account name and a personal link to the Membership Portal.

Add Variables panel listing contact and account values, including the invitation, unsubscribe and personal account links.

Chat Variables

The "Chat" list contains variables related to messengers: chat name, chat type (Telegram, Viber, and so on), user ID in the chat channel, and chat nickname.
If you don't specify channel_id, AXL uses the automation's chat channel, if there is one.

Add Variables panel with the Chat group: chat name, type, user ID and nickname placeholders that take a channel ID.

Order Variables

The "Order" variables appear in the list when you create a product automation and use triggers such as "Product Order Created" or "Product Purchased".

Order variables in the picker after a Create Order step: order ID, number, status, dates, amounts and payment link.

If you're creating a different type of automation (not a product automation), add the "Create Order" action in an earlier step. The variables for the user's order then appear in the list: number, status, order date, UTM parameters, order amount, payment link, and others.

End of the Order group in a global automation, followed by Functions, Chat, Automation Data and Global Variables.

Course Details Variables

If you're creating a course automation and an earlier step uses the "Course Started" or "Course Completed" trigger, the course details appear in the list of variables.
The "Course Details" list contains variables about the course the user can access: the course name and the course ID.

Course Details variables (#Course.Id#, #Course.Name#) in the picker opened from a course automation.

Webinar Variables

If you're creating a webinar automation, or an earlier step uses the "Register for Webinar" action, the webinar details appear in the list of variables.

The "Webinar" list contains variables about the webinar the user is registered for: the webinar name, date, and time, a personal sign-in link, the time until the webinar starts, and others.

Webinar variables in the picker: name, links, date, time, time zone, time to start, chat messages and minutes attended.

Function Variables

The "Functions" list is always available, for example when you configure a "Webhook" action.
The list contains these variables: New 36-character GUID, New 22-character GUID, UTC date, and Unix timestamp.

Functions group in the picker: new 36- and 22-character GUIDs, UTC date and Unix timestamp.

Form Data Variables

If an earlier step uses the "Form Submitted" trigger, the form data appears in the list of variables.
The list contains a variable for each form field, named after that field.

Form Data variables in the picker after a Form Submitted trigger: a field-name placeholder and the form page URL variables.

Deal Variables

If you're creating a deal automation, or an earlier step is a Deals action such as "Deals: Create or Update Deal", variables related to deals and pipelines appear in the list: deal amount, date created, pipeline stage, and pipeline.

Deals variables in the picker opened from a pipeline automation: amount, dates, stage, pipeline, ID, number, owner and participants.

Certificate Variables

If you're creating a certificate automation, or an earlier step uses the "Issue Certificate" action, variables related to certificates appear in the list: the certificate number and the certificate download link.

Certificate variables in the picker: #Cert.Number# and #Cert.Link#.

Global Variables

Global variables are values you create once and reuse across the platform. They are always available and can store data that you need in different automations, modules, lessons, or assignments.
To learn how to create and edit global variables, read "Account Settings".

Global Variables group at the end of the picker with #Global.support_email#.

Check the substituted value

Save the action after inserting variables. Run the intended path for a test contact with the required data, and inspect the resulting message or note. For an order, webinar or certificate variable, verify that the earlier connected event or action supplies that specific object; a visible placeholder is not a check that the value will be available in every branch.