LearnDash LMS Integration Guide with n8n

Hello everyone, this is a detailed guide on how to use the node n8n-nodes-learndash to automate your LearnDash E-learning system through n8n.

Introduction to n8n-nodes-learndash

n8n-nodes-learndash is a community node for n8n. It allows you to connect and manipulate all data from LearnDash LMS through REST API v2.

Main operations:

  • Automatically create courses.
  • Manage students (enroll/unenroll).
  • Grade assignments (Assignments).
  • Track learning progress.

1. Installation

The simplest way to install this node is through the Community Nodes feature of n8n:

  1. Access the interface n8n of yours.
  2. Go to menu Settings > Community Nodes.
  3. Select Install.
  4. Enter package name: n8n-nodes-learndash
  5. Press the button Install and wait for the process to complete.
  6. Restart n8n after installation is complete (if needed).

2. Connection Configuration (Credentials)

To allow n8n to securely connect to your WordPress/LearnDash website, we will use Application Passwords:

1. On WordPress/LearnDash Website

Use the feature Application Passwords of WordPress to create a separate access key for n8n.

  • Go to admin page Users > Profile of the Admin account (or user with LearnDash management permissions).
  • Scroll down to the section Application Passwords.
  • Enter a name (e.g., “n8n”) and click Add New Application Password.
  • Save the generated password string (this string is only displayed once).

2. In n8n

  • Add a node LearnDash into workflow.
  • In the section Credential, select Create New.
  • Fill in the information:
FieldDescriptionExampleImportant note
Base URLYour website URLhttps://hoceotot.comDO NOT have a slash / at the end.
UsernameYour WordPress login nameadmin_userThe account must have LearnDash management permissions.
PasswordString Application Password created in the step abovefQYq 65iO j8fR k0aQ c9bD ...DO NOT use the regular login password.

3. Supported Features (Resources)

This node fully supports the important LearnDash resources (Resources):

🎓 Learning Content Management

ResourceFunctionSupport Operations
Courses (Courses)List, View, Create new, Update, Delete.List, Get, Create, Update, Delete
Lessons (Lessons)Manage lessons in the course.Similar to Courses
Topics (Topics)Manage subtopics in the lesson.Similar to Courses
Quizzes (Quizzes)Manage quizzes.Similar to Courses
Questions (Questions)Manage question bank.Full support for all question types (Single, Multiple choice, Essay, etc.).

👥 User & Group Management

ResourceFunctionOperation (Action)
Groups (Groups)Create and manage study groups.List, Get, Create, Update, Delete
Course UsersEnroll students into the course.Add, Remove
Group UsersAdd/Remove students from group.Add, Remove
Group LeadersManage group leaders (Leader) for each group.Add, Remove
User GroupsView list of groups that a User is participating in.List
Group CoursesManage list of courses assigned to a group.List
User CoursesManage the list of courses for a specific User.List

📝 Assignments & Progress

ResourceFunctionSupport Operations
Assignments (Major Assignments)Manage submitted assignments, grading (Approve/Not Approve), add bonus points.List, Get, Update
Essays (Essays)Manage students' essays, grading status.List, Get, Update
User Course ProgressTrack learning progress details of each student in each course.List

4. Usage Examples (Use Cases)

Below are practical automation scenarios you can implement:

Scenario 1: Auto-enroll on successful payment

  • Trigger: Webhook from payment gateway (Stripe/PayPal/Woocommerce).
  • Action (LearnDash Node): Use Resource Course Users, Operation Add to add the customer's email to the corresponding course.

Scenario 2: Weekly learning progress report

  • Trigger: Schedule (Every Monday weekly).
  • Action 1 (LearnDash Node): Use User Course Progress $\rightarrow$ List to retrieve detailed learning data.
  • Action 2 (Google Sheets): Write data to spreadsheet for tracking.
  • Action 3 (Email/Slack): Send summary report to management.

Scenario 3: Auto-grade assignments with AI

  • Trigger: When there is a new assignment (Assignment created – need to use polling or webhook).
  • Action 1 (LearnDash Node): Get assignment content.
  • Action 2 (OpenAI/Gemini): Send assignment content to AI for grading and feedback.
  • Action 3 (LearnDash Node): Update that assignment with status Approved and points Points Awarded from AI.

5. Notes & Tips

  • Upload Image: When uploading avatar image (Featured Image), the node supports direct input Image URL. The system will automatically download and upload to WordPress Media library.
  • Intuitive interface: Important data fields such as Status, Slug, Order are available as dropdowns or input fields in the node interface, so you don't need to remember field names in the JSON API.

This documentation is compiled for version n8n-nodes-learndash 1.3.0

Wishing you success with your E-learning project and more efficient automation!

Would you like me to create a sample n8n script for one of the usage examples above?

DPS.MEDIA