Moodle AI Chat
An accelerator for deploying an AI Agent on Moodle, powered by Azure OpenAI and a full RAG (Retrieval-Augmented Generation) pipeline over course content.
Get started View on GitHub Download latest release
What is it?
Moodle AI Chat is a production-oriented starting point for integrating an AI-powered course assistant into any Moodle instance. Instead of wiring up the Moodle integration from scratch, teams can focus on customizing the agent’s behavior, knowledge, and UX.
It ships as two Moodle plugins:
local_aichat— core plugin with the chatbot widget, Azure OpenAI client, RAG pipeline, dashboards, privacy provider and web services.theme_myuni— lightweight Boost-based theme you can re-brand to match your institution.
Highlights
- 💬 Floating chatbot on every course page with streaming responses (SSE), Markdown rendering, voice input and file upload.
- 🧠 RAG pipeline over 12+ activity types (Page, Book, Glossary, Forum, Quiz, Wiki, Assignment, Lesson, Label, Choice, URL, Resource) with embedding-based retrieval and daily re-index.
- 📊 Teacher & admin dashboards with per-course analytics, token usage, feedback and a conversation log viewer.
- 🔐 Security-first: input sanitization with prompt-injection detection, output HTML allowlist, rate limiting, circuit breaker, GDPR provider.
- 🐳 Docker-ready local environment and build scripts that produce Moodle-installable ZIPs.
Where to next?
| Guide | For whom |
|---|---|
| Features & Configuration | Complete list of all features and every configuration setting |
| Admin Guide | Install, configure and monitor the plugin |
| User Guide | End-user walkthrough of the chatbot |
| Developer Guide | Extend the plugin, add RAG types / services / tasks |
| Architecture | Component & data-flow diagrams |
| API Reference | Web service endpoints and payloads |
| Security | Threat model and defense-in-depth overview |
License
Released under the MIT License.