SDiFI / masdif

Manager for Spoken Dialog Framework
Apache License 2.0
1 stars 0 forks source link

Implement /feedback handling for conversation #33

Closed lumpidu closed 1 year ago

lumpidu commented 1 year ago

The client can send feedback for a message response to the endpoint /conversation/<id>. This feedback is saved into the DB. It can be configured via the Masdif configuration file, if client feedback is forwarded to the dialog system or if it should be only saved into DB. If feedback is provided, the message payload that the client sends needs to contain a message_id of a previously received message.

If the message_id is provided, but the body of the request doesn't contain the required format /feedback{"value":"someval"}, an error is returned. Errors are also returned in case the message_id isn't present, but the feedback paylod is sent.

This PR closes #30, #32