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

Puzzling over redirects
 
 

Can someone tell me what’s wrong with this code?

my name is _
-  A pleasure to meet you, <get name>!

i am _
my name is _ 

It doesn’t seem to matter how I strip this down (and this is the very stripped version), both my local Python install and the online RiveScript tester respond to “I am Kat” with “ERR: No Reply Matched”. I’ve tested a few other redirects and they work okay; what is it about this one that’s choking the bot?

Somebody please point out my obvious and foolish beginner’s error; I am far too frustrated to be proud. smile

 

 
  [ # 1 ]

Try

my name is _
-  A pleasure to meet you, <get name>!

i am _
my name is <star

What was probably happening is the _ was being stripped out from the redirect for being a non-alphanumeric character. To pass a wildcard on through a redirect you have to use the <star> tags to copy them into the redirect. (Think of the @ command as being “pretend the user said this instead” rather than being a copy/paste of the trigger you’re redirecting to)

So if the user says “I am Kat” you want it to be like “pretend they said: my name is Kat” and to do that you use the <star> to insert the name from the “i am _” trigger.

 

 
  login or register to react