Moodle Site Setup
Before using the eLearning Chatbot, ensure the WS Functions installed with the Moodle Chatbot Plugin are externally accessible using Moodle’s API. This is how the Moodle Chatbot App can read and write to Moodle’s database.
The following list of steps is needed to enable the WS Functions. For the official Moodle documentation, click here.
Go to Site Administration > General > Advanced features. Search for an option named ‘Enable web services’ and check the box if it is disabled.
Go to Site Administration > Server > Web services > Manage protocols. Make sure REST protocol is enabled.
Go to Site Administration > Server > Web services > External services. In the ‘Built-in services’ section, edit ‘Moodle mobile web service’ and make sure the ‘Enabled’ option is checked.
Finally, go to Site Administration > Server > Web services > Manage tokens. Click on ‘Create token’ and select a user with enough roles to use the Moodle mobile web service. This token serves as the login credential for the Moodle eLearning Chatbot app during installation; copying this token into the configuration file is necessary.