Using Rasa to implement a conversation between our users and product via text messages.
User sends a text message.
We receive it and right now manually reply back.
Instead we have used all the incoming data to train Rasa models to detect multiple intents.
We have defined our intents <-> actions mapping in our stories.md file.
We have defined our actions <-> template mapping in our domain.yml file.
Question
Rasa server is up and running.
Text message comes in.
We make an HTTP call to the parse endpint (HTTP API) to fetch the intent.
And now with this intent, I need to fetch the appropriate action, and the template text corresponding to that action defined in domain.yml.
How do I do that with the HTTP API?
Tried
Once I got the intent from the API, I tried to use the /domain endpoint (HTTP API) hoping I could get the intent <-> template mapping from there. But that isn’t possible from the way the API responses are implemented from the Rasa server.
Just use the /webhooks/rest/webhook endpoint! You will need to send the user message and a unique conversation id to this endpoint like this: {“sender”: “rnbdvkdvb823or2nkf”, “message”: “hi”}. As response you will get an array of responses you defined in the stories.md and domain.yaml. But with this solution you will not get any NLU results.
Gotcha, thank you so much for helping out and for being so prompt. As long as the rest webhook uses the intent training data we provided and maps it to the corresponding template response using the trained model, I think we should be good.