microsoft / hack-together-teams

HackTogether: The Microsoft Teams Global Hack | Register, Hack, Win 👇
https://aka.ms/hack-together-teams/register
MIT License
456 stars 38 forks source link

Project: MsTeams Quiz Bot #89

Open marcel-paalvast opened 1 year ago

marcel-paalvast commented 1 year ago

Project name

MsTeams Quiz Bot

Description

MsTeams Quiz Bot

A Microsoft Teams bot to create a quiz inside any chat about any subject using randomly generated questions.

Key Features

When mentioned with @bot-name quiz the bot will create an adaptive card allowing a user to setup a quiz about their specified topic and in their language. The user starting the quiz then has full control to participate and decide when to lock a question and generate the next question or to stop the quiz and show the top 10 results.

A Function App handles the messages that are received by the bot reacting to the prompts and generating responses using Microsoft's Adapative Cards. The Function App uses a Cosmos Database to maintain its state allowing it to scale and not require it to be always on (so serverless is an option). A memory cache is maintained to quickly access objects should the Function App still be active from previous requests. Questions are generated using OpenAi's ChatGpt allowing you to create an 'infinite' amount of questions on any topic.

Project Repository URL

https://github.com/marcel-paalvast/msteams-quiz-bot

Project video

Added as comment

Team members

marcel-paalvast

marcel-paalvast commented 1 year ago

Demo video:

https://github.com/microsoft/hack-together-teams/assets/126659601/01173cba-c3f4-4846-b722-6e1aa31cc17c

aycabas commented 1 year ago

Thank you so much for your submission @marcel-paalvast! Looking forward to checking it out! Meanwhile, would you be willing to fill in a feedback survey? It would help us improve next time and we'd appreciate it very much: https://aka.ms/hack-together-teams/survey.