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

Can that tag contain text with get
 
 

<category> My name is * </category>
template
    Will you code Mr <get name=“name”>

In a following category
<category> Yes i will </category>
<that> Will you code Mr <get name=“name”> <that>
<template>

Is this valid?

 

 
  [ # 1 ]

No. You can’t have gets in <that> tags.

You would need to do something like:

<category>
<
pattern>YES I WILL</pattern>
<
that>WILL YOU CODE MR *</that>
<
template>
OkHere I go!
<
srai>Code Mr <thatstar/></srai>
</
template>
</
category

Although your badly formatted post makes it hard for me to see what you are trying to do. If you explain what you are attempting or give a sample conversation, I will try to help.

 

 
  [ # 2 ]
<category>
     <
pattern>YES THATS COOL</pattern>
     <
template>Ok thanksAnything else?</template>
</
category>
<
category>
     <
pattern>NO THATS ALL</pattern>
     <
that>OK THANKS ANYTHING ELSE</that>
     <
template>It was great pleasure serving youHave a nice day.</template>
     </
category

The output is:-
Enter your message to the bot: yes thats cool
Ok thanks, Anything else?
Enter your message to the bot: no thats all
WARNING: No match found for input: no thats all

 

 

 
  [ # 3 ]

Are you using this on pandorabots.com? If so, “thats” is automatically expanded to “that is” and so you are checking for “NO THATS ALL” when it should be “NO THAT IS ALL”.

 

 
  login or register to react