Have you republished your bot? While the bot will respond to recent AIML in the training interface, the external bot will not use new AIML until it is republished. Also, this shouldn' t be causing your problem, but only the last sentence of the bot's previous statement will be used for <that>.