[alicebot-style] How a chatbot operates?

Dr. Aliasghar sayficar alicebot-style@list.alicebot.org
Fri, 18 Feb 2005 10:40:09 +0330


Hi every body

I like to know the structure of a chatbot. I tried to write it down my 
understanding. Is that right. please give me the right idea.

Ali

                        How a Chatbot operates?

As I realized a chatbot consists of the following parts:
1.	Dictionary: Collection of the words of the language in use. As 
same as "Tokens in lexical analyzer" in a compiler.
2.	Corpus: structure of the sentences of the language in use. As 
same as "BNF in Parser" in compiler.
3.	AIML file: Collection of conversation patterns of the language 
in use called data objects. Each data object has a name and several 
categories. Each category is an ordered pair, the first element relates 
to the input pattern (or human question or answer) and the second 
element relates to the output pattern (or chatbot answer or question). 
In fact the first element and the second one may have a one to many 
relationships. That means each question may have several answer 
candidates. 
Also, the AIML content may be updated when it is being used (or 
trainable).
4.	Chatbot process: gets an input, processes it, finds its relevant 
pattern, chooses the suitable answer and passes the answer to the human. 
Also may create and store a new data object as a result of each 
conversation.