-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Let the bot initiate the conversation ! #4742
Comments
Hi @aejaex, thank you for your suggestion! I think we might solve this along with #4464, which is currently work in progress. It is not fully planned out yet, but stories might look something like this:
The line starting with |
Yes, that does sound good. I think this is a key feature with which RASA would complete the loop. Any ideas for a timeframe by when this would be developed ? |
We are working on it right now. It requires quite a few code changes, so I don't want to make an estimate yet. |
Ok. Is there any workaround to achieve this as of now? |
@aejaex Yes, on many platforms (e.g. Facebook) you can let the platform send a message to your bot when a user starts the conversation. Just define a user intent like |
Hmm. What if I just want to use my rasa model and host it on a server, and call it's APIs through an android app? I don't have any plans of porting over to the Facebook or Slack platforms etc. All I have been trying to achieve is for the bot to initiate conversations at specific times, such as 6:00 AM, 10:00 AM, etc. I have successfully called the http://localhost:5005/conversations/default/execute endpoint and my actions work, but because the bot is always in the "action_listen" mode, nothing is ever posted to the chat... |
my_greeting = "Hey there, I am a bot, I can help you with XYZ!"
tracker.update(BotUttered(text=my_greeting))
tracker.update(ActionExecuted(ACTION_LISTEN_NAME)) Don't forget to import |
@aejaex If you just want your bot to say something at specific times, you can use the |
@psds01 -- Thanks a ton. This method works. @JEM-Mosig -- Thanks to you too. Also found success with this technique. A third technique I'm using now is to programmatically send a POST request to webhook/default/webhook with an intent message which leads to the bot providing the required conversation started. But I find this method to be a hack unlike the two mentioned above. |
@aejaex FYI: Intent triggering external events and reminders are released now: https://github.com/RasaHQ/rasa/releases |
Is there any "simpler" way by providing the data in rules or stories? |
Description of Problem:
I have been using RASA for the past few weeks and a major lacking I find in it are bot-initiated conversations. There are many use cases for such a feature, and while there are some workarounds to achieve this requirement, there is no "set method" to do this.
Overview of the Solution:
A simple API endpoint/URL where we send a JSON value which allows the bot to stop "action_listen" and utter a message on it's own.
The text was updated successfully, but these errors were encountered: