Hyperflow Feedback
Provides feedback on a proposed answer
hyperflow_feedback
Validates the quality of a proposed Agent answer to a user query by complementing, correcting or adjusting it.
WEBSOCKET
{ action=message, service=chat_feedback }
Input query parameters
action
required
Predefined role used to run the AI service
service
required
The new of the chat service
role
required
Predefined role used to run the AI service
instruction
required
The Agent's proposed answer.
message
required
Required if chat parameters is missing. User message
chat
required
Required if message parameters is missing. Full chat or conversation
language
required
Language in ISO-639 format to translate into
Example of chat assist message:
wss://{{ tenant }}.ws.lightenup.ai
Message:
{
"action" : "service"
"service" : "hyperflow_assist",
"role": "customer_assistant",
"message": "The user message,
"instruction": "The Agent's proposed answer",
"language":"en-CA"
}
Outputs
Response Code
200
This API returns an array of Policies in JSON format:
Asynchronous Reponses:
{
"action": "message",
"service": "feedback",
"state": "completed",
"connectionId": "T1lsTcMtIAMCLgQ=",
"messageId": "T1lsqcNHIAMCLgQ=",
"statusCode": "200",
"message": "{\"results\":[{\"service\":\"feedback\",\"message\":\"Feedback on the agent's proposed answer\"}]}"
}
Response Code
400
Error message in JSON format:
message
Error message
Response Example:
{
"action": "message",
"service": "localization",
"state": "error",
"connectionId": "T1lsTcMtIAMCLgQ=",
"messageId": "T1lsqcNHIAMCLgQ=",
"statusCode": "400",
"message": "Missing parameters"
}
Response Code
500
Error message in JSON format:
message
Error message
Response exdmple:
{
"action": "message",
"service": "localization",
"state": "error",
"connectionId": "T1lsTcMtIAMCLgQ=",
"messageId": "T1lsqcNHIAMCLgQ=",
"statusCode": "400",
"message": "Missing parameters"
}