So I am fairly new to the <that> tag. I have always known about it but never really dabbled with it. So sorry, but this is a fairly easy [noob] question.
So I finally wrote some code for <that> tag when I realized something, do all the commands need their own individual AIML if they are all connected?
Here is an example….
<think><set name="lights"><star /></set></think>
<category>
<pattern>Turn on some lights</pattern>
<template>Is it dark in here?
<think><set name="it"><set name="topic">lights</set></set></think>
</template>
</category>
<category>
<pattern>*</pattern>
<that>is it dark in here?</that>
<template>Okay, which light would you like to turn on?
<think><set name="lights"><star /></set></think>
</template>
</category>
<category>
<pattern>*</pattern>
<that>Okay, which light would you like to turn on?</that>
<template>Turning on the <star />
<think><set name="lights"><star /></set></think>
</template>
</category>
<category>
<pattern>*</pattern>
<that>Turning on the <star /></that>
<template><template><silence msec="2000" /><EMail="SEND" To="[email protected]" subject="#LampOn" Message="Hello Word"><silence msec="2000" /><ChatInput="send email"><silence msec="6000" />The lamp is now on</template>
<think><set name="lights"><star /></set></think>
</template>
</category>
This code basically turns on a lamp using an email trigger top IFTTT.com
Can I use this long code in only one AIML or do they all need to have its own individual AIML file? Do any of you see anything wrong with this code?