Introducing Universal Teacher: An Interactive Learning Experience with Amazon Alexa and ChatGPT

…we come from here chatGPT on top of Amazon Alexa (chatGPT on top of Amazon Alexa).

The Universal Teacher skills are here:
(USA skill): Amazon.com: universal teacher : Alexa Skills
(UK skill): https://www.amazon.co.uk/dp/B0CZPMKZZ6/
(Canada skill): https://www.amazon.ca/dp/B0CZPMKZZ6/

Welcome to the Universal Teacher Community Thread!

:books: About Universal Teacher: Universal Teacher is an innovative Alexa skill designed to enhance the learning experience for students of all ages. Powered by ChatGPT, this skill serves as a virtual tutor, providing interactive lessons and quizzes on a variety of topics.

EXPLANATION:

QUIZ:

GRADE:

:mortar_board: Interactive Learning: Dive into engaging lessons on subjects ranging from history to science, all tailored to a 10th-grade level for clarity and accessibility.

:mag: Explore and Test Your Knowledge: Ask Universal Teacher for explanations on any topic of interest, then put your knowledge to the test with interactive quizzes. Whether you’re studying for exams or simply curious about the world around you, Universal Teacher has something for everyone.

:bulb: Get Involved: Join the discussion, share your feedback, and connect with other users who are passionate about education and learning. Together, let’s explore the possibilities of Universal Teacher and make learning an enjoyable and enriching experience for all.

1 Like

Here is a video description…
https://www.youtube.com/watch?v=bvBKW0F5nPM

This Alexa skill integrates with chatgpt 3.5 turbo.
It is a virtual teacher. The teacher explains a topic of your choice and then tests the student through a quiz session.

Here is the sequence of interactions between the User and the skill Universal Teacher:

Occasionaly I observe that the quiz session is made of a variable number of questions, from 4 to 7. This could happen because the counting of the questions has been left to ChatGPT. I have a solution in mind to improve this point. Do you have any advice?

In an Alexa skill the contents of the prompt and reprompt values provided by voice to the User get wrapped in SSML tags. This means that any special XML characters within the value need to be escape coded. For example, the output string “I like OpenaAI&ChatGPT” will cause a failure because the & character needs to be encoded as &amp;. Other characters that need to be encoded include: <&lt;, and >&gt;. This is important with Math topics.

I have fixed this problem by changing in the system prompt the number from digit (10) to its equivalent word (ten). That has done the magic! Now it is consistently providing 10 (ten! :grin:) questions to the user. I still have some inconsistencies with the final grade. Sometimes it doesn’t detect the number of incorrect answers. I’ll try to find a solution.

1 Like

Here is a second video, about history. The topic is the “Second World War”. The lesson starts with an explanation of the topic and then proceeds with a set of questions to test if the explanation has been uderstood.
Here is the link: Universal Teacher: connect for explanations and quizzes, powered by ChatGPT. #Alexa #chatgpt (youtube.com)

I’m still working on improving the grading. Currently it is up to ChatGPT to estimate the number of correct answer, but it has occasionaly some mistakes. I’m trying to replace it with a more deterministic mechanism.
In the meantime here is a second link to a Youtube video from one of the early users:
How to use Alexa for Mother’s day - YouTube

In the past weeks, I have polished some of the code primarily to reduce the number of context tokens. Even though the price of the token has decreased, a skill that relies on a long context can consume a lot of tokens. Here is a video I found about my skill:
How to use Alexa for understanding software engineers’ pessimism paradox - YouTube

Here is an helpful link to help teaching with AI.
Teaching with AI | OpenAI
The information is provided by OpenAI.

1 Like

Sounds great! But why not use gpt voice directly?

1 Like

Hi @chengcheu321 I’ve used Alexa because I know that programming framework. My goal for this app is to add a quiz sessions after a topic explanation, so using chatgpt voice is not enough to get it. You still need some library to create the quiz form.

1 Like

I just updated the Alexa skill ‘Universal Teacher’ from gpt-3.5-turbo-0125 to gpt-4o-mini. Based on the initial test it looks just as fast. The explanation of the lesson looks detailed and longer.

I planned to add an image to the explanation. I’ve worked with the DALL-E API, incorporating the call in my skill. The API call works fine but unfortunately, based on some tests, the call can take up to 12-13 seconds. This is above the 8 sec threshold placed in the Alexa interaction max duration and the skill goes into timeout. So for now I had to remove the idea to add an image.

I have updated all my Alexa skills up to GPT-4o Mini, after the successful transition with the Universal Teacher skill:

  1. ‘oracle of light’: USA - https://www.amazon.com/Revolutionary-Voice-oracle-of-light/dp/B0BRY898CK/
    It’s in English for the USA, UK, Canada (the link is for the USA, for the other countries look for the name of the skill in the Amazon website; currently I cannot support the locales India and Australia)
    Uk: Amazon.co.uk: oracle of light : Alexa Skills
    Canada: Amazon.ca: oracle of light : Alexa Skills

  1. ‘oracolo di apollo’: https://www.amazon.it/Revolutionary-Voice-oracolo-di-apollo/dp/B0BRT3N172/
    It’s in Italian for Italy

  1. ‘oráculo de luz’ :
    in Spanish for Spain: https://www.amazon.es/Revolutionary-Voice-oráculo-de-luz/dp/B0BRYGJGPP/
    US version in Spanish: Amazon.com: oráculo de luz : Alexa Skills

  1. „orakel des lichts“: https: // Amazon.de: orakel des lichts : Alexa Skills
    It’s in German for Germany

  1. ‘oracle de lumière’: https://www.amazon.fr/Revolutionary-Voice-oracle-de-lumière/dp/B0BRYCMFV8/
    It’s in French for France.

Enjoy! :smile:

I had the chance to try the new model O1-preview and it works very fine. The completion to a user prompt takes a little longer for any voice based interaction, but i think this is going to improve in the future.
I tested the new model by asking 4 things:

  1. how to increase the number of users for my Alexa skills
  2. how to create a euro-pegged stablecoin
  3. how to open a themed bar in Italy, such as one inspired by Coyote Ugly
  4. I asked to analyze a financial situation and explore actionable steps to help start a new business
    The model O1 provided a lot of actionable steps that can be explored further. I fell this new paradigm is the one that can help to move forward the industry to the AGI.