Thursday, 11 July 2013

How to Create a Simple Chatbot

Ever wanted to impress your friends by having a conversation with your computer? Well, 
now you can with this very simple chatbot made with notepad.



Steps :


1) Open notepad by going to Start> All Programmes> Accessories> Notepad

2) Once you have notepad up, copy the following code



o                                                        dim fname
o                                                        fname=inputbox("Hi! What is your name")
o                                                        fname=inputbox("How are you feeling " & fname)
o                                                        fname=inputbox("Why are you feeling " & fname)
o                                                        fname=inputbox("Cool!")
o                                                        fname=inputbox("Bye!!!")

3) Go to File> Save As

o                    NOTE:
                     Change the "Save as type" box to "All Files"
o                                                        Type "chatbot.vbs" into file name and click "Save"

Open the file and you will get a screen like the picture below 



IT’S  DONE!!

No comments:

Post a Comment