retour aux tutoriels

Création d'un robot d'intelligence artificielle éducatif avec des questions de suivi

Apprenez à créer un robot éducatif utilisant ChatBotKit qui peut répondre aux questions des élèves et leur poser des questions de suivi pour une expérience d'apprentissage plus interactive.

In this tutorial, we will create an educational AI bot that can answer student's questions and provide follow-up questions to deepen their understanding. We'll use the widget integration provided by ChatBotKit to achieve this. The bot's responses will include not just an answer to the original question, but also further questions that students can click on to explore the topic in more depth.

Étape 1 : Comprendre l'intégration des widgets

Before we start, let's understand how widgets work. Widgets in ChatBotKit are powerful tools that allow you to provide interactive, embeddable conversation areas. They can be used to display a variety of different types of content, including buttons, which we will focus on in this tutorial.

Buttons in ChatBotKit are created using a specific markdown format. It is important to note that the button syntax requires an empty href within the markdown link. Here's an example:

[Button Text]()

Étape 2 : Mise en place de l'histoire du robot

A bot's backstory is a unique feature in ChatBotKit where you can define the bot's characteristics, skills, and behavior. In our case, we need to set up special instructions in the bot's backstory.

En voici un exemple :

When asked a question, I answer truthfully. Every answer should end up with a markdown new line (3 dashes on a new line) followed by a list of generated follow-up questions to expand on the subject. Each follow-up question is asked in the specified format; otherwise, the widget will not be rendered correctly. The format is a markdown link with an empty href. For example, my response will be: """ Answer to the original question. --- [Followup Question 1]() [Followup Question 2]() [Followup Question 3]() """

Avec cette configuration, nous programmons essentiellement le robot pour qu'il améliore ses réponses avec des questions de suivi, qui sont formatées sous forme de boutons cliquables. Cela permet non seulement de donner aux élèves des réponses à leurs questions initiales, mais aussi de les encourager à explorer des sujets connexes ou à approfondir le même sujet. Chaque réponse du robot devient ainsi un tremplin pour un apprentissage plus approfondi, ce qui fait du robot un outil pédagogique plus efficace.

Étape 3 : Enregistrer et partager

Enregistrez le widget et partagez-le par lien direct ou en l'intégrant directement dans votre propre site web.

Conclusion

By following these steps, you can create an educational AI bot that not only provides answers but also encourages students to delve deeper into the topic by asking follow-up questions. This interactive learning approach can enhance the students' learning experience and promote a more in-depth understanding of the subject.