Skip to content

Latest commit

 

History

History
55 lines (28 loc) · 4.09 KB

Challenge3.md

File metadata and controls

55 lines (28 loc) · 4.09 KB

Challenge 3 - Trivia bot

Background

The main trivia logic will be delivered through a bot in Microsoft Teams. This is a fun spin on Assessment/Quiz bots that have become very popular with software and learning management companies.

In Challenge 3, you build the trivia bot for Microsoft Teams. The challenge will ensure you understand popular patterns and best practices for developing bots for Microsoft Teams, such as retrieving team roster information and providing a good "first run" experience.

Challenge

Develop a trivia app for Microsoft Teams that uses a bot to ask trivia questions. When the app is installed into a team, it should retrieve the team roster and POST it to the Register Team API (documented in OpenHack APIs).

For the trivia logic, the bot can retrieve questions via the Get Trivia Question API and submit answers using the Submit Answer API (documented in OpenHack APIs). Finally, all team members should be able to independently answer trivia questions. This can be accomplished in 1:1 chat or in team conversations (don't worry about implementing in both places).

Success Criteria

  • Your team must build a bot for Microsoft Teams that prompts users to answer multiple-choice trivia questions.

  • Team members must be able to independently answer trivia questions.

  • The trivia app must retrieve team roster information for the team it is installed in and send that roster to the RegisterTeam API provided.

Important Notes

  • The Bot Framework Emulator is useful for debugging basic bot dialog locally. However, Teams context is only available to bots running within Microsoft Teams. To debug bots running in Microsoft Teams, the bot endpoint(s) must be on the public internet. Ngrok is a helpful tool for creating an internet tunnel for localhost. See Getting started with ngrok for full instructions. Seriously, use ngrok for this challenge.

  • The OpenHack APIs will only function in the context of your registered team in Microsoft Teams. You can test these APIs in the swagger documentation or using a tool like Postman or Fiddler, but you will need the team details (Teams ID and Azure AD Object ID).

References

Some other useful resources are: