Use course variables in Automation

Variables in Automation give you access to course and student data in automated flows. You can use them in messages, conditions, and integrations to personalize communication with your students.

Let's talk about how to use course variables in automated flows.

To use course variables, your flow must start with a course trigger.

Basics

When a course trigger fires, SendPulse passes variables from your system course emails into the flow. These variables become contact attributes within the flow and appear on the variable list after a contact enters your flow at least once.

Variable names use Latin characters and camelCase, such as firstName or courseName. The list of available variables varies depending on the trigger. The domainLink and courseUrl variables both point to the student account and have the same meaning.

Available variables

Most course triggers share the following variables:

firstName Student's first name
lastName Student's last name
email Student's email address
phone Student's phone number
courseName Course name
courseId Course ID
studentId Student ID
studentUuid Unique student identifier
studentLanguage Student's interface language
domainLink Student's account link

Depending on the trigger, other variables are available:

Receive the students' payment Passes course payment data.
Available variables:
paymentPrice — payment amount.
paymentCurrency — payment currency.
totalPayment — total payment amount.
currency — currency.
Complete course Passes course completion outcomes using the status variable.
Complete lesson Passes data about completed lessons.
Available variables:
lessonId — lesson ID.
lessonName — lesson name.
courseUrl — student account link.
status — lesson completion status.
Add new lesson to course Passes data about new lessons.
Available variables:
lessonId — lesson ID.
lessonName — lesson name.
lessonStatus — lesson status.
courseUrl — student account link.
Limit course access time Passes course access data.
Available variables:
courseAvailableDate — course access expiration date.
courseUrl — student account link.

The Add student and Grant course certificate flow triggers use only the shared variables.

In text elements

Add variables to emails and messages using the Email, SMS, Viber, Push, or Messaging app elements. In an input field, click the variable icon and select one from the list.

To give you an idea, in a post-payment email, use {{firstName}}, {{courseName}}, {{paymentPrice}}, and {{paymentCurrency}} to send a personalized and accurate confirmation.

In other elements

You can also use course variables in other elements:

Filter Check a variable's value to branch your flow. For example, use paymentPrice to offer a bonus when the payment amount exceeds a certain value.
Action Insert variables into actions. For example, add them to task names or internal notifications sent through the Send email to my address action.
Send webhook Pass variable values to an external tool for analytics or integrations.
Rate this article about "Use course variables in Automation"

User Rating: 4 / 5 (4)

Next

Manage student data or send a message triggered by a course event

Popular in Our Blog

Try SendPulse email service for free