Adding a Chatbot(Dialogflow) into Moodle

Adding a Chatbot(Dialogflow) into Moodle

by Wellyton Rodrigues -
Number of replies: 4

Hello my friends!

I have created a chatbot in dialogflow.

Now I want to integrate this bot with moodle.

In a course page I add the link to the chatbot in a Topic.

But Now I have this problem:

How do I get which student is using the chatbot. I Need the userid or username in order to save the history of the conversation.

Any ideas how to do it?



Attachment Img1.png
Attachment img2.png
Average of ratings: Useful (1)
In reply to Wellyton Rodrigues

Re: Adding a Chatbot(Dialogflow) into Moodle

by Oleksandr Szpinkowski -

Tell me please, what plugin or resource you created chatbot?

Thank you

In reply to Oleksandr Szpinkowski

Re: Adding a Chatbot(Dialogflow) into Moodle

by Wellyton Rodrigues -

I created using dialogflow: https://dialogflow.com

The integration was through a weblink that it generated. I just place it in a html block into moodle.

In reply to Wellyton Rodrigues

Re: Adding a Chatbot(Dialogflow) into Moodle

by Justin Hunt -
Picture of Particularly helpful Moodlers Picture of Plugin developers

If you use Generico to embed your chatbot, then it can feed the user id to it. 

Generico is a filter that processes text on the page and replaces it with the correct template. This is the welcome user template which fetches the userid and user name and picture. This might be a good place to start

https://moodle.org/plugins/view.php?id=2101

In reply to Wellyton Rodrigues

Re: Adding a Chatbot(Dialogflow) into Moodle

by Joris Even - JE Ontwikkeling -

Hi Wellyton, did you figure out how to use the chatbot in Moodle? I'm looking into the same possibility rightnow.