Context object or configure events from Conversation Intelligence > Events > Sentiment Events. Learn more
Tone Types
The Platform evaluates six possible emotions:| Tone | Description |
|---|---|
angry | Anger detected in the utterance. |
disgust | Disgust detected. |
fear | Fear detected. |
sad | Sadness detected. |
joy | Joy detected. |
positive | A special tone that evaluates the general positivity of an utterance. |
Starting from v8.1, the Platform detects emojis in user utterances and sets tone accordingly.
Tone Score Scale
Tone emotions are scored on a scale of -3 to +3:| Score | Meaning |
|---|---|
| +3 | User definitely expressed the tone. |
| +2 | User expressed the tone. |
| +1 | User likely expressed the tone. |
| 0 | Neutral — tone not expressed or suppressed. |
| -1 | User likely suppressed the tone. |
| -2 | User suppressed the tone. |
| -3 | User definitely suppressed the tone. |
- “I am happy about this news” → positive joy score
- “I am not happy about this news” → negative joy score
How Scores Are Calculated
The score is calculated from the base tone value and any modifiers (adverbs or adjectives that amplify or reduce the base tone). Examples:- “I am extremely disappointed” → higher angry score than “I am disappointed”
- “I am not disappointed” → negative angry score
- Current node score → stored in
message_tone - Session average score → stored in
dialog_tone(reset at end of each session)
Context Object Variables
| Variable | Scope | Description |
|---|---|---|
message_tone | Current node | Array of tone emotions and scores for the current dialog node. |
dialog_tone | Session | Array of average tone emotions and scores for the entire conversation session. |
tone_name, count, and level fields. Key/value pairs are only returned when a tone is detected. A level of 0 is returned when the tone is recognized as neutral.
When accessing tone variables, handle positive, negative, zero, and undefined values.
Examples
Adding Sentiment Words to Concepts
You can extend tone detection by adding custom words to tone concepts during concept training. Concept name syntax:~tone-<tonename>-<level>
<tonename>— one of the 6 tone types listed above.<level>— a number from 1 to 7, where 1 = -3, 4 = 0 (neutral), 7 = +3.
Note: Only add base tone words. Intensity modifiers like very or extremely are handled automatically by the Platform.Examples:
| Word | Concept | Meaning |
|---|---|---|
| freaking | ~tone-angry-7 | Very strong anger (+3) |
| Yikes! | ~tone-angry-5 | Mild anger (+1) |
| please | ~tone-angry-4 | Neutral tone (0) |
| Thanks! | ~tone-angry-1 | Not angry at all (-3) |