Hello!
I’ve a question concerning AIML 2.0:
How can I get the last message (or one of the last messages) of the bot?
I know the <request>-tag to get one of the last messages of the user.
HUMAN: Hey!
BOT: Hi. What’s your name?
HUMAN: My name is Otto. How are you?
BOT: I’m fine.
HUMAN: last message
<category>
<pattern>last message</pattern>
<template>Your last message: <request index=“1“/></template>
</category>
BOT: Your last message: I’m Otto. How are you?
Is there a possibilty to get the bot’s answer? ...something like
HUMAN: Hey!
BOT: Hi. What’s your name?
HUMAN: My name is Otto. How are you?
BOT: I’m fine.
HUMAN: last message number one
BOT: My last message: I’m fine.
or
HUMAN: Hey!
BOT: Hi. What’s your name?
HUMAN: My name is Otto. How are you?
BOT: I’m fine.
HUMAN: last message number two
BOT: My last message: Hi. What’s your name?