A chatbot inside Moodle lets students ask questions about the course they are in, at any time, without leaving the page. This guide covers your options and walks through a setup with a chat assistant plugin.

Option 1: Moodle's built-in AI actions

Since Moodle 4.5, admins can connect an AI provider and enable placements such as "Summarise text" and "Explain text" for course content, or "Generate text" and "Generate image" in the editor (AI placements). These are useful, but they are actions on content rather than an ongoing conversation. The documentation we checked does not describe a student chatbot. If summarise and explain are enough, start there: see built-in AI vs AI plugins.

Option 2: a chat assistant plugin

For a real chat panel, you need a plugin. The steps below use our Magic AI Assistant; other plugins will differ, so read their documentation.

What you need

  • Admin access to your Moodle site (and a copy of it for testing).
  • An OpenAI API key. Magic AI Assistant requires your own key; OpenAI API usage is separate from the plugin license.
  • The plugin ZIP from your purchase email. Compatible with Moodle 3.x – 5.x. Please confirm your exact Moodle version with support before purchase.

Step 1: install the plugin

Upload the ZIP under Site administration > Plugins > Install plugins and follow the prompts, or unzip it into the correct folder and visit Site administration > Notifications (Installing plugins). Do this on a test site first.

Step 2: add your license key and OpenAI key

Open the plugin's settings page and paste the license key from your purchase and your OpenAI API key.

Magic AI Assistant plugin settings in Moodle with license key and OpenAI API key fields
The plugin settings: license key, OpenAI key and student assistant options.

Step 3: choose models and context

In the Student AI Assistant settings you choose which models students can use ("Fastest", "Balanced" and "High Quality" in the settings shown below), whether the chatbot reads the full content of the current lesson, and how much of the conversation history it considers. The settings page itself warns that including full lessons and full chat history can significantly increase token usage, so start with the defaults and measure.

Magic AI Assistant admin settings for AI models, lesson context and chat history
Model choice, lesson context and chat history settings.

Step 4: match your branding

Set a brand colour (the text colour can be picked automatically or set manually) and upload a chatbot avatar.

Magic AI Assistant branding settings with an orange brand colour and custom avatar beside the matching chat window
Branding settings and the resulting chat window.

Step 5: pilot it

  1. Start with one course and test it yourself as a student.
  2. Ask the questions your students actually ask, and check the answers.
  3. Watch your OpenAI usage for a week before rolling out further.

Policy and privacy checklist

  • Tell students what the chatbot is for and that its answers can be wrong.
  • Review your Moodle configuration and the provider's terms before enabling AI features or submitting learner information.
  • Decide who monitors API costs and who answers questions about the tool.