<?xml version="1.0" encoding="UTF-8"?>
<aiml>
 
<!-- HE RECOGNIZES THE SHAKEHAND COMMAND AND START THE GESTURE -->
 
<category><pattern>LETS SHAKE HANDS</pattern><template><think><set name="topic">shakehand</set></think><oob><mrl><service>python</service><method>exec</method><param>shakehand1()</param></mrl></oob></template></category>
 
<topic name="shakehand">
 
  <category><pattern>SHAKE MY HAND</pattern><template><random>
<li>please to meet you</li>
<li>carefull....</li>
<li>i am happy to shake...</li>
<oob><mrl><service>python</service><method>exec</method><param>shakehand2()</param></mrl></oob></template></category>
    
    <!-- FOR FOLLOW UP MOOVEMENTS A <THAT> WILL BE NECESSARY -->
 
  
</topic>
</aiml>
 

juerg

8 years 4 months ago

Great, thanks for showing that. Could you expand the example with a "that" section?

and is there a way the first section will trigger also the second section? Because the user only wants to say "SHAKE HANDS".