Analyze Sentiment

Analyzes the sentiment (positive/neutral/negative) toward a specific company mentioned in an article or snippet. Scores on 0-10 scale and generates a descriptive label.

Job Metadata

Job Kind
analyze_sentiment
Queue
llm
Type
LLM

Recent Activity (Last 24 Hours)

Total Runs
323
Success Rate
96%
Avg Duration
140ms
Last Run
Dec 6 01:25

Used by Workflows

benzinga_article_processing
Stage: analyze_sentiment
View →
general_article_processing
Stage: analyze_sentiment
View →
scraped_article_processing
Stage: analyze_sentiment
View →

Structured Output

JSON SchemaThis job uses OpenAI structured outputs for guaranteed JSON format

Output Schema

{
  "score": integer,  // 0-10 sentiment score
  "label": string    // Descriptive sentiment label
}

Prompts

System Prompt

You are a financial sentiment analyzer. Respond with a JSON object containing a score (0-10) and label.

User Prompt Format

Analyze sentiment towards [Company Name] in this article/snippet.

Score scale:
- 0: Not mentioned
- 1-3: Negative (bad news, downgrades, declining performance, increased risks)
- 4-7: Neutral (factual mention without clear positive/negative sentiment)
- 8-10: Positive (good news, upgrades, strong performance, positive outlook)

Article/Snippet:
[content text]

Example Input

▶ Show example input
Analyze sentiment towards Apple in this article.

Score scale:
- 0: Not mentioned in article
- 1-3: Negative (bad news, downgrades, declining performance, increased risks)
- 4-7: Neutral (factual mention without clear positive/negative sentiment)
- 8-10: Positive (good news, upgrades, strong performance, positive outlook)

Article:
# Apple Reports Record Q3 Earnings

Apple Inc. announced record-breaking third quarter earnings today, beating Wall Street expectations with revenue of $83.9B, up 5% year-over-year. iPhone sales drove growth with $39.7B in revenue.

Expected: {"score": 10, "label": "Positive"}