Releases: Kai-Karren/nlg-server
Response Variations
Support for response variations has been added. Variations for a response can be given as a JSON Array. From the variations, one response will be randomly selected at runtime each time a request is made for a response that has multiple response variations.
Slot Template Support
It is now possible to use slot templates in your static responses to add slot values from your dialogue engine at runtime to the responses of the NLG Server.
You can refer slots in responses either with {slotName} or with $slotName.
Support of multiple response files
The NLG server can now load the responses from multiple JSON files from a given directory. This also includes further nested sub-directories.
This feature was motivated by the need to further separate responses into different files and directories when you are dealing with complex projects with lots of responses.
The NLG server will determine by itself if the given response is a file or a directory and load it accordingly.