1 / 22

What is a Chat Bot?

Task Build a Chat bot. Hi Human! My name is ELBOT and I’m a Chat Bot. Click my red button to activate me!. http://www.elbot.com/. What is a Chat Bot? . Visit elbot.com and type to talk to him?. Are all you humans this slow!. Have you blown a fuse?. Seriously!

emelda
Download Presentation

What is a Chat Bot?

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. Task Build a Chat bot Hi Human! My name is ELBOT and I’m a Chat Bot. Click my red button to activate me! http://www.elbot.com/ What is a Chat Bot? Visit elbot.com and type to talk to him? Are all you humans this slow! Have you blown a fuse? Seriously! Are you afraid? Come on Click me! Find me another human this one is faulty!

  2. Chat bots look like they have some intelligence to them. But, in reality their conversationsare just a lot of clever pre-programmed responses to anticipated inputs.. Hmm ! Well I think I’m smarter than a human… Have you met my cousin Siri? If humans’ are so smart why do they always ask us computers daft questions? Do I look like I know what the fox say’s? But I bet if you ask Siri he’ll know…

  3. What is an input? Any information or data that's entered or sent to the computer to be processed is considered input. Input or user input is most often sent to the computer using an input device such as a keyboardor mouse.

  4. What is an output? An output is anything where information comes out of the computer. Printouts are called Hard copy soft copy is viewed on screen Soft copy is a copy of text stored on the computer and only accessible through the computer. The most common method of displaying a soft copy is through a computer monitor or other display.

  5. We are going to try make the user feel like they are having a conversational dialogue “chat” with the computer. To do this we will need to get and store some personal information. We are going to need a container In the computers memory to store the name of the users name. Lets create a VARIABLE , this memory container needs a sensible name.. How about 1 We don’t know the name yet so leave this TEXT block empty. We’ll need a greeting! Add a suitable welcome like this one. Create a new variable 2 TOP TIP Put a space after the word YOU https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#629t4p Lesson 1 Video link optional Teacher example components link

  6. Chat bots need INPUT Type a polite question. Hi, im ROBOT ROB. What’s your name? Get INPUT Call up the User name variable 3 1 Now add the PRINT block. This will display the Username on screen Link your blocks and run your program 5 4 Chat bots give OUTPUT

  7. Simple Chat bot greeting.Challenge • Your program should now look like this. Did you follow the instructions carefully to make the first stage?

  8. Lesson 2 - In our next lesson we are going to make a routine which will do some counting and will output a message to the user which will make the chat bot appear intelligent.

  9. Task- Now create a procedure called chat bot. Place your code inside the procedure. Remember to include the procedure call command.

  10. Lesson 2 Video time 0.15.30 (roughly the middle of the slider) link Load last lessons program. https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#2qg93k

  11. Extension What should we do if the user behaves in an unexpected way. Lets say the user does not enter a name that is sensible. It would be difficult to write a set of instructions to spot that the name is invalid. The program would respond – Hello ksfuhdsakfjhaskfj nice to meet you! But what would happen if the user didn’t type anything but just pressed enter. Our program would say Hello nice to meet you! Have a look at Elbot and try presing enter. NO data – look at elbot no data entered https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#2qg93k

  12. Extension What should we do if the user behaves in an unexpected way. What did Elbot do? Elbot gives a cheeky message, “oi type louder! I can’t hear you!” Elbot must be using an array to store these messages Messages must be called for using a random command like the one we used in the blocklyminecraft task. NO data – look at elbot no data entered Challenge task. Using the Minecraft code to help you. Create a routine (algorithm) that checks to see if no data was entered and gives a random cheeky comment. https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#2qg93k

  13. The slides after this point are work in progress and labels to help explain append. • Class activity using a gratnell talk through what a variable is and the main types • String • Integers • Floats • Array - lists

  14. Nice to meet youFRED ! FRED Did you know that your name is 4 Characters long

  15. APPEND add (something) to the end of a something. synonyms: add, attach, affix, adjoin, include, put in/on; With numbers append really means add e.g. Variable_X = 1 Varibale_Y=2 Variable Z= 0 Variable Z = X APPEND Y = 3 Print Variable_Z So variable Z == 3

  16. Variables and append demonstrated https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#2qg93k

  17. COUNT https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#2qg93k

  18. Advanced While true LOOPS No input Multiple random comment no data entered! https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#ng4hhe

  19. String Variable (text) UserName

  20. String Variable (text) Greeting

  21. String Variable (text) NameLength

  22. String Variable () NameLengthComment

More Related