socialmasla-moodle

n8n community node for Moodle student management

Package Information

Downloads: 165 weekly / 165 monthly
Latest Version: 0.1.1
Author: Social Masla

Documentation

n8n-nodes-socialmasla-moodle

This is an n8n community node. It lets you automate interactions with Moodle's native Web Services API in your n8n workflows.

Moodle is the world's most popular open-source learning management system. This node allows you to automate student onboarding, course enrollments, and user management directly from webhooks or other integrations (e.g. Stripe, Razorpay).

n8n is a fair-code licensed workflow automation tool.

Installation

Community Nodes Panel (Recommended)

  1. Open your n8n UI and click Settings.
  2. Click Community Nodes.
  3. Select Install.
  4. Enter n8n-nodes-socialmasla-moodle and click Install.

CLI Installation

If you self-host n8n using npm or Docker, run the following in your n8n custom nodes directory:

npm install n8n-nodes-socialmasla-moodle

Operations

Currently, this node supports the core operations necessary for automated student funneling:

  • User
    • Create User (Creates a generic student account in the Moodle database). Maps directly to core_user_create_users.
  • Course
    • Enroll User (Unlocks a specific course for a given Moodle User ID). Maps directly to enrol_manual_enrol_users.

Credentials

To use this node, you must configure your Moodle VPS to accept REST Web Services.

  1. In Moodle, go to Site Administration > Advanced Features and enable Web Services.
  2. Go to Server > Web services > Manage protocols and enable REST.
  3. Create a Custom Service, add the required functions (core_user_create_users, enrol_manual_enrol_users), and mark it as 'Authorized users only'.
  4. Go to Manage tokens and generate a token for an admin user.
  5. In n8n, input your Site URL (e.g., https://learn.socialmasla.com) and the generated Web Services Token.

License

MIT

Discussion