2021年3月10日星期三

AIML multiple patterns with one response

Lets say I want the user to have a single response to multiple greetings for the bot. Is there a better way to write this using an "or" statement or a list instead of writing each case out with all the templating like this to redirect the pattern?

<category>      <pattern> HELLO</pattern>      <template>          Hello User!      </template>  </category>     <category>      <pattern> HI</pattern>      <template>          <srai> HELLO</srai>      </template>  </category>         <category>      <pattern> HOWDY</pattern>      <template>          <srai> HELLO</srai>      </template>  </category>  
https://stackoverflow.com/questions/66575089/aiml-multiple-patterns-with-one-response March 11, 2021 at 09:06AM

没有评论:

发表评论