> ## Documentation Index
> Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Context Enricher

> Enrich articles with background, prior art, and hype detection

# AI Context Enricher

Enrich news articles with background context, prior art references, stakeholder analysis, and hype detection.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
flowchart LR
    A[Articles] --> B[AI Context Enricher]
    B --> C[LLM Analysis]
    C --> D[Enriched Articles]
    
    style A fill:#e1f5fe
    style D fill:#c8e6c9
```

## CLI Quickstart

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai recipe run ai-context-enricher \
  --input '{"articles": [...]}' \
  --json
```

## Use in Your App (SDK)

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
import sys
sys.path.insert(0, 'agent_recipes/templates/ai-context-enricher')
from tools import enrich_article, add_background, detect_hype

# Enrich single article
enriched = enrich_article(article)

# Add background context
with_background = add_background(article)

# Detect hype level
hype_analysis = detect_hype(article["content"])
```

## Input Schema

```json theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
{
  "type": "object",
  "properties": {
    "articles": {"type": "array"},
    "include_background": {"type": "boolean", "default": true},
    "include_prior_art": {"type": "boolean", "default": true},
    "include_stakeholders": {"type": "boolean", "default": true},
    "detect_hype": {"type": "boolean", "default": true}
  }
}
```

## Output Schema

```json theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
{
  "enriched_articles": [
    {
      "title": "...",
      "background": "Historical context...",
      "prior_art": ["Related work 1", "Related work 2"],
      "stakeholders": ["Company A", "Researcher B"],
      "hype_score": 0.7,
      "hype_indicators": ["buzzwords", "unverified claims"]
    }
  ]
}
```

## Environment Variables

| Variable         | Required | Description      |
| ---------------- | -------- | ---------------- |
| OPENAI\_API\_KEY | Yes      | For LLM analysis |

## Related Tools

* [AI Signal Ranker](/docs/examples/agent-recipes/creator-suite/ai-signal-ranker)
* [AI Brief Generator](/docs/examples/agent-recipes/creator-suite/ai-brief-generator)
