Build a chatbot that can play an ice cream guessing game using IBM Watson Assistant
Sarah Packowski - IBM ( spackows@ca.ibm.com )
Christopher Alfonso - IBM ( Christopher.Alfonso@ibm.com )
Noam Karakowsky - University of Ottawa ( nkarakow@gmail.com )
Parth Suthar - IBM - ( Parth.Suthar@ibm.com )
In this workshop, participants will use Watson Assistant to create a chatbot that can play an ice cream guessing game:
- Player A - The ice cream oracle - Thinks of a flavor of ice cream
- Player B - The guesser - Asks up to 5 yes-or-no questions and then guesses the flavor
In this workshop, participants will build a chatbot to perform the role of Player A.[1]
The flavors in the game for this workshop are listed below:
Butterscotch ripple, Strawberry shortcake, Mint chocolate chip, Cookies & cream, Booberry pie, Banana cream pie, Chocolate, Tiger tail, Heavenly hash, Red velvet cake, Cookie dough, Pistachio, Raspberry ripple, Oreo cookie, Chocolate chip, Neapolitan, Rocky road, Maple walnut, Fudge ripple, Chocolate fudge, Vanilla, Strawberry.
[1] Optional bonus: Instructions and sample files are provided to build a chatbot that can perform the role of Player B and to have two chatbots play the game together.
Perform these steps before starting the hands-on workshop:
- Register for a free IBM Cloud account
- Create an instance of IBM Watson Assistant (Free, "Lite" plan)
- Section A: Create an assistant with a dialog skill
- Section B: Define entities for colors, ingredients, and flavor names
- Section C: Use a webhook to access the ice cream knowledge base
- Section D: Implement game play and deploy
- Section E: Bonus fun!
Instructions are under construction
See: Section A demo video (~3 minutes)
- Create a welcome message to begin the game
- Create a fallback message for when the chatbot doesn't understand
Full instructions: README-SectionA
See: Section B demo video (~3.5 minutes)
- Recognize when a user mentions a color
- Recognize when a user mentions an ingredient
- Recognize when a user mentions a flavor name
Full instructions: README-SectionB
See: Section C demo video (~7.5 minutes)
- Look up a random flavor to start the game
- Look up yes-or-no answers
Full instructions: README-SectionC
See: Section D demo video (~6 minutes)
- Count the yes-or-no questions
- Validate the flavor guess and end the game
- Deploy chatbot to a web page
Full instructions: README-SectionD
See: Section E demo video (~7.5 minutes)
- Game play variations with intents
- Giving users options
- Implement a Player B chatbot
- Chabot vs. chatbot: two chatbots playing the game together
Full instructions: README-SectionE