Il tag <thatstar index="n"/> lascia il posto al frammento di testo relativo a “*” contenuta in un <that>…</that>.
Index= “n” è facoltativo e se lasciato indefinito assumerà il valore “1”.
Il tag <thatstar/> è equivalente a <thatstar index=”1”/>
Immaginiamo che il bot faccia domande di questo tipo:”Che tipo di computer hai?” “Che tipo di monitor hai?” “Che tipo di mouse hai?” ecc..
Si possono ottenere molte risposte di “default” con questa categoria:
<aiml>
<category>
<pattern>*</pattern>
<that>CHE TIPO DI * HAI</that>
<template><star/> è un
<random>
<li>buon</li>
<li>gran</li>
<li>bel</li>
</random> <thatstar/>.
</template>
</category>
</aiml>
In questo modo potremo ottenere un dialogo simile a questo:
BOT: che tipo di monitor hai?
UTENTE: Sony 22’
BOT: Sony 22’ è un gran monitor.
BOT: che tipo di mouse hai?
UTENTE: Logitech
BOT: Logitech è un bel mouse.
BOT: che tipo computer hai?
UTENTE: AMD 4,2 Ghz
BOT: AMD 4,2 Ghz è un buon computer.