Moodle Course Setup
For the course activities to render on the chatbot, you need to do specific configurations to the courses and the supported activities. This page addresses the following topics:
How to configure a course to operate with the chatbot.
How to configure lesson, quiz, and feedback activities for the chatbot.
Limitations for each activity type.
Prerequisites
Verify your Moodle version is supported and install the Moodle Chatbot Plugin.
Create a course compatible with the Moodle Chatbot App
The chatbot, by default, will not show any courses. To enable a course for the chatbot, do the following:
Navigate to the course and click on the ‘Settings’ tab
Scroll down to the ‘Other fields’ section
Locate the ‘BotMode’ field and change its value to ‘Yes’
The ‘BotMode’ field is a course custom field that is automatically created when the Moodle Chatbot Plugin is first installed.
Create a compatible Lesson Activity
The chatbot is capable of showing multiple content pages, later divided into smaller paragraphs when the information arrives to the user on WhatsApp. To add a new content page:
Create a lesson activity on Moodle, and be sure to configure the ‘Activity completion’ section. If a completion condition is not set, the chatbot will never show the activity as completed. For the lesson activity, we recommend the following configuration:
Enter the lesson and click ‘Add a content page’
Add the page title and the page content. The chatbot will display this to the users when they open the lesson from WhatsApp. Moodle requires adding a description for the ‘Content 1’ section; this is not used, and any text is acceptable.
Please note: it is possible to add images to the page content, but the only format currently permitted by the chatbot is .jpg. Similarly, it is possible to add .mp4 videos. Both images and videos will only appear in the chatbot if the course is public (allows guest access).
Ensure that students have access to relevant, challenging, and consistent content aligned with the course objectives. Remember that you are delivering content on a WhatsApp chatbot, your lessons should be composed of small chunks of text, and your images and videos should be optimized for chatbot delivery.
Create a compatible Quiz Activity
Add a quiz activity to the course
Similarly to the previous activity, it is necessary to add activity completion conditions
In the quiz, go to the ‘Questions’ tab and create the quiz questions as normal.
Please note: when adding quiz questions, keep in mind the chatbot currently supports only Multiple choice and true/false type questions. Additionally, the chatbot will always show the latest version of a given question.
Create a compatible Feedback activity
Add a Feedback activity to the course.
Again, the activity completion conditions must be configured to automatically mark the activity as completed when the conditions are met.
Not all question types are supported. Use ‘multiple choice’ and ‘short text answer’ type questions.