Miguël Dhyne
Lead maintainer
```
Mistral Agent is a Moodle block plugin that integrates a conversational AI assistant powered by Mistral AI directly into a Moodle course. It allows students to interact with an AI agent from the course page, while teachers can configure the assistant, manage reference documents, review conversations and control usage quotas.
Mistral-Retention: none header, and the plugin implements the Moodle Privacy API.Mistral Agent can be used to provide course-specific support, answer questions about uploaded learning materials, guide students through activities, analyse documents, support revision, and offer an interactive AI assistant adapted to the teacher’s pedagogical context.
| Format | Use |
|---|---|
.txt |
Plain text extraction |
.json / .jsonl |
Structured content extraction |
.docx |
Text extraction from Word documents |
.pdf |
OCR or fallback text extraction |
.jpg, .png, .gif, .webp |
Image analysis through the configured vision model |
curl, json, mbstring, zipThe plugin stores conversation messages, quota counters and encrypted teacher API keys when personal keys are used. Document content and chat messages may be sent to the Mistral AI API for processing. Institutions should ensure that their data processing agreements cover this usage.
Note for Moodle 5.X users on shared hosting: if the plugin install fails with "rename(...): No such file or directory" warnings pointing at /tmp/requestdir/..., add the following line to your config.php before the require_once(__DIR__.'/lib/setup.php'); call, then retry:
$CFG->localrequestdir = $CFG->dataroot . '/requestdir';
This forces Moodle to stage plugin uploads on the same filesystem as the final destination, avoiding cross-filesystem rename() failures that Moodle 5.x is more sensitive to than 4.x..