Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Deploy as a docker container

  2. Install in a Linux/Windows server

In both cases, you will need to edit the chatbot configuration file, which we cover first.

Info

for the chatbot to work, the Moodle Chatbot Plugin must be installed.

...

Editing the Chatbot Configuration File

While on the code root folder, navigate to MoodleBot > appsettings.json. The following are some of the most important parameters to configure.

Info

You will need to adquire acquire an activate a WhatsApp number with Twilio, a messaging provider

...

In the same directory as the configuration file, you will also find a folder named ‘DBTables’. It is called like that because all the .json files it contains were originally tables from a database the chatbot no longer has, it is a deprecated feature.

In these files, you can customize customise the majority of the chatbot messages. For example, if you wish to change the chatbot welcome message, edit the file ‘BotMessages.json’ and search for the MessageName parameter with the value 'WELCOME_MESSAGE'. You will find an object representing the message, and it is possible to modify the Message parameter with the text you prefer.

...