AI Zone Admin Forum Add your forum

Chatbot Conference in the Netherlands on Tue 24, 2018, with international line-up! Check it out

How to preprocess a special trigger?
 
 

I am storing the name of the user in a database and from time to time, the database sends the session a message “setname username”. See the example:

setname *
- <
set name=<formal>>

+ (
what is my name|who am i)
You're <get name>, right?

+ didntlike
- {topic=nlike}Why?

> topic nlike

+ *
- {topic=random}Thanks for charing.

< topic

+ *
- I don'
t have a reply for that.
- Try 
asking that a different way

The problem is when the user is in a topic like ‘nlike’ that is exited by * and I send the message to set the name, then the conversation exits the topic.

Is there a way to treat that in the begin block? I tried different syntaxes, but no positive result. I thought of something like:

begin

setname *
- <
set name=<formal>>

request
{ok}

begin 

Thanks!

 

 
  [ # 1 ]

Update: I’ve created a question with bounty on Stackoverflow for this. Url: https://stackoverflow.com/questions/48007450/how-to-preprocess-a-special-trigger-in-rivescript-python

 

 
  login or register to react