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..

How to disregard things that aren’t part of a set?
 
 
<category>
<
pattern> <set>numbers</set>  <set>numbers</set> </pattern>
<
template>
<
map name="numbers"><star/></map> <map name="numbers"><star index ="2"/></map>
</
template>
</
category

So it can do this:
user: 1 1 bot:one one
user: 1 2 bot:one two

But if the user says 1 and two (inbetween the numbers) the bot doesnt understand
is there a way I can make the bot accept disregard things that aren’t part of the number set?

I would like the user to say something like wildcard 1 wildcard 2 wildcard
and the bot responding with one two

 

 
  [ # 1 ]

Like this?

<category>
<
pattern> * <set>numbers</set> * <set>numbers</set> *</pattern>
<
template>
<
map name="numbers"><star index="2"/></map> <map name="numbers"><star index ="4"/></map>
</
template>
</
category
 

 
  [ # 2 ]
Steve Worswick - Apr 18, 2016:

Like this?

<category>
<
pattern> * <set>numbers</set> * <set>numbers</set> *</pattern>
<
template>
<
map name="numbers"><star index="2"/></map> <map name="numbers"><star index ="4"/></map>
</
template>
</
category

Oh. That was easier than I thought. Thanks.

 

 
  [ # 3 ]

No problem. The beauty of AIML is its simplicity.

 

 
  login or register to react