Creating chatbots of historical figures

Age

14 — 15

Class

30 students

Duration

5h

Teacher

Ricardo Carvalho

Age

14 — 15

Class

30 students

Duration

5h

Teacher

Ricardo Carvalho

In the year in which Portugal celebrates 50 years of democracy, Ricardo Carvalho joins the celebration movement with his 9th grade students from the Group of Schools of Esgueira, Portugal. In the Information and Communication Technology subject he teaches, he invites students to create chatbots based on relevant historical figures who took part in the Carnation Revolution of April 25, 1974.

Chatbots

Create chatbots that allow students to simulate a conversation with historical figures involved in day of the Carnation Revolution, using an Artificial Intelligence tool. The chatbots are made available in the School Libraries’ computers. Students have conversations with the AI chatbots, ask any questions they like, and the chatbots respond according to the information they have been trained with.

Lesson 1 – What are chatbots

  • Goal · Understand the concept of chatbot and its potential in the context of Artificial Intelligence.
  • Duration · 50 minutes
  • Equipment · Computers with internet

  • Assessment · Interest and participation

In the first lesson, teacher and students explore what chatbots are and how they are built. Together, they define and organize the steps that will be necessary for students to create their own chatbots inspired on historical figures, ranging from researching historical information, consulting documentation, training and testing the chatbot.

Activities

  • Exploring students’ perceptions of chatbots and conversational AI: students shared their knowledge and experiences.
  • From the conversation with the students, the teacher explains and demonstrates what chatbots are, using the CharacterAI (formerly Inworld) with which they will work to create their chatbots of historical characters.
  • Prepare the work and divide the class into pairs of students.
  • Distribute the themes and historical characters to be explored by group.

Lesson 2 – Research information to train the chatbots

  • Goal · Research information.

  • Duration · 50 minutes
  • Equipment · Computers with internet.
  • Assessment · Interest and participation.

In this lesson, students focus on researching about the historical figure they have chosen.

Activities

  • Each group defines an information research plan which they develop during this lesson.
  • The teacher presents the structure in which the researched information should be presented so that it can be used to train the chatbot in the Character AI (former Inworld).

Lesson 3 – Create data bases to train the chatbots

  • Goals · Structuring information in the right format to train the chatbot; Creating detailed descriptions of the personality, motivations and communication style of the historical figure.

  • Duration · 50 minutes
  • Equipment · Computers with internet.

  • Assessment · Coherence and organization of the information compiled; Suitability of the historical facts to the figure chosen; Active participation in the construction of the database.

In this lesson, each group of students structures the information they have researched and puts it into the format needed to train the chatbot. They complement this information with detailed descriptions of the historical personality, such as their motivations and communication style. Everything will be used to train the chatbot in the chosen tool Charatcter AI (former Inworld).

Activities of research

  • Research: provide an accurate main description, based on existing biographies.
  • Verify that they use the full name in the Identity so that Charatcter AI recognizes the historical figure, along with the Wikipedia link if available.
  • For the sample Dialogue, use well-known quotes and interview segments that best represent the public figure.

Activities to structure information to train the chatbot

  • Core description: A summary of the character. This area defines the basic information about the character, such as who they are, what they do, their main personality traits and where they come from.

  • Motivations: What drives the character? This area defines the character’s main motivations, their driving forces and what they want from their life.
  • Flaws: The character’s flaws. This area defines the character’s weaknesses, insecurities and fears.
  • Dialogue style: The way the character speaks. This area defines the character’s conversational style and approach to dialog.
  • Voice: How does the character sound? This area controls the character’s voice, including the sound of their voice, as well as the tone and speed of speech.

Lesson 4 – Train the chatbots

  • Goals · Configure and train the chatbot; Adjust the chatbot’s behaviour, tone of voice and response style; Test initial interactions and perfect responses.

  • Duration · 50 minutes
  • Equipment · Computers with internet

  • Assessment · Correction and accuracy of the chatbot’s historical personality; Appropriate adjustment of language and response style; Participation in the chatbot’s training and improvement process.

Training the AI to take on the personality of the historical figure and respond to interactions with humans by taking on the role of the historical character was a job that the students were very enthusiastic about.

Activity of introduction to chatbot training

  • The teacher gives a practical demonstration in the Character AI tool on how to enter structured information.
  • Explanation of how to adjust responses and customize the chatbot’s conversational style.

Activity of initial configuration of the chatbot

  • The students enter the previously organized information into the tool – description of the core, motivations, flaws, dialogue style and voice.
  • Adjust the way the chatbot presents itself and responds, ensuring that it resembles the historical character.

Activity initial tests and adjustments

  • Each group carries out an initial interaction test with their chatbot.
  • They identify possible errors or inconsistencies in the answers and adjust the settings.

Lesson 5 – Train the chatbots

  • Goals · Complete the development of the chatbot, ensuring that it takes on the chosen personality; Create an avatar representing the historical figure.

  • Duration · 50 minutes
  • Equipment · Computer with internet

  • Assessment · Quality and realism of the chatbot interaction; Creativity and precision in the creation of the avatar; Participation in the finalization and testing of the chatbot.

Continuation of the previous lesson, where each group finalizes their interactive character of a personality involved in April 25, concluding the chatbot training, and creates an avatar image that represents the historical character, using the tool.

Activity perfect the chatbot behaviour

  • Refining the tone of voice and style of dialog to make interaction more natural.

  • Adjusting responses to ensure that the chatbot respects historical facts.
  • Inclusion of real quotes and iconic phrases from the character to make responses more authentic.
  • Create an avatar image that represents the historical figure.

Activity peer testing

  • The groups swap computers and test each other’s chatbots.
  • They write down suggestions for improvement to share with their colleagues.

Activity of final revision and improvements:

  • Based on the feedback from the peer tests, each group makes final adjustments to their chatbot.

Lesson 6 – Test the chatbots

  • Goal · Test the chatbots and peer evaluation.

  • Duração · 50 minutos
  • Equipamento· Computers with internet

  • Avaliação · Interest and participation

In this class, all the groups have the final versions of their chatbot finished and ready to be assessed one last time by their peers.

The teacher assigns each group a chatbot to do a peer evaluation:

  • Hold a conversation with the chatbot.
  • Each group of students that is evaluating shares their spoken feedback, constructively, with the group that built the chatbot.

On the day of the April 25th celebrations, teacher Ricardo made the chatbots available to all the students in the school group. He created a Padlet with a list of all the chatbots, which could be accessed on all the computers in the school libraries.

Teacher Ricardo Carvalho, has been teaching Information and Communication Technologies and Network Architecture in Middle Schools for over 20 years. Holds a PhD in Multimedia in Education and provides teacher training at ANPRINational Association of Computer Science Teachers in Portugal.

Connect with teacher Ricardo through his channel at YouTube Prof Ricardo and LinkedIn.