Comparing AIML withis a bit like talking apples and oranges.
AIML is a markup language, a variant of XML, used for pattern matching. When used by a skilled and intelligent practioner, AIML pattern matching is adequate for most natural language applications, such as IoT. I encourage you to look into the Pandorabots AIML API at.
on the other hand uses machine learning techniques for fuzzy interpretation of intent-based dialogs in order to track state.
Dialog state tracking is one of the key sub-tasks of dialog management, which defines the representation of dialog states and updates them at each moment on a given on-going conversation.
See also my quick and dirty webpages: