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

While chatting when pattern doesn’t match Program O replying with blank response. How to fix it?
 
 

I am designing a chat bot with some FAQ’s but sometime when a question doesn’t match with any of its database records, it gives blank reply while I have defined a Error Default Message. 
Is it possible that we can define more than one error message?
Please please help me.

 

 
  [ # 1 ]

you should have one record that matches anything “*” as a catch all when there is no other match.

 

 
  [ # 2 ]

What happens to the catch all when there is another match?

( I think your response may lead to interesting discussion, Carl. )

 

 
  [ # 3 ]

Exactly 8pla.net sir, as this problem is specific to Progam-O interper, i am expecting dave sir should reply for this post. grin

 

 
  [ # 4 ]

Dave Mortan sir,
Kindly reply. I need your help urgently. Please sir, kindly suggest me a solution for this.
“Problem:  Program- O php, mysql interpreter giving blank response, when i am typing something vague. What should i do, that it should not give any blank reply at any condition.
Thanks

 

 
  [ # 5 ]
Hari Shekhar - Dec 14, 2013:

Dave Mortan sir,
“Problem:  Program- O php, mysql interpreter giving blank response, when i am typing something vague. What should i do, that it should not give any blank reply at any condition.

When you enter a string, your Program O interpretor is querying your mySQL db for an appropriate match to that string.  The basic Program O has a built in function for “ranking” db matches and gives each one a score- the highest score is returned with the given response.  Very simple.  Your db table “AIML” or similar should have a row which will match to a wildcard (”*” or “_” in AIML).  In that row put your response “No match found” or “Could you rephrase your query”, etc.  Program O also has a debug mode where you can see all the detailed workings for any given input- also good for trying to figure out how to mod the program.

You should really have this discussion at the Program O forum anyhow…

 

 
  [ # 6 ]
Hari Shekhar - Dec 14, 2013:

Exactly 8pla.net sir, as this problem is specific to Progam-O interper, i am expecting dave sir should reply for this post. :-)

Carl is correct of course.  That next step, finding the best match, gets interesting for discussion purposes.  So, let’s have a look at some AIML for this:

...
<
topic name="ERRORMESSAGES">
...
<
category>
<
pattern>*</pattern>
<
template>
<
random>
<
li>You got an error.</li>
<
li>What errors are you getting?</li>
<
li>How many errors have you gotten recently?</li>
</
random>
</
template>
... 

You can call me by my nickname, 8pla.

 

 
  [ # 7 ]

Thank you so much carl and 8pla, your was really helpful for me.
I am facing one more problem, Sometime when I type a string [ which is written in my AIML file with a and <template> tag] in input box, interpreter gives a wildcard template, since wildcard should be only for those entries, which does not match any pattern. kindly help me to short out this problem.
Thanks

 

 
  [ # 8 ]

Could you post the AIML category you are having trouble with. I suspect it has punctuation in it.

 

 
  [ # 9 ]
Steve Worswick - Dec 15, 2013:

Could you post the AIML category you are having trouble with. I suspect it has punctuation in it.

...or something like a leading space in the mySQL table row for ...*</pattern>...

 

 
  [ # 10 ]

Without seeing at least the contents of a debug file (and preferably, also the error logs), it’s difficult to say what may be causing the problem. Have a look at this post to get some suggestions for things to check and correct. If that fails, use the “Contact Dave” link unser my avatar image to send me your email address (please don’t post it publicly), and I’ll send detailed instructions about sending me copies of your debug files and error logs.

 

 
  login or register to react
‹‹ Program-O      Classic 1966 Eliza in AIML ››