ChatBot+Tutorial


 * 2: Fancy a Chat?**



This lesson will introduce
 * Handling text
 * Handling user input
 * Conditional loops
 * Conditional statements

In this lesson, you will create your own Turing Test-style chatbot.
 * Introduction**

Let’s list the main stages our chatbot needs to do – that is, write an **algorithm**: walk onto screen greet user ask for user’s age ask for user’s hobby ask user to tell you more wind up conversation walk off screen
 * Designing the solution**


 * Algorithm **

Look at the document below to understand the algorithm.

Now watch screencast **Chatbot** which will take you through the stage of creating the code for the algorithm above. Alternatively, you could try coding this without the help of the screencast. To help, here are some of the blocks you might find useful :
 * Task 1**



Add an extra question to the chatbot.
 * Task 2**
 * Task 2**


 * Task 3**

Look at the worksheet below:



Now create the code for your chatbot in BYOB.
 * Task 4**

Extension 1 What did Eliza and Cleverbot do to make themselves sound more human? __________________________________________________________________ __________________________________________________________________ __________________________________________________________________ Now show your answer to your teacher then try to adapt your chatbot in similar ways.
 * Task 5**


 * Task 6**