Zapier - Can I get an email when new learners enrol in my course?
You can! While OpenLearning doesn't have the capacity to do this directly within the platform, it is achievable with an integration between OpenLearning's xAPI and Zapier.
Note: This will capture any enrolment or addition to the course including course admins, facilitators, assessors and learners.
xAPI statements in Openlearning
xAPI captures a range of data called statements, based on different types of activity within the course.
The following shows the types of xAPI statements that can be generated (you can find this in Course Setup > Advanced):
About Zapier
Zapier is a platform that enables a range of different apps and platforms to talk to each other via APIs.
Zapier is free for up to 5 zaps with 2 steps involved; beyond that, you need a paid account, which you can get here.
Integrating Zapier with OpenLearning
Step 1
First of all, you'll need to create an account on Zapier (it's free).
Step 2
Click the invite link here:
Note:
For more details on what this integration does, head over to our main Zapier article here: Zapier: Integrating with OpenLearning
Step 3
Scroll down to the bottom of the page and click Accept Invite & Build a Zap.
Generate API Key
In order to use the integration, you will need to get an API Key from OpenLearning. The steps to generate the key has been updated recently, as per the below:
Step 1
To generate the API Key, open a new tab and login into your OpenLearning account, and head over to your Account Settings page.
Step 2
Scroll down to the API Keys section and click on Generate API Key.
Step 3
Enter your API Key description and click on Generate API Key.
Step 4
You'll be prompted to enter your Openlearning password again for confirmation purposes. Enter it and click Continue.
Step 5
You'll then receive your API key. Copy and save the key as you need to use this later.
Note: Do not show or share this with anyone.
Set up the trigger event in Zapier
Step 1
Now that you've enabled OpenLearning within Zapier, click on Make a Zap button on the Navigation bar.
Step 2
Type in OpenLearning in the Trigger search box and select it from the dropdown. Make sure you select OpenLearning 1.0.5 (at the time of writing this is the latest version of the zap we have. This might change but the steps are still the same).
Step 3
Click the dropdown and select Trigger Event to be Enrolment and click Continue.
Step 4
Click the dropdown and select + Connect a new account
Step 5
A pop-up window requesting permission and API Key will appear as below.
Copy and paste the Openlearning API key that you generated earlier from the Account Settings page and click Yes, Continue.
Step 6
You should now see your OpenLearning account listed in Zapier trigger section. Click Continue.
Step 7
Copy and paste your course URL and click Continue.
Step 8
Click Test Trigger to confirm the trigger is set up correctly. Click Continue once the test is completed.
Set up the trigger action in Zapier
Step 1
Type in email in the Action search box and select Email by Zapier from the dropdown.
Step 2
Select Send Outbound Email and click on Continue.
Step 3
This is the email you'll receive when a new learner enrols in your course.
Fill in all of the necessary fields for your email or grab existing data for that section.
- To: The email address you want to be notified about the enrolment
- Subject: This is the email subject. We recommend:
{{1. Actor Name: Example Name}} has enrolled in your course - Body: This is the content of your email. We recommend:
Great news! {{1. Actor Name: Example Name}} has enrolled in your course: {{Course Title}}
Click Continue.
Step 4
Select Test & Review or Test and Continue. You should now receive a test email to the "To" email address you added above.
Step 5
If the test is successful, you will receive the confirmation below. Click on Turn on Zap.
Step 6
Test out your zap!
Go to Administer Learners > Learners in your course, and invite someone to the course. (You can always create a test account to invite).
Note: This will capture any enrolment or addition to the course including course admins, facilitators, assessors, and learners
You should receive an email like this: