Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 14 Next »

This section describes the initial interactions with the bot. This is the first step any user of this app must go through before start accessing all the features of the Moodle Chatbot App.

Content:

1. First User Interaction

To start an interaction with the bot, the user must type any word to the whatsapp number set up/linked to Moodle Chatbot App. This first message triggers the event to search the current user number in the Moodle instance. In case no user is found, the bot sends a message to the user notifying it and asking the user to create a new account:

Here, the user has one option:

  • Type 1 to create a new account

Type 1 to create a new account: This option triggers the user account creation flow. The user must type 1 in the chat to continue to create an account flow.

2. Country Code Selection

Once the user types 1, the bot sends a message asking the user to specify the country code. By default, the bot looks for this code associated with to the user phone number, but in case this is incorrect or it needs to be modified, the bot gives the option to do it:

Here, the user has two option:

  • 1 - Go with preferred [Language Name] language

  • 2 - Change your mobile number country code

1 - Go with preferred [Language Name] language: This option will trigger the next step of the user creation flow that can be either the agreement of terms and conditions or the first question for the user creation. The user must type the number 1 in the chat to proceed through this interaction.

2 - Go with preferred [Language Name] language: This option will trigger the next step of the user creation flow that can be either the agreement of terms and conditions or the first question for the user creation. The user must type the number 1 in the chat to proceed through this interaction.

The chatbot supports two languages: English and Portuguese. In the screenshot you see that 503(SV) refers to a phone number from El Salvador. This country speaks Spanish as its native language, but as this language is not supported, English is selected instead.

If the user types 2, the bot asks the user to type the country code number:

This is an open request where there is no option visible to the user. Here, there is a possibility that the user types something incorrect (bad country code or maybe some text). For this, the chatbot handles the input as a bad input and sends a message describing this issue, giving some other options so the user can check the previous message and fix it:

To check the exception messages (Invalid input/ something went wrong / invalid input limit reached) please refer to the following documentation: LINK

Otherwise, if the user types a valid country code, a new message is sent by the bot detailing the new default country code and the new preferred language:

3. Terms & Conditions

From the Country Code Selection step and once the user types 1, the bot sends a terms and condition link/pdf, asking the user to agree or disagree the contract:

This Terms & Conditions section may not appear in case the chatbot app configuration specifies it. In this case, section 4. User Account Information is shown instead. Take a note that this terms and condition pdf must be set up in the chatbot app, this must be a link to the contract. In case the link is a pdf, Moodle Chatbot App downloads and sends it to the user instead of a URL.

Here, the user has two option:

  • Type 1 to agree with the Terms of use and Privacy policy of the platform.

  • Type 2 to disagree with Terms of use and Privacy policy of the platform. Your account will not be created and your data will not be stored.

Type 1 to agree with the Terms of use and Privacy policy of the platform: this option triggers the step 4. User Account Information, so the user can type the first name, last name and optionally the email

Type 2 to disagree with Terms of use and Privacy policy of the platform. Your account will not be created and your data will not be stored: this option stops the current flow

If the user types 2, the chatbot will stop completely the current flow and the user has to start all over again from the step 1. First User Interaction

4. User Account Information

From step 2. Country Code Selection / 3. Terms & Conditions, the chatbot requests the user to provide personal data to create the account in Moodle. The first information requested is the user’s first name:

Once the user types his first name, the second question request the user’s last name:

Here, the user has two options:

  • Type your last name.

  • Type 00 to go back to previous question

Type your last name: The user has the capability of type his last name so the chatbot can save this information to lately create the user account. This option triggers the next question.

Type 00 to go back to previous question: The user may have typed a wrong name and wants to fix it. This option allows the user to go back to the previous question. At the moment, the previous question ask the user to provide his first name, so this question is shown again.

When the user types its last name, the next question is triggered, asking the user to write a preferred email (this question is optional):

Here, the user has three options:

  • Type your email.

  • Type 00 to go back to previous question

  • Type 99 to jump to the next question

Type your email: The user is able to type a personal email, the chatbot saves this information to lately create the user account.

Type 00 to go back to previous question: This option allows the user to go back to the previous question. At the moment, the previous question is the last name, so this question is shown again.

Type 99 to jump to the next question: This option allows the user to proceed to the next question. Note that as this is a not required question, the user can skip it typing this option, whereas required questions do not provide this option to jump to the next question.

Finally, when the user provides all the information requested to the bot, a summary is shown, detailing every information the user provided to the bot:

Here, the user has two options:

  • 1 - Finalize or Complete registration process

  • 2 - Insert user details again

1 - Finalize or Complete registration process: When the user is sure that the information provided is correct, he can type 1 to finish the User Account Creation flow and start Course Enrolments flow.

2 - Insert user details again: If there is some information incorrect in the summary or the user wants to change the information provided, he can type 2 to start the step 4. User Account Information .

Once the user types the option 1 to complete the registration process, a congratulation message is sent to the user to conclude this flow and start completing Moodle Activities:

Now, the user is able to select a course, please refer to the following documentation to next to the next step:

Course Enrolments

  • No labels