Skip to main content
Version: 2.2.3

Sentiment analysis

This method makes it possible to analyze a text, identifying its general sentiment, through a REST web service.

POST /apigateway/se/rest/v1/copilot/sentiment-analysis

Supported attributes:

Request body parameterTypeRequiredDescription
promptStringYesText to be analyzed

Request example:

{
"prompt": "string"
}

Response example:

200 OK

{
"success": true,
"total": 1,
"results": [
{
"positive_score": 0.0,
"negative_score": 0.0,
"neutral_score": 0.0,
"sentiment": ""
}
]
}