Analyze Article

Generates a brief gist (1-2 sentences), creates a detailed summary, and classifies the article into one or more types (earnings, M&A, analyst rating, etc.). Content cleaning is handled separately by the clean_markdown_article job.

Job Metadata

Job Kind
analyze_article
Queue
llm
Type
LLM

Recent Activity (Last 24 Hours)

Total Runs
1129
Success Rate
70%
Avg Duration
690ms
Last Run
Dec 6 03:25

Used by Workflows

benzinga_article_processing
Stage: analyze_article
View →
general_article_processing
Stage: analyze_article
View →
scraped_article_processing
Stage: analyze_article
View →

Structured Output

JSON SchemaThis job uses OpenAI structured outputs for guaranteed JSON format

Output Schema

{
  "gist": string,     // One sentence (max 30 words) capturing core message
  "summary": string,  // 2-3 sentences with key details
  "types": integer[]  // 1-3 article type IDs
}

Prompts

System Prompt

You are a professional analysis assistant for financial news. You excel at identifying the core essence of articles, providing clear summaries, and accurately classifying article types.

User Prompt Format

Analyze the following article and provide:

1. GIST: One sentence (maximum 30 words) that captures the essence - what is this article fundamentally about? This should be the core message or main point.
2. SUMMARY: 2-3 sentences with key details and important information.
3. TYPES: Select 1-3 article type IDs that best match this article from the list below. Choose the types that most accurately describe the article's content and purpose. Most articles will match 1-2 types.

Available Article Types:
[List with format: ID. Name - Description]

Article:
[markdown content]

Example Input

▶ Show example input
Analyze the following article and provide:

1. GIST: One sentence (maximum 30 words)...
2. SUMMARY: 2-3 sentences...
3. TYPES: Select 1-3 article type IDs...

Available Article Types:
1. Earnings Report - Company financial results and earnings announcements
2. M&A News - Mergers, acquisitions, and corporate restructuring
3. Product Launch - New products, services, or feature announcements

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. CEO Tim Cook cited strong demand in emerging markets and the success of the new iPhone 15 lineup.

Expected output:
{
  "gist": "Apple exceeded Q3 earnings expectations with $83.9B revenue driven by strong iPhone sales.",
  "summary": "Apple reported record Q3 earnings with revenue of $83.9B, surpassing Wall Street expectations by 5% year-over-year. iPhone sales led the growth at $39.7B, with CEO Tim Cook attributing success to emerging market demand and the iPhone 15 lineup.",
  "types": [1]
}