Targeted Sentiment Analysis - Beta
Analyze sentiment for specific topics.
Documentation Index
Fetch the complete documentation index at: https://www.domo.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Body
Request for sentiment analysis using the Messages API.
Supports two modes:
- Simple sentiment: When topics is null/empty, analyzes overall sentiment
- Targeted sentiment: When topics provided, analyzes sentiment for each topic
Validation happens primarily in AIValidator, not in this constructor.
The input message content to analyze (text, images, documents, etc.)
Text-based message content.
- Option 1
- Option 2
- Option 3
Optional list of topics for targeted sentiment analysis. When provided, sentiment is analyzed for each topic individually. When omitted or empty, overall sentiment of the content is analyzed. Topic names must start with a letter and contain only letters, numbers, and underscores (e.g., 'customer_service', 'productQuality').
Optional instructions for sentiment analysis behavior
The ID of the model to use (optional, uses default if not specified)
Additional model parameters (temperature, max_tokens, etc.)
AI session ID for associating with existing session
Configuration for reasoning behavior
Returns true if this is a targeted sentiment request (has topics).
Returns true if this is a simple sentiment request (no topics).
Response
Successful targeted sentiment analysis response.
Response for targeted sentiment analysis containing sentiment per topic.
Map of topic to sentiment (includes NOT_APPLICABLE for unmentioned topics)
The ID of the model used
Whether the model is a customer model
The AI session ID
The request ID
Token usage information