Architecture & Components
Moodle eLearning Chatbot
The Moodle eLearning Chatbot is a .net application that requires Moodle 4.1 or greater and an associated Moodle plugin. The Moodle plugin exposes various functions the chatbot .net app requires and adds user and course properties. The app currently supports WhatsApp via Twilio. A future release will support direct connection via Meta’s API to support Facebook Messenger and WhatsApp directly. Other chat platforms can be easily added as part of the open-source project.
The Moodle Chatbot Application allows users to take and complete Moodle courses entirely from a consumer messaging platform like WhatsApp. The app manages the conversation with the user, provides a listing of compatible Moodle courses, completes course enrollment, and renders course activities in a chatbot conversation format. The app interacts with Moodle using the native API and a supplemental set of end-points implemented as a Moodle plugin.
The Moodle Bot Manager plugin adds custom functions used by the Chatbot App, providing specialized ways to retrieve and store information from the Chatbot app. These two custom fields include:
Dialing prefix in the user’s profile to store the country dialing code
Bot Mode in the course settings to identify which courses the chatbot should present to the chatbot user.