Moodle Web Services (REST) Skill for Openclaw

A powerful automation bridge for Moodle 4.x that allows AI agents to manage courses, enrollments, and student communications via REST APIs.

exeandino
v1.3.1
Mar 21, 2026
0
762
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install moodle-ws

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install moodle-ws using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Moodle Web Services (REST) Skill?

The Moodle Web Services skill empowers your AI agent to act as a virtual registrar and LMS administrator. By leveraging the Moodle REST API, this skill enables programmatic interaction with Moodle 4.x environments, allowing for the automated creation of educational content and management of user lifecycles. It is a vital addition to the library of Openclaw Skills for developers looking to bridge the gap between AI reasoning and Learning Management Systems.

Built with security and efficiency in mind, it provides a structured way to handle complex LMS tasks through simple natural language commands. Whether you are scaling an online academy or managing a corporate training portal, this skill streamlines the administrative overhead significantly.

Moodle Web Services (REST) Skill Use Cases

  • Automated creation of new academic courses based on syllabus drafts.
  • Bulk enrollment or unenrollment of students using email identifiers.
  • Direct messaging to specific course cohorts for announcements or reminders.
  • Automated grading and gradebook updates for assignments and quizzes.
  • Real-time retrieval of student lists and course participation data.

How Moodle Web Services (REST) Skill Works

  1. The AI agent receives a natural language command related to Moodle administration.
  2. The skill retrieves the base URL and secure REST token from the local secrets directory.
  3. A specific Moodle Web Service function (e.g., core_course_create_courses) is mapped to the user's intent.
  4. The skill executes a REST API call to the Moodle instance with the required parameters.
  5. The agent confirms the success of the operation or displays the requested data to the user.

Moodle Web Services (REST) Skill Setup

First, ensure you have a Moodle 4.x instance with Web Services enabled and a valid token generated. Then, configure your local environment:

# Create the secrets directory if it doesn't exist
mkdir -p ~/.openclaw/workspace/secrets/

# Create the configuration file
cat <<EOF > ~/.openclaw/workspace/secrets/moodle-ws.json
{
  "moodle_url": "https://your-moodle-link.com",
  "wstoken": "your_secret_token_here"
}
EOF

Ensure your Moodle token has permissions for the core_user, core_course, and enrol manual functions.

Moodle Web Services (REST) Skill Data Schema & Taxonomy

The skill utilizes a localized JSON schema to manage credentials and interacts with Moodle's standardized REST responses.

Data Object Source/Location Purpose
moodle-ws.json ~/.openclaw/workspace/secrets/ Stores the API endpoint and authentication token.
core_user Moodle API Handles user retrieval and identification via email/ID.
core_course Moodle API Manages course creation, listing, and metadata.
mod_assign/quiz Moodle API Interface for activity instances and grade pushes.

Moodle Web Services (REST) Skill Advanced Features

  • Multi-function chaining: Create a course and enroll a list of users in a single logical workflow.
  • Gradebook Synchronization: Support for updating grades for quizzes and assignments remotely.
  • Instant Messaging: Programmatic access to the core message system for real-time student alerts.
  • Secure Credential Masking: Token data is never exposed in the chat interface, following the security protocols of Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*