<aiml version="1.0.0" encoding="UTF-8">
    <category>
        <pattern>问 题</pattern>
        <template>这是回答</template>
    </category>
    <category>
     <pattern>想 你 了</pattern>
        <template>我也想你了</template>
    </category>
    <category>
        <pattern>一 个 是 * 另 一 个 是 *</pattern>
        <template> 第一个参数是:<star index="1"/>,第二个参数是:<star index="2"/></template>
    </category>
     <category>
        <pattern>我 想 你 了</pattern>
        <template>
            <random>
                <li>我也想你了</li>
                <li>你也太直接了</li>
                <li>人家才不想你呢</li>
                <li>在旁边想去!</li>
            </random>
        </template>
    </category>
 <category>
        <pattern>我 好 *</pattern>
        <template>
            <srai>你好的人民</srai>
        </template>
</category>
    <category>
        <pattern>你 好 * 我 是 *</pattern>
        <template>
            你好啊!<set name="username"><star/></set>很高兴见到你!
        </template>
    </category>
    <category>
        <pattern>晚 安</pattern>
        <template>
           美梦!<get name="username"/>跟你聊天很愉快!
       </template>
    </category>
    <category>
        <pattern>你 喜欢 哪个 明星</pattern>
        <template>张学友</template>
    </category>
    <category>
        <pattern>我 也 是</pattern>
        <that>张学友</that>
        <template>太棒了,我也喜欢刘德华啊,但是非常可惜,最后一次演唱会了</template>
    </category>
    <category>
        <pattern>我们 讨论一下 作业 吧</pattern>
        <template>好啊,那就聊聊<set name="topic">作业</set>吧</template>
    </category>
    <topic name="作业">
      <category>
            <pattern>好难 啊</pattern>
            <template>作业真是难,我也这么想的,太难啦</template>
      </category>
      <category>
            <pattern>作业 怎么 做</pattern>
            <template>你说什么呢,我不理解</template>
      </category>
    </topic>
    <category>
        <pattern>我 的 名字 是*</pattern>
        <template>你好,欢迎来到贪心学院<think><set name="username2"><star/></set></think></template>
    </category>
    <category>
        <pattern>不聊 了</pattern>
        <template>好啊<get name="username2"/>,下次再聊</template>
    </category>
    <category>
        <pattern>我 爱 *</pattern>
        <template>
            <think><set name="star2"><star/>健身</set></think>
            <condition name="star2" value="健身">
                我非常喜欢健身
            </condition>
            <condition name="star2" value="游泳">
                我非常喜欢游泳
            </condition>
        </template>
    </category>
     <category>
        <pattern>我 是 *</pattern>
        <template>
            <think>
                <set name="star"><star/></set>
            </think>

            哇塞,你好
            <condition name="star">
                <li value="健身">帅啊</li>
                <li value="读书">有内涵啊</li>
                <li>666啊</li>
            </condition>
        </template>

    </category>
</aiml>