Fraud Risk Analysis
AI-powered service that performs a fraud risk analysis of single messages or chat conversations
/service/fraud_risk
Perform a fraud risk analysis of any input
REST API
POST /service/faud_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 fraud risk analysis against a message:
curl https://{{ tenant }}.lightenup.ai/service/fraud_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":"
"message":"0"
}]
}
{
"results": [ {
service":"
fraud_risk
", "message":"0"
}]
}
Response example:
{
"role": "customer_assistant",
"message": "One second please",
"language": "fr-FR",
"output": "{\"results\":[{\"service\":\"fraud_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",
}