Analyse de Sentiment
Analyzes the sentiment of a text and returns a classification (positive, negative, neutral) with a confidence score.
Parameters
| Parameter | Type | Required | Variable | Description |
|---|---|---|---|---|
input | dynamic value | Yes | Yes | Text to analyze for sentiment. Accepts a variable or free text. |
aspectBased | boolean | No | No | Enable aspect-based sentiment analysis (e.g. quality, price, service). (Default: false) |
aspects | array | No | No | List of aspects to analyze individually (requires aspectBased enabled). |
includeEmotions | boolean | No | No | Include emotion detection (joy, anger, surprise, etc.) in the analysis. (Default: false) |
language | text | No | No | Language of the text to analyze (ISO 639-1 code). Helps the model better understand the content. |
model.provider | text | No | No | Language model provider (e.g. openai, anthropic). |
model.model | text | No | No | Model identifier to use (e.g. gpt-4o-mini). |
parameters.temperature | number | No | No | Model creativity. Low value recommended for analysis. (Default: 0.3, min 0, max 2) |
parameters.maxTokens | number | No | No | Maximum number of tokens in the analysis response. (Default: 2048, min 1, max 128000) |
outputVariable | text | No | No | Output variable name containing the sentiment analysis result. |
Parameters marked Variable = Yes accept the
{{blockName.field}}syntax.
Output
Output variable : sentimentResult
{
"sentiment": "...",
"score": 0,
"confidence": 0
}
Example
Analyze the sentiment of customer feedback.
Input :
{"text": "Le service client a ete excellent et rapide."}
Output :
{"sentiment": "positive", "score": 0.92, "confidence": 0.95}
Tip
{{sentimentResult.sentiment}} returns "positive", "negative", or "neutral". {{sentimentResult.score}} is a number between -1 (very negative) and 1 (very positive).