Detect Negative Thoughts
Detect that user mentioned some negative thought
The Negative Thought Detection feature is used to identify negative thoughts in a conversation.
Negative Thoughts detection is available in 🇺🇸 English, 🇨🇿 Czech, 🇩🇪 German, and 🇪🇸 Spanish dialogues
Accessing Detected Negative Thoughts
To access the detected negative thoughts in the user's conversation, you can use the Input
class's negativeThought
attribute.
Example:
Enumerating Negative Thoughts
There are several types of negative thoughts that can be detected in the conversation. They are defined in the NegativeThought
enumeration with the following values:
ALL_OR_NOTHING_THINKING
CATASTROPHIZATION
MIND_READING_AND_FORTUNE_TELLING
LABELING
EMOTIONAL_REASONING
OVERGENERALIZATION
CONTROL_FALLACY
MUSTS_SHOULDS
SELF_CRITICISM
Example
In this example, we first check if a negative thought is detected in the user's conversation. If yes, we examine which type of negative thought it is and take appropriate action accordingly.
Last updated