Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drive a conversation #117

Open
agrawal-mohit opened this issue Mar 28, 2018 · 1 comment
Open

Drive a conversation #117

agrawal-mohit opened this issue Mar 28, 2018 · 1 comment

Comments

@agrawal-mohit
Copy link

agrawal-mohit commented Mar 28, 2018

The current script design let's you program a response for a given user message. There are scenarios where

  1. The bot might be required to send a proactive message
  2. The reply from the bot may not be dependent on the user input but have to be sequenced.
    Ex - questionnaires.

Is there a way to do this ?

Thanks for your suggestions.

@johnnymast
Copy link

Hi @agrawal-mohit,

I am the current maintainer of Rivescript-PHP (not this package) but I asked the maintainer the same question. To answer your question 1 I asked, "What if you would use Rivescript on a website for a customer support section and you want the bot to say hell how can I help you?" when the chatbot is engaged.

Well, the current Rivescript definition is a lurker approach but you can get around this. If you initialize your Rivescript instance (in Python or PHP) you can just call reply() with a pre-configured response. for example

+ welcome
- Hi how can I help you?

And then when you call reply on your instance send "welcome" trough to the bot. It will automatically reply with "Hi how can I help you?".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants