spackows / CASCON-2021_Game-playing-chatbots

This repo contains samples supporting a workshop at CASCONxEvoke 2021

Home Page:https://pheedloop.com/casconevoke2021/site/sessions/?id=SESR9RHZGCLXEZL2V

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CASCON 2021 Workshop

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 )

 

About the workshop

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.

 

Set up before the workshop

Perform these steps before starting the hands-on workshop:

  1. Register for a free IBM Cloud account
  2. Create an instance of IBM Watson Assistant (Free, "Lite" plan)

 

Instructions

 

Instructions are under construction

 

Section A: Create an assistant with a dialog skill

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

 

Section B: Define entities for colors, ingredients, and flavor names

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

 

Section C: Use a webhook to access the ice cream knowledge base

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

 

Section D: Implement game play and deploy

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

 

Section E: Bonus fun!

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

 

About

This repo contains samples supporting a workshop at CASCONxEvoke 2021

https://pheedloop.com/casconevoke2021/site/sessions/?id=SESR9RHZGCLXEZL2V


Languages

Language:JavaScript 86.2%Language:HTML 13.8%