Zapier

Zapier

Overview

Zapier is a popular, easy-to-use service that allows you to integrate over 1,500 different apps using a point-and-click interface, with no programming required. The MATRIX LMS app on Zapier allows you to integrate with 1,500+ apps by connecting your portal with over 1,500 APIs.

You can use this integration to do things like "when a user purchases a course via my third-party shopping cart, create them an account on MATRIX and enroll them into courses A, B, and C".

Configuration

To start using Zapier, install the app from Admin/ App center. Then click Configure to start setting up your options.

In the Admin/Zapier section, you can select which events should send data to Zapier by using the checkboxes.

To start creating zaps between MATRIX and Zapier, you need to have a Zapier account. Log into your Zapier account and visit the "Connected Accounts" sections.

Enter Cypher Learning in the search box then click on the search result.

A pop-up will open where you can enter your API Key, API Host and Portal ID. Enter the API Key, select "MATRIX LMS" in the API Host drop-down and enter your Portal's ID.

To find the API Key, log into your MATRIX portal and go to Admin / API. Please note that the API app in the App Center needs to be installed first.

Also note that MATRIX can invoke zaps on Zapier without an API key. The API key is necessary only when you need Zapier to invoke zaps on MATRIX.

If you haven't created an API key yet, click on "Add" in the top right, enter a name for the key and click "Save".

The key will be generated automatically and you can view it by clicking on the key name in the list. It is the alphanumerical code under "Secret key".

To find the Portal ID, navigate to Admin/Zapier. The Portal ID is listed under the Portal ID heading and is a numerical value.

After you've entered the API Key, API Host and Portal ID, click on "Yes, Continue".

Your account will be connected and you can start creating various zaps.

Triggers

Here are the triggers you can choose from:

  • Learner Unenrolled From Course: triggers when a learner is unenrolled from a course.
  • Learner Completed Course: triggers when a learner completes a course.
  • Learner Enrolled in Course: triggers when a learner enrolls in a course.
  • User Was Added to Portal: Triggers when a new user is added to the portal. Carries all the information related to the added user, including the User ID, which is needed in the Unenroll, Deactivate and Reactivate actions
  • Order Payment Was Made: triggers when the checkout process is completed. It will also trigger if there was a problem during checkout (or a cancellation) in the case of gateways with off-site processing, such as PayPal or PayUbiz. 
  • Subscription Payment Was Made: triggers when a subscription payment was made or was attempted. The first payment will always be made when a subscription is purchased and the checkout is successful. Afterward, payments will be made based on the subscription setup (yearly or monthly). 

Note that when setting triggers in Zapier there is a limit of 100 items you can load in a dynamic drop-down.

For example, if you want to select a course ID that is not present in the 100 results, click on “Use a Custom Value (advanced)“.

Then enter the course ID and click Continue.

You can find the course ID in the URL of the course.

Actions

Here are the actions you can choose from:

  • Add User, Then Enroll to Course (from Shopify): adds a user and enrolls them in the purchased courses when the "New Paid Order" Shopify trigger is set off. If a user with the same email address already exists, then they will just be enrolled in the specified courses.
  • Add User, Then Enroll to Course (General): Same as the above, but works with any trigger, needs explicit course IDs to be provided. If a user with the same email address already exists, then they will just be enrolled in the specified courses.
  • Add User: adds a user with the provided data. If a user with the same email address already exists, then an error message will be returned and no database changes will be made.
  • Unenroll User From Course: Unenrolls the learner from a course. Needs explicit Course ID and User ID to be provided.
  • Deactivate User: Deactivates the user from the portal. Needs an explicit User ID to be provided.
  • Reactivate User: Reactivates the previously deactivated user. Needs an explicit User ID to be provided.

Zapier widget

Administrators can add the Zapier widget to the admin dashboard. To add the widget go to the dashboard and click the "Edit widgets" button.

Then select "Center Panel" from the pop-up.

From the "Available widgets" area you can add the Zapier widget to the center panel using drag-and-drop, then click Save.

The widget shows the number of Zapier calls and the number of errors.

To learn more about dashboard widgets visit the Widgets topic.

Using actions

For the auto-enrolment to work, Zapier needs to know the course ID from the MATRIX database. There are some platform-specific configurations needed for storing the ID.

First of all, you have to know the course ID which you can find in the URL when accessing the course landing page.

For example, in “https://myschool.matrixlms.com/teacher_custom/show/26360”, the course ID is “26360” 

Shopify

We have configured the MATRIX Zapier app to look for the course ID in the SKU field of the product. When adding/editing a product you will see the SKU field, please enter the course ID there.

General

For connecting with eCommerce platforms other than Shopify, you can use our general action, together with Zapier's filtering functionality. When using our "Add User, Then Enroll to Course (General)" action, you have to choose the course ID where the new user will be enrolled. This means you have to create a new Zap for each course you are selling.

After setting up the eCommerce trigger, you will have to add a Filter which checks the existence of a unique identifier of the course (like the name, SKU, or some custom field), so this Zap only runs when that specific course is purchased.

Example: WooCommerce

Add a Zap, configure the WooCommerce trigger as usual (also adding a new Zapier Feed in the WooCommerce dashboard). Then click on the "+" icon right after the trigger, which will show this text on hover: Add a Filter or an Action. Click on "Filter".

 For the first dropdown select "Line Items", for the second one "(Text) Contains", then in the text field, please enter the unique identifier for the course, for example, the course name. Click continue and it will test the filter with the latest test data for this action. Please note that it's possible that the filter won't find the search text in this test because it uses standardized test information from Zapier.


    • Related Articles

    • MailChimp

      Overview The Mailchimp integration gives administrators an end-to-end email integration for email marketing and customized Learner email messages. Administrators can import Mailchimp contacts into the portal, and they can export user lists from their ...
    • Best practices for administrators

      Overview Here are some best practices that we recommend for administrators. Choose a short URL We recommend that you keep your URL short, ideally less than 10 characters long. For example, if your company is called "The Academy of Digital ...
    • Networks

      Overview You can organize businesses into a network, which is a great way for members of the businesses to collaborate, share resources, and teach/enroll in each other's courses. Each network has a description, one or more member businesses, one or ...
    • Passwords

      Overview For security reasons every user has a User ID (3+ characters) and a Password (5+ characters). They can log in with their credentials or they can use the available SSO options if it is enabled. Add password When users sign up and create ...
    • API

      Overview CYPHER Learning’s API allows you to integrate your learning platform with third party tools and systems that help elevate your user’s experience. The CYPHER API is the intermediary between the features of our LMS and your website or ...