Tone API icon

Tone API

Analyze tone, detect emotions, and rewrite text using the Tone API

Build Audience

AI-generated

Summary

Build an audience profile by analyzing a text input along with its detected primary emotion.

Inputs

  • Text (required) — The original text to analyze for audience profiling, up to 10,000 characters.
  • Emotion (required) — The detected primary emotion related to the text (for example, frustrated, angry, anxious, joy).

Output shape

a single JSON object containing the audience profile data generated from the provided text and emotion

The operation processes one item at a time and returns the audience profile for each input. The input text length is validated against a 10,000 character limit.

Links

Discussion