1 / 6

Social Media And Global Computing ChatBots

An automated conversational program that uses keyword searches to guess the user's favorite movie genre. From simple to complicated responses, the ChatBot implements a Turing Test to engage in a movie genre guessing game.

Download Presentation

Social Media And Global Computing ChatBots

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Social Media AndGlobal Computing ChatBots

  2. What’s a ChatBot? ● An automated conversational program - Using keyword searches to trigger responses - From the Simple to the Complicated Send and Receive Algorithms - The Turing Test

  3. Simple ChatBotAlgorithm 1. Begin with a statement to set the context: "Hello! Can you guess my favorite movie?" 2. If the response is: "western" OR "comedy" OR "animation" OR "love" Then reply with "Nope." 3. If the response is: "scifi" OR "action" OR "adventure" Then reply with Yep, that’s the genre.“ 4. If the response is: "neo" OR "morpheus" OR "trinity" OR "agent" Then reply with "Yep. That’s right."

  4. Simple ChatBotAlgorithm 5. If the response is: "mr" AND "smith" Then reply with "Yep. He’s in it." 6. If the response is: "science" AND "fiction" Then reply with "Yep, that’s the genre." 7. If the response is: "matrix" Then reply with "You got it! Congratulations!" 8. If response is anything else, then reply with ONE of the following: "Oh come on, you can do better than that!" "You’re getting closer!" "That's a strange thing to say?" "Can you rephrase that?"

  5. Simple ChatBotImplementation chat.welcomeMessage("Hello! Can you guess my favorite movie?");chat.keyResponseAny("Nope.","western","comedy","animation","love");chat.keyResponseAny("Yep, that’s the genre.","scifi","action","adventure");chat.keyResponseAny("Yep. That’s right.","neo","morpheus","trinity","agent");chat.keyResponseAll("Yep. He’s in it.","mr","smith"); chat.keyResponseAll("Yep, that’s the genre.","science","fiction"); chat.keyResponseAll("You got it! Congratulations!","matrix"); chat.noMatchMessage("Oh come on, you can do better than that!");chat.noMatchMessage("You’re getting closer!");chat.noMatchMessage("That's a strange thing to say?");chat.noMatchMessage("Can you rephrase that?");

  6. A ChatBotSession -> The Chatbotsaid: Hello World! Can you guess my favorite movie? -> The User said: Is it a western? -> The Chatbotsaid: Nope. -> The User said: Is it a comedy? -> The Chatbotsaid: Nope. -> The User said: Is it a scifi movie? -> The Chatbotsaid: Yep, that's the genre. -> The User said: Is it Star Trek? -> The Chatbotsaid: Oh come on, you can do better than that! -> The User said: 2001? -> The Chatbotsaid: You’re getting closer! -> The User said: Blade Runner -> The Chatbotsaid: That's a strange thing to say? -> The User said: Is Morpheus in it? -> The Chatbotsaid: Yep. That's right. -> The User said: Is it the Matrix? -> The Chatbotsaid: You got it! Congratulations!

More Related