Moodle Plugins directory: Datacurso AI Provider: Versions: 2.0.1 | Moodle.org
Datacurso AI Provider
Datacurso AI Provider 2.0.1
Datacurso AI Provider for Moodle
The Datacurso AI Provider is the core engine that connects Moodle with the Datacurso AI services — unlocking a full ecosystem of smart, AI-powered plugins designed to revolutionize online learning.
This provider serves as the central bridge that powers every Datacurso AI extension, enabling a new generation of intelligent features for teachers, students, and administrators.
In addition, the Datacurso AI Provider includes built-in capabilities to display detailed AI credit usage reports directly within Moodle.
Administrators can easily monitor and manage AI service consumption through visual dashboards showing:
- Number of credits consumed per month
- Available credits
- Total credits consumed
- Credit distribution by service
- Daily credit usage trends
The Datacurso AI Plugin Suite
Transform Moodle into a smarter, faster, and more engaging learning platform with the Datacurso AI Plugin Suite — a collection of next-generation tools that bring artificial intelligence directly into your LMS.
All plugins in this suite are powered by the Datacurso AI Provider.
Explore the Suite
Ranking Activities AI Empower students to rate course activities while AI analyzes feedback and provides deep insights to educators.
Forum AI
Introduce an AI assistant into your forums that contributes to discussions and keeps engagement alive.Assign AI
Let AI review student submissions, suggest feedback, and support teachers in the grading process.Share Certificate AI
Celebrate achievements automatically! AI generates personalized social media posts when students earn certificates.Student Life Story AI
Gain a complete view of student performance with AI-generated summaries across all enrolled courses.Course Creation AI
Build full Moodle courses in minutes — complete with lessons, activities, and resources — guided by AI.
Powering Moodle’s Built-In AI Features
Beyond the Datacurso suite, the AI Provider also enables Moodle’s native AI features, enhancing creativity and productivity across your entire platform:
- Generate Text – Create meaningful content from any prompt.
- Generate Image – Produce original images from text descriptions.
- Summarize Text – Quickly generate concise summaries from course content.
Pre-requisites
- Tener minimo la version 4.5 de moodle
- Adquirir un paquete de creditos de AI desde el shop de DataCurso y crear una llave de licencia tal como se indica en la seccion Obtener llaves de licencia
Installing via uploaded ZIP file
- Log in to your Moodle site as an admin and go to
Site administration > Plugins > Install plugins. - Upload the ZIP file with the plugin code. You should only be prompted to add extra details if your plugin type is not automatically detected.
- Check the plugin validation report and finish the installation.
Installing manually
The plugin can be also installed by putting the contents of this directory to
{your/moodle/dirroot}/ai/provider/datacurso
Afterwards, log in to your Moodle site as an admin and go to Site administration > Notifications to complete the installation.
Alternatively, you can run
php admin/cli/upgrade.php
to complete the installation from the command line.
Testing locally (cURL settings)
If you plan to test from a local environment, adjust Moodle’s cURL security settings so the provider and its dependent plugins can make HTTP requests:
- In the site administration search box, type "curl" and open the page that shows cURL/HTTP security settings.
- In the first field
cURL blocked hosts list, remove any registered IP addresses or host entries. - In the second field
cURL allowed ports list, add the port where your local Moodle is running (for example:8000).
These Moodle security settings directly affect the Datacurso AI Provider and, therefore, the functionality of any plugins that depend on it.

Getting license keys
- Sign in or create an account on the shop DataCurso
Go to the Manage AI Credits section

Click on the BUY MORE CREDITS button

Select the package of credits you want to acquire

Once the credits are acquired, the new balance will be displayed

To create a license key, we enter the My Licenses section and click the Create License button

In the confirmation window that appears, click the Create button

Once the license key is created, we can assign credits to use it in moodle. Click the Assign Credits button

In the confirmation window that appears, enter the amount of credits you want to assign to the license key and click the Confirm Assignment button

Once the credits are assigned, we can copy the license key to use it in moodle as indicated in the Plugin Configuration section

Note: We can create several license keys and assign different amounts of credits to use them in different moodle sites.
Plugin Configuration
Log in to your Moodle site as an admin and go to
Site administration > General > AI > AI Providers.
Click Create new provider instance

Configure the settings to create instance:
- License key: Enter the license key that we copied in the Obtain License Keys section

⚠️IMPORTANT:
- Only one instance should be created with this provider for proper use.
Enable instance :

Datacurso AI Provider
In this section we will find global reports and configurations from our provider.

Datacurso webservice setup
⚠️IMPORTANT:
Without completing this setup, the following Datacurso AI plugins will not function correctly in your Moodle site:
- Forum AI: https://docs.datacurso.com/index.php?title=Forum_AI
- Assign AI: https://docs.datacurso.com/index.php?title=Assign_AI
- Tutor AI: https://docs.datacurso.com/index.php?title=Tutor_AI
You can find more information about these plugins in their respective documentations.
Description
This feature allows you to automatically configure the Web Service used by Datacurso to fetch contextual information from your platform and improve AI responses.
How to use it
To configure the webservice, go to Datacurso AI Provider > Datacurso webservice setup.

What it does:
- Enables Web services and the REST protocol if they are not already active.
- Creates or reuses the service user
datacursows. - Creates or reuses the
Datacurso web servicerole and assigns it to the user at the system context with the required capabilities. - Creates or reuses the external service
Datacurso web service, enables it, and restricts it to authorized users. - Adds default functions to the service (for example,
core_course_get_contents,mod_assign_get_submissions). - Authorizes the user to use the external service.
- Generates (or reuses) a permanent token for the user/service.
- Registers the site in Datacurso by securely sending the token.
Role capabilities configured
The following capabilities are configured for the Datacurso web service role:
webservice/rest:usemoodle/category:viewhiddencategoriesmoodle/course:enrolreviewmoodle/course:viewmoodle/course:viewhiddencoursesmoodle/course:viewhiddensectionsmoodle/course:viewparticipantsmoodle/course:viewhiddenactivitiesmod/forum:viewdiscussionmod/forum:viewqandawithoutpostingmod/wiki:viewpagemod/glossary:viewmod/book:readmod/lesson:viewmod/choice:choosemod/choice:readresponsesmod/feedback:viewmod/feedback:viewanalysepagemod/scorm:viewreportmod/scorm:viewscoresmod/h5pactivity:viewmod/h5pactivity:reviewattemptsmod/resource:viewmod/page:viewmod/assign:viewmod/assign:viewgradesmod/data:viewentrymod/data:viewmod/folder:viewmod/label:viewmod/url:viewmod/workshop:view
Web service functions enabled for AI context
The following functions are added to the Datacurso web service external service:
core_course_get_contentsmod_assign_get_submissionsmod_forum_get_forum_discussionsmod_forum_get_discussion_postsmod_wiki_get_wikis_by_coursesmod_wiki_get_subwikismod_wiki_get_subwiki_pagesmod_wiki_get_page_contentsmod_wiki_get_subwiki_filesmod_glossary_get_glossaries_by_coursesmod_glossary_get_entries_by_searchmod_glossary_get_entry_by_idmod_book_get_books_by_coursesmod_lesson_get_lessons_by_coursesmod_lesson_get_pagesmod_lesson_get_page_datamod_choice_get_choices_by_coursesmod_choice_get_choice_optionsmod_choice_get_choice_resultsmod_feedback_get_feedbacks_by_coursesmod_feedback_get_itemsmod_feedback_get_finished_responsesmod_feedback_get_analysismod_scorm_get_scorms_by_coursesmod_scorm_get_scorm_scoesmod_scorm_get_scorm_user_datamod_scorm_get_scorm_sco_tracksmod_h5pactivity_get_h5pactivities_by_coursesmod_h5pactivity_get_attemptsmod_h5pactivity_get_resultsmod_resource_get_resources_by_coursesmod_resource_view_resourcemod_page_get_pages_by_coursesmod_assign_get_assignmentsmod_assign_view_assignmod_assign_get_submission_statusmod_data_get_databases_by_coursesmod_data_get_entriesmod_data_get_fieldsmod_folder_get_folders_by_coursesmod_folder_view_foldermod_label_get_labels_by_coursesmod_url_get_urls_by_coursesmod_url_view_urlmod_workshop_get_workshops_by_coursesmod_workshop_view_workshopmod_workshop_get_submissions
Interface:
Shows the current status (web services/REST, user, role, service, token, registration).

Buttons: Configure webservice (configure everything), Retry (retry registration/send), Regenerate token (regenerate token and resend registration).

Includes a live activity log with the steps performed.

Si el proceso de registro sale bien nos deberia aparecer algo como lo siguiente:

Actions
From the same configuration page of the Datacurso AI Provider, you can enable and customize the following Moodle AI-powered actions, seamlessly integrated with Moodle’s native capabilities:
- Generate Text – Create meaningful content from any prompt.
- Generate Image – Produce original images from text descriptions.
- Summarize Text – Quickly generate concise summaries from course content.

History Consumption Credits
Here we can see three sections. The first section shows the credit consumption history for AI usage in plugins that use the Datacurso provider, as well as the predefined AI actions in Moodle.

Reports grafics
The second section displays information about credit usage through visual graphs.

Datacurso List Plugins
The third section shows the list of Datacurso plugins that are compatible with the Datacurso AI provider.

License
2025 Data Curso LLC https://datacurso.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Version information
- Version build number
- 2025121500
- Version release name
- 2.0.1
- Maturity
- Stable version
- MD5 Sum
- d3bd62c5614aec98fa907d3fb598ebec
- Supported software
- Moodle 5.0, Moodle 5.1
- Latest release for Moodle 5.0
- Latest release for Moodle 5.1
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
- VCS tag
- 2.0.1