Actions9
Detect Emotion
AI-generatedSummary
Detect the primary emotion and emotion scores in a given text input by sending it to the Tone API's /detect-emotion endpoint.
Inputs
- Text (required) — The text to analyze for emotion detection, with a maximum length of 10,000 characters.
Output shape
a single JSON object containing the primary emotion detected and associated emotion scores for the input text
The input text is validated to not exceed 10,000 characters. The output JSON structure is directly from the Tone API response, providing detailed emotion detection results.
Examples
Example 1: Detect primary emotion in customer feedback text.
Provide the 'Text' parameter with customer feedback to receive the detected primary emotion and scores.