> For the complete documentation index, see [llms.txt](https://docs.chamilo.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chamilo.org/teacher-guide/teacher-guide/ai-tools/toolbox-ai.md). Agents can also search and read this documentation through its [MCP server](https://docs.chamilo.org/~gitbook/mcp).

# AI Toolbox

The **AI Toolbox** is a course tool that generates interactive educational applications from a teacher's instructions. Chamilo packages each generated application as **SCORM 1.2**, so learner progress, score and resume data are tracked by the platform.

> The administrator must enable both `ai_helpers.enable_ai_helpers` and `ai_helpers.toolbox` under **Administration > Configuration settings > AI Helpers**, and at least one text AI provider must be configured.

## Creating an Interactive Application

1. Open **AI Toolbox** in the course.
2. Click **Create**.
3. Enter a **Title** and, optionally, a **Description**.
4. In **What should the application do?**, describe the complete activity you want. Include the learning objective, rules, levels, scoring and what should happen when the learner finishes.
5. Choose the **AI provider** when more than one is available.
6. Click **Generate**.

The first generation is stored as **version 1**. It starts as a draft, so you can preview it before making it visible to learners.

## Improving and Versioning

Open an application's **Settings** to manage it. You can:

* preview or download the current application;
* use **Improve with AI** to describe a change and generate a new version;
* review the **Version history**;
* preview, download or restore an earlier version;
* publish or hide the application;
* open **Reporting** to review learner tracking.

Generating an improvement does not delete previous versions. Restoring an earlier version makes that version current again.

## Adding an application to a learning path

In the [Learning Paths builder](https://docs.chamilo.org/teacher-guide/teacher-guide/adding-content/learning-paths.md), teachers can select a generated AI Toolbox application as a resource. The application must have a generated version, but it does not need to be published before the teacher adds it to the learning path. An unpublished application is still not available for learners until it is published.

When an authorized teacher opens the Toolbox content in **Preview mode**, Chamilo displays **“Progress and score are not saved in preview mode.”** Testing the activity this way does not create learner tracking or update a score. Use the normal learner experience to verify SCORM progress and scores after publication.

## Generation validation and troubleshooting

After AI generation, Chamilo checks the generated application's source before making a version available. This includes JavaScript syntax or structure checks and restrictions on unsafe browser APIs. If validation fails, Chamilo asks the AI provider to **repair the result once**; if the repaired version still fails, generation stops with an error. A successful validation is not a substitute for testing the activity's learning rules, accessibility and SCORM scoring before publication.

If generation reports **HTTP 504**, the web server or gateway stopped waiting for the request. This is different from a timeout imposed by the AI text provider. The error can include the approximate elapsed time; try a simpler activity request and ask the administrator to check the gateway, PHP/web-server and provider timeouts. A provider timeout or rate-limit error requires checking the configured model and provider settings instead. Do not assume the application was saved successfully after an error.

These validation and diagnostic improvements were introduced in [PR #9198](https://github.com/chamilo/chamilo-lms/pull/9198).

## Learner Experience

Learners only see applications that have been published. From the Toolbox they can open an application, continue from their latest SCORM state, and see their **Progress** and **Score**. When a new attempt is allowed, **Try again** starts a fresh attempt.

Toolbox applications run inside the Learning Path runtime in a restricted iframe and report their SCORM state back to Chamilo. They are managed from the Toolbox rather than from the normal Learning Paths list.

Authorized MCP clients can also create or update Toolbox applications when the same AI Toolbox settings are enabled.
