Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pemagrg1 authored Nov 18, 2018
1 parent 6ff82a8 commit 21e6334
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,36 @@
# Chatbot-using-AIML
As said in Wikipedia, AIML [Artificial Intelligence Markup Language] is an XML dialect for creating natural language software agents.

These days as you can see that Chatbots are in high trend when it comes to Artificial Intelligence. As most of the organizations have already started implementing chatbots on their sites especially on e-commerce websites. 

Some of the best examples of chatbots are:
1. Replika
2. Watson Assistant
3. Alexa
4. Dialogflow
5. Cleverbot

So you want to build a chatbot? No worries! 

We will be using AIML because to build a chatbot using NLP/ML/Deep Learning takes a lot of time to build while AIML helps to build a chatbot easily but the only problem is that you need to feed as many data as you can for the bot to learn and here data doesn't just mean the questions and its category but also the question pattern.

To understand about AIML coding structure, refer to the previous article published: AIML TUTORIAL
Hope you know from the previous articles what each tag denotes and how to get started. 

Here you will need 3 files:

1 Python file: conversation.py<br>
2 aiml file: learningFileList.aiml, and conversation.aiml
conversation.py<br>

Note: Kernal object is the public interface to the AIML interpreter. "learn" method loads the contents of an AIML file into the kernel. While "respond" method is used to get the response from the learned AIML file. And "LEARN AIML" is the pattern that k.respond from conversation.py calls. The <learn> tag loads the AIML file to respond.

#### Demo OUTPUT:
```Loading learning_file_list.aiml…done (0.07 seconds)
Loading conversation.aiml…done (0.00 seconds)
User > Hello Bot
bot > Hello! Nice to meet you.
```

easy wasn't it? Add more to categories to the conversation.aiml so that your bot can answer to any questions! You can also make your chatbot to any domain specific like hotel booking, food ordering, flight booking,etc.

Try it out and let me know how it goes 😍

0 comments on commit 21e6334

Please sign in to comment.