AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

two keywords and template and Conditional
 
 

Hello again dudes!!!

1. How to send a response when detecting two keywords:

example:

Information about the course of android?

template: The android course starts on December 12

AIML reads “course” + “android”

2. Is there a way to condition in AIML so that the template only appears once?

thank u and sorry for my english.
Regards from PerĂº.

 

 
  [ # 1 ]

1.

<category>
 <
pattern>^ COURSE ANDROID ^</pattern>
 <
template>
  
The android course starts on December 12th.
 </
template>
</
category>
<
category>
 <
pattern>^ ANDROID COURSE ^</pattern>
 <
template>
  
The android course starts on December 12th.
 </
template>
</
category

2.
Not really. You could just use “<pattern>^ COURSE ^</pattern>” if you don’t expect your AI to much else than talk about courses. The ^ wildcard matches patterns of 0 or more words, whereas the * wildcard matches patterns of 1 or more words.

 

 
  login or register to react