What is a chat bot
Download
1 / 22

What is a Chat Bot? - PowerPoint PPT Presentation


  • 181 Views
  • Uploaded on

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!

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' What is a Chat Bot? ' - emelda


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
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!

Are you afraid? Come on Click me!

Find me another human this one is faulty!


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…


What is an input
What is an input? But, in reality their conversations

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.


What is an output? But, in reality their conversations

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.


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


Chat bots need INPUT a conversational dialogue “chat” with the computer. To do this we will need to get and store some personal information.

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


Simple chat bot greeting challenge
Simple Chat bot greeting. a conversational dialogue “chat” with the computer. To do this we will need to get and store some personal information.Challenge

  • Your program should now look like this. Did you follow the instructions carefully to make the first stage?


Lesson 2
Lesson 2 - a conversational dialogue “chat” with the computer. To do this we will need to get and store some personal information.

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.


Task- Now create a procedure called chat bot. a conversational dialogue “chat” with the computer. To do this we will need to get and store some personal information.

Place your code inside the procedure. Remember to include the procedure call command.


Lesson 2 video time 0 15 30 roughly the middle of the slider link
Lesson 2 Video a conversational dialogue “chat” with the computer. To do this we will need to get and store some personal information.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


Extension a conversational dialogue “chat” with the computer. To do this we will need to get and store some personal information.

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


Extension a conversational dialogue “chat” with the computer. To do this we will need to get and store some personal information.

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


The slides after this point are work in progress and labels to help explain append
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


Nice to meet you fred fred did you know that your name is 4 characters long

Nice to meet you to help explain append.FRED ! FRED Did you know that your name is 4 Characters long


APPEND to help explain 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


Variables and append demonstrated to help explain append.

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


COUNT to help explain append.

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


Advanced While true LOOPS to help explain append.

No input

Multiple random comment no data entered!

https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#ng4hhe


String Variable (text) to help explain append.

UserName


String Variable (text) to help explain append.

Greeting


String Variable (text) to help explain append.

NameLength


String Variable () to help explain append.

NameLengthComment


ad