Planning the Work

Skills and Conversation Scenarios#

Users will discover your bot via link, or by visiting a Facebook page and start chatting. It can also be embedded to any webpage via Facebook Chat Plugin.

Once the conversation started β€” bot should greet the user with introductory message, describing its purpose and giving a hint of how to start interaction β€” by asking what activity user is scheming to do. After that, bot will ask three questions to learn more about the environment and social distancing factors, evaluate the risk and end the conversation with a relevant link to read more about the activity on CDC website.

This brings you and your students to the three skills, you need your bot to have:

  1. Greet the user and provide instructions
  2. Perform a simple quiz
  3. Handle gibberish (random input) and politely bring user back to known scenarios

You will use Facebook and its Messenger Platform to provide conversational interface to the user, Wit.ai to make it understand input in natural language and Airtable to store health information about the activities and to keep the progress of the Quiz.

This is the overall flow of what you are going to implement:#

../static/img/article/Diagram.png

Dialog Example#

Example of conversation the user might have with your bot:

πŸ€–: Hey! Nice to meet you! You can ask me for advice whether it is safe
to perform an activity in COVID-19 pandemic times. For example:
"Is is safe to go to a restaurant?"
πŸ‘©β€πŸ¦°: Is visiting a hair salon safe?
πŸ€–: How possible you and people around you will wear a mask?
[ 😷 | πŸ€·β€β™€οΈ | πŸ™‚ ]
πŸ‘©β€πŸ¦°: 😷
πŸ€–: How crowded the place will be?
[πŸ§β€β™€οΈ | πŸ‘« | πŸ‘¨β€πŸ‘©β€πŸ‘¦β€πŸ‘¦ ]
πŸ‘©β€πŸ¦°: πŸ§β€β™€οΈ
πŸ€–: How enclosed the space will be around you?
[ πŸ€Έβ€β™€οΈ | πŸ€·β€β™€οΈ | 🏑 ]
πŸ‘©β€πŸ¦°: πŸ€Έβ€β™€οΈ
πŸ€–: Ok! Seems like visiting a hair salon is a safe thing to do!
Learn more about CDC guidelines in: https://www.cdc.gov/coronavirus/2019-ncov/daily-life-coping/personal-social-activities.html#nails
πŸ€–: Try asking me about another activity. Like: "Is it safe to go to the gym?"
// And so on...