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:
- Access the interface n8n of yours.
- Go to menu Settings > Community Nodes.
- Select Install.
- Enter package name:
n8n-nodes-learndash - Press the button Install and wait for the process to complete.
- 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:
| Field | Description | Example | Important note |
| Base URL | Your website URL | https://hoceotot.com | DO NOT have a slash / at the end. |
| Username | Your WordPress login name | admin_user | The account must have LearnDash management permissions. |
| Password | String Application Password created in the step above | fQYq 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
| Resource | Function | Support 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
| Resource | Function | Operation (Action) |
| Groups (Groups) | Create and manage study groups. | List, Get, Create, Update, Delete |
| Course Users | Enroll students into the course. | Add, Remove |
| Group Users | Add/Remove students from group. | Add, Remove |
| Group Leaders | Manage group leaders (Leader) for each group. | Add, Remove |
| User Groups | View list of groups that a User is participating in. | List |
| Group Courses | Manage list of courses assigned to a group. | List |
| User Courses | Manage the list of courses for a specific User. | List |
📝 Assignments & Progress
| Resource | Function | Support 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 Progress | Track 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, OperationAddto 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$Listto 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 (
Assignmentcreated – need to use polling or webhook). - Action 1 (LearnDash Node):
Getassignment content. - Action 2 (OpenAI/Gemini): Send assignment content to AI for grading and feedback.
- Action 3 (LearnDash Node):
Updatethat assignment with statusApprovedand pointsPoints Awardedfrom 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,Orderare 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?
