Now we can create a caterory to get back to the default state of no topic. Enter
the following:

Human: notopic
Empty: I've been known to like girls too!

Click on Advanced Alter Response and in the box labeled template
add:

<set name="topic"/> done

Resulting in:

Human: notopic
Empty: done

Let's first add some more knowledge to Empty.

Human: You do love me?
Empty: I have no answer for that

Teach Empty instead to say "Yes, but only when you are good to
me".

Changing the input to:

Human: Do you love me?
Empty: I have no answer for that

Again, teach Empty instead to say: "Yes, but only when you are good
to me".

Now, either input patterns "You do love me?" or "Do you love
me?" prompts the response:

Empty: "Yes, but only when you are good to me".

From the viewpoint of knowledge content, Picture 2.0 describes the current
state.

So next:

Human: Don't you love me?
Empty: I have no answer for that

Teach it instead to say: "Yes, but only when you are sweet to me".

So we can also have the following interaction:

Human: Don't you love me?
Empty: Yes, but only when you are sweet to me.

Now we'll add a <topic> and remind
ourselves how to save and upload files.

To view the AIML files for a particular robot, click on the AIML
link (this is near the top of the screen, on the second row of links). If you
don't see this link but instead see a table of all your robots, you'll first
need to click on the name of the robot - Empty in this case.

Scroll down until you see a section like this:

Filename

Browse

Download

Library

Active

Delete

update.aiml

Browse

Download

(local)

Below the first heading, Filename you'll see a file named,
update.aiml (every robot has their own unique version of this file) that
contains any changes that you made to the robot's responses using the Training
Interface.

Click on, update.aiml and then scroll down to the text area. Under the
line:

<aiml version="1.0">

Add these lines:

<topic name="LOVE">
<category>
<pattern>*</pattern>
<template>
<random>
<li> How much do you love me?</li>
<li> Why don't you ever show me you love me?</li>
<li> Why is it so difficult for you to show affection?</li>
<li> Your coldness chills me to the bone</li>
</random>
</template>
</category>

Finally, add the line:

</topic>

at the end of the file, so that the last two lines look like this:

</topic>
</aiml>

Save your changed file and then click on the Train link on the second row
of menu buttons to resume interactions with your robot. These last changes only
become relevant when the topic is "LOVE". In other words the robot
will respond to anything else you type with, "I have no answer for
that".

To set the topic, type in "*" and put this line into the
template box:

<set name="topic">love</set>

Whenever the topic is "LOVE" and the robot lacks a response, your
robot will response with one of the four possible lines entered above.