...
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; it is necessary to copy copying this token into the configuration file is necessary.
...