Hi, How can I make a chatbot start when it’s sent a start notification (i.e. the chatbot will be waiting for such a notification) when it receives it, it’ll give a welcome message before the user types. It’s important that the chatbot does not start until it’s told to, is there any way to control this? how? thanks
You can use the REST API to trigger an action.
In your endpoints.yml add:
action_endpoint:
url: "http://localhost:5055/webhook"
and in credentials.yml add:
rest:
rasa:
url: "http://localhost:5002/api"
Then you just POST the following JSON to http://localhost:5055/webhook/
{
"next_action": action_name_that_you_want_to_trigger,
"sender_id": id_of_the_user_you_want_to_send_it_to
}
2 Likes