Responding to Requests
Request Format
When your model predicts that your bot should send a response to the user, it will send a request to your server, giving you the information required to select or generate a response. The body of thePOST request sent to your NLG endpoint will be structured
like this:
New in 3.6We have added an
id field to the request body.
This field contains the ID of the response variation.
You can use this information to compose/select a proper response variation on your NLG server.
You can use any or all of this information to decide
how to generate your response.
Response Format
The endpoint needs to respond with the generated response. Rasa will then send this response back to the user. Below are the possible keys of a response and their (empty) types:text or custom to be a valid response.
Configuration
To set up Rasa with your NLG server the following steps are required:- Add required configuration to your
endpoints.yml
endpoints.yml
endpoints.yml
- To start the Rasa server using your NLG backend, add the
--endpointsflag, e.g.: