> ## 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 Comment Miner

> Mine comments for content ideas and audience insights

# AI Comment Miner

Extract content ideas, sentiment, and audience insights from comments.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
flowchart LR
    A[Comments] --> B[AI Comment Miner]
    B --> C[Analysis]
    C --> D[Ideas & Insights]
    
    style A fill:#e1f5fe
    style D fill:#c8e6c9
```

## CLI Quickstart

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai recipe run ai-comment-miner \
  --input '{"comments": ["Great video!", "Can you cover X topic?"]}' \
  --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-comment-miner')
from tools import extract_ideas, analyze_sentiment, mine_comments

# Extract content ideas
ideas = extract_ideas(
    comments=["Can you cover AI agents?", "More tutorials please!"],
    max_ideas=10
)

# Analyze sentiment
sentiment = analyze_sentiment(comments)

# Full mining pipeline
results = mine_comments(comments)
```

## Input Schema

```json theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
{
  "type": "object",
  "properties": {
    "comments": {"type": "array"},
    "max_ideas": {"type": "integer", "default": 10}
  }
}
```

## Output Schema

```json theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
{
  "ideas": ["Create AI agents tutorial", "Cover automation tools"],
  "sentiment": {
    "positive": 80,
    "negative": 5,
    "neutral": 15,
    "positive_rate": 80.0
  },
  "total_comments": 100
}
```

## Extracted Insights

| Type        | Description                    |
| ----------- | ------------------------------ |
| Questions   | Topics people are asking about |
| Pain Points | Problems to solve              |
| Requests    | What they want to see          |
| Trends      | Trending topics mentioned      |

## Environment Variables

| Variable         | Required | Description         |
| ---------------- | -------- | ------------------- |
| OPENAI\_API\_KEY | Yes      | For idea extraction |

## Related Tools

* [AI Performance Analyzer](/docs/examples/agent-recipes/creator-suite/ai-performance-analyzer)
* [AI Angle Generator](/docs/examples/agent-recipes/creator-suite/ai-angle-generator)
