moodle-ai-integration

Integrate AI features into Moodle 4.5+ with custom Actions, Providers, and Placements.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/astoeffer/plugin-marketplace --skill moodle-ai-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moodle-ai-integration
Source: https://github.com/astoeffer/plugin-marketplace/tree/main/plugins/moodle-dev-pro/skills/moodle-ai-integration
Command: npx skills add https://github.com/astoeffer/plugin-marketplace --skill moodle-ai-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Integrates with Moodle's AI Subsystem (4.5+) to create custom Actions, Providers, and Placements for AI-powered features.

Core Features & Use Cases

  • Custom AI Actions: Persist prompts and results via AI actions.
  • Providers & Responses: Wire providers and response types into Moodle workflows.
  • Policy & Logging: Ensure user policy checks and logging for AI usage.

Quick Start

Create a custom Action class, a Response class, and use the AI manager to process actions as demonstrated.

Frequently Asked Questions about moodle-ai-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate AI features into Moodle 4.5+?

Integrate AI features into Moodle 4.5+ by creating custom Action and Response classes, then use the AI manager to process actions with policy checks and database logging. This connects your prompts and AI service calls directly into Moodle's AI subsystem.

What are Moodle Actions, Providers, and Placements in the AI subsystem?

Actions persist prompts and results, Providers wire AI capabilities into workflows, and Placements define where AI features appear in Moodle. Together they form the functional components required to build AI-powered features within Moodle's framework.

Do I need to implement policy checks before using AI actions in Moodle?

Yes, policy checks are required before AI action use. You must implement policy status validation and logging via AJAX webservices and a database table to ensure compliance and track AI usage across your Moodle environment.

How do I create a custom Action class for Moodle AI?

Create a custom Action class with a store() method to persist prompts and results. Pair it with a Response class that implements set_response_data(), then register both with the AI manager to handle external AI service calls.

What's required to log and track AI action usage in Moodle?

Set up a database table for action records and implement AJAX webservices for policy status queries. This enables you to persist action history, enforce policy compliance, and audit AI feature usage across your Moodle instance.