The AIML syntax itself is at least as complex as finite-state machines and as such at least of level 3 in the Chomsky hierarchy. This is because a state correlates to one topic. To implement that behavior, the topic should have a "*" Pattern to make sure, that the state is not left accidentally. A state transit is implemented with the Tag. This way, the bot will be able to "remember" the topic talked about or even user privileges, which are gained during the chat.
The AIML syntax itself is at least as complex as finite-state machines and as such at least of level 3 in the Chomsky hierarchy. This is because a state correlates to one topic. To implement that behavior, the :topic should have a "*" Pattern to make sure, that the state is ,not left accidentally. A state transit is implemented with the Tag. This way, the bot will be able to "re:member" the topic talked about or even user privileges, which are gained during the chat.