A typical flow is to enroll a user in a Strigo on-demand course when the user registers for a Skilljar course.
Strigo supports that in two ways:
Zapier - this is the straightforward way Skilljar offers, which Strigo also supports.
Webhooks - this will require you to program a little bit to trigger Strigo based on Skilljar webhooks.
Understanding the terms
Before we begin, it's best to understand the basic terms:
Skilljar has an enrollment for every user that registers to a course.
Strigo also has an enrollment for every on-demand course.
Strigo enrollments make sure that only a user that is enrolled to an on-demand course has access to the course.
We assume that every Skilljar course has a corresponding Strigo on-demand course.
The goal is to create a matching Strigo enrollment for every Skilljar enrollment.
The Zapier flow
Let's start with the Zapier approach.
Before we start with how to create the zap, here's an outline of the flow of the zap:
A zap is triggered when there's a new course enrollment in Skilljar.
The zap extracts the ID of the Skilljar course and the enrolled email.
The zap maps this Skilljar course ID to a corresponding Strigo course ID.
The zap triggers the Strigo API call to enroll the email in the matching Strigo course.
Step (3) is required because there has to be a place to map between every Skilljar course and its matching Strigo course.
This is how your eventual flow will look like:
How to create a Skilljar Enrollment -> Strigo Enrollment Zap
Prerequisites:
Make sure you have integrated Zapier into both a Skilljar account and a Strigo account.
Step 1: The Skilljar trigger
Step 2: Map Skilljar course IDs to Strigo course IDs
Add a new step of type "Code by Zapier":
In the "Event" field, select "Run Javascript":
In the "Action" section, fill in "skilljarCourseId" in the Input Data, and select "Course Id" in the row below:
In the "Code" section, insert the following code:
Notice you have to replace "SKILLJAR_COURSE_ID" with an actual ID of a Skilljar course and "STRIGO_COURSE_ID" with an actual ID of a Strigo course.
You will need a row of the type "if (inputData ..." for every Skilljar course you have.
Step 3: Create the Strigo action
Add a new step of type "Strigo".
In the "Event" section choose "Create On-Demand Enrollment":
For the "On-demand Course ID" field, select the "Run Javascript in Code by Zapier" option, where you find the "Strigo Course ID" property you had in the code section before:
In the "Email" field, select the "New Course Enrollment in Skilljar" option, where you will find the "User Email" property:
That's it
You can save your zap and test it.
Notice! Every time you have a new course, you will have to go back to this zap and edit step 2 - the Code by Zapier step - that maps between Skilljar and Strigo.
Creating enrollments without Zapier
For the second approach that does not require Zapier, please contact us.
It will require writing a small backend service that listens to Skilljar webhooks, is therefore triggered when a user registers to a Skilljar course, and then uses the Strigo API in order to enroll that user in the matching Strigo course.