AFI AFI

Sensei LMS

Estimated reading: 2 minutes Updated August 1, 2026

Sensei LMS is the open-source LMS plugin from Automattic (the WordPress.com team). Advanced Form Integration captures Sensei LMS events (student enrollments, lesson completions, course completions, quiz attempts) and routes the data to any of 200+ destinations.

What you’ll need

  • The Sensei LMS plugin installed and activated.
  • At least one course with content published.
  • The Advanced Form Integration plugin installed and activated.

Event data captured

Field Format
Event type course_started, course_completed, lesson_completed, quiz_passed, quiz_graded
Student name First and last separately
Student email Same as input
Student ID Numeric WordPress user ID
Course title The course name
Course ID Numeric Sensei course ID
Lesson title If applicable
Quiz score Numeric, percentage
Quiz pass mark Numeric, the passing threshold
Completion date YYYY-MM-DD HH:MM:SS

Create the integration

  1. Go to WP Admin → AFI → Add New.
  2. Enter an Integration Title.
  3. In Trigger → Form/Data Provider, select Sensei LMS.
  4. In Form/Task Name, choose the event.
  5. In Action → Platform, pick the destination and complete the field mapping.
  6. Optional: configure Conditional Logic.
  7. Click Save Integration.

Screenshot: AFI Add New screen with Sensei LMS selected and the available LMS events

Conditional logic example

Goal: when a student fails the same quiz with a score below 50%, ping the instructor’s Slack DM for outreach.

Create a Slack integration on the Quiz Graded event. Open the Conditional Logic panel, add a condition with the quiz score field, Less Than, value 50.

Troubleshooting

Course-completion event timing

Sensei LMS fires course-completed when all required lessons and quizzes in the course are marked complete. Students who skip the final quiz won’t trigger completion.

Related docs