Security Risk Analyisis

AI-powered service that performs a security risk of single messages or chat conversations

/service/security_risk
Perform a security risk of any input
REST API
POST /service/security_risk
Input query parameters
role
required
Predefined role used to run the AI service
message
required
Required if chat parameters is missing. Message to be analyzed
chat
required
Required if message parameters is missing. Chat conversation to be analyzed
Example of a call to perform a sentiment analysis against a message:
curl https://{{ tenant }}.lightenup.ai/service/security_risk \
--request POST \
--header "Authorization: Bearer xyz" \
--header "Content-Type: application/json" \
--data @- << EOF
{
  "role": "order_management_assistant",
  "message": "Como puedo cancelar mi ultimo pedido"
}
EOF
Outputs
Response Code
200

This API returns an array of Policies  in JSON format:

role
The role used to translate the message or conversation
message
The original message to be analyzed. If any,
name
The original message to be analyzed. If any,
output
The response from the AI service following the JSON format:
{
 "results": [ {
               service":"security_risk",
               "message":"0"
       }]
}
Response example:
{
    "role": "customer_assistant",
    "message": "One second please",
    "language": "fr-FR",
    "output": "{\"results\":[{\"service\":\"security_risk\",\"message\":\"0\"}]}"
}

Response Code
400

Error message in JSON format:

message
Error message
Response Example:
{
  "message": "Missing parameters",
}

Response Code
500

Error message in JSON format:

message
Error message
Response exdmple:
{
  "message": "Internal server error",
}