MooChat

Activities ::: mod_moochat
Maintained by Brian Pool
Create full-featured AI chat activities in your course. Display inline on course page or as separate activity. Includes avatars, rate limiting, and custom personalities. Uses Moodle's core AI - no external setup needed.
Latest release:
2 sites
12 downloads
1 fans
Current versions available: 1

MooChat Activity brings AI-powered conversations to the center of your course. Unlike sidebar blocks, this activity module provides a prominent, full-featured chat experience that can be displayed inline on the course page or as a dedicated activity.

Key Features:

  • Flexible Display Modes:
    • Inline: Chat appears directly on course page (like text/media areas)
    • Separate Page: Traditional activity that opens in its own view
  • Horizontal Layout: Professional side-by-side design with avatar/info on left, chat on right
  • Custom AI Personalities: Define unique system prompts tailored to your course content
  • Avatar Support: Upload custom images with adjustable sizing (48px to 128px)
  • Rate Limiting: Prevent AI resource abuse with configurable question limits per hour or day
  • Server-Side Tracking: Students cannot bypass limits by clearing chat history
  • Conversation Management: Students can clear chat display while server maintains usage tracking
  • Auto-Cleanup: Usage records automatically purge after 7 days

Display Options: Teachers choose how students interact:

  • Inline Mode: Chat embedded directly in course page - perfect for always-available assistance
  • Separate Page Mode: Traditional activity link - ideal for focused chat sessions

Technical Details:

  • Built for Moodle 4.0+ using core AI subsystem
  • No external dependencies, API keys, or third-party services required
  • Works with any Moodle-compatible AI provider (OpenAI, Azure, Anthropic, local Ollama, etc.)
  • Responsive design adapts to mobile and desktop
  • Fixed-height scrolling prevents page expansion
  • Efficient database design with automatic maintenance

Use Cases:

  • Main course AI assistant accessible throughout the course
  • Specialized tutoring for complex topics
  • Interactive simulations with historical/fictional characters
  • Language learning conversation partners
  • Study guide and exam preparation assistance
  • Project brainstorming and feedback

Activity Features:

  • Standard Moodle activity intro/description support
  • Appears in course activity chooser
  • Full capability/permission integration
  • Activity completion tracking ready
  • Works with all Moodle course formats

Requirements:

  • Moodle 4.0 or higher
  • Moodle core AI subsystem configured with at least one AI provider

Note: This is the activity module version of MooChat. A block version is also available separately for sidebar placement.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3

Contributors

Brian Pool (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments

Show comments
  • Plugins bot
    Fri, 31 Oct 2025, 4:40 AM
    Approval issue created: CONTRIB-10161
  • 我的蚂蚁
    Mon, 8 Dec 2025, 9:32 PM
    I'm sorry, is this chatbot activity unable to save, retrieve or delete chat history? Is it also unable to create new sessions? Or is it only suitable for temporary chats?
  • Brian Pool
    Thu, 11 Dec 2025, 12:08 AM
    This was specifically made for temporary chats. It does not save data from user chats at this point. I would appreciate your thoughts on how that would be used. I can certainly make changes to future versions. It is intended as a course tutor, allowing the loading of section materials to help students understand information and assignments within the course.
Please login to post comments