LifterLMS Automations
Send an Email When a Student Fails a LifterLMS Quiz
A failed quiz can be a useful intervention point. Instead of waiting for a student to disengage, send guidance, a study resource, or a reminder to try again as soon as the attempt is recorded. Zapify does this with A user completes a quiz and Result = Failed.
What this automation does
The automation is one trigger plus one action:
- Trigger: A user completes a quiz (
LIFTERLMS_QUIZ_COMPLETED) with Result = Failed - Action: Send an email (
WP_SEND_EMAIL)
The same quiz trigger can handle all outcomes. Selecting Failed filters the automation so passing attempts do not send this message.
Before you start
- LifterLMS must be installed and active.
- Zapify PRO must be active, since LifterLMS is a PRO integration.
- The quiz must already exist and have a passing requirement so LifterLMS can determine the outcome.
PRO feature
LifterLMS (lifterlms) is a Zapify PRO integration. The LifterLMS trigger and action used in this automation require an active PRO licence.
How to build the automation
Step 1: Create a new automation
- In the WordPress admin, go to Zapify → Automations.
- Click Add New to open the builder.
- Give the automation a clear name, such as Help students after a failed quiz.

Step 2: Add the "A user completes a quiz" trigger
- Click Add Trigger.

- Choose LifterLMS as the app.

- Select the trigger A user completes a quiz.


- Configure the trigger:
| Field | Required | What it does |
|---|---|---|
| Quiz | Yes | Select the quiz to monitor, or choose Any quiz. |
| Result | Yes | Select Failed so only failed attempts trigger the automation. |
You can select a specific quiz for targeted remediation or Any quiz for a site-wide failed-quiz follow-up.
Step 3: Add the "Send an email" action
- Click Add Action.

- Choose WordPress as the app.

- Select the action Send an email.

Step 4: Configure the email

For example:
- To: the student
- Subject:
Let's keep going with {{trigger:QUIZ_TITLE}} - Body:
Your latest result for {{trigger:QUIZ_TITLE}} was {{trigger:RESULT}}. Your grade was {{trigger:GRADE}}%. Review the lesson material and try again when you are ready. - Format: HTML or Plain text
Keep the message supportive and point the student toward the relevant lesson or study material.


Step 5: Set the steps Live and save
- Set both the trigger and the action to Live.
- Click Save.

Quiz tokens you can use
| Token | What it holds |
|---|---|
| Quiz ID | The numeric ID of the quiz. |
| Quiz title | The quiz name. |
| Quiz URL | The quiz permalink. |
| Passed | false for a failed attempt. |
| Result | The human-readable result. |
| Grade percentage | The student's grade percentage. |
| Attempt ID | The LifterLMS attempt ID. |
| Lesson ID | The lesson containing the quiz, when available. |
How to test it
- Log in as a test student.
- Take the selected quiz.
- Submit an attempt that does not meet the passing requirement.
- Check the student's inbox.
- If nothing is sent, open Zapify → Logs and verify that the attempt was classified as Failed.
Conclusion
A failed quiz does not have to be the end of the learning flow. Use this automation to send revision material, a retry reminder, instructor contact details, or other helpful guidance immediately after a failed attempt.
FAQs
Will a passed quiz trigger this automation?
No. With Result = Failed, only failed attempts match.
Can I use the student's grade in the message?
Yes. Use the Grade percentage token.
Can I create both pass and fail emails?
Yes. Create two automations using the same quiz trigger: one with Result = Passed and another with Result = Failed.
Is there a separate “quiz failed” trigger?
No. The implementation uses one quiz-completion trigger and filters it using the Result field.
Do I need to write any code?
No. Everything is configured in the Zapify visual builder.