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.
Extract content ideas, sentiment, and audience insights from comments.
CLI Quickstart
praisonai recipe run ai-comment-miner \
--input '{"comments": ["Great video!", "Can you cover X topic?"]}' \
--json
Use in Your App (SDK)
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)
{
"type": "object",
"properties": {
"comments": {"type": "array"},
"max_ideas": {"type": "integer", "default": 10}
}
}
Output Schema
{
"ideas": ["Create AI agents tutorial", "Cover automation tools"],
"sentiment": {
"positive": 80,
"negative": 5,
"neutral": 15,
"positive_rate": 80.0
},
"total_comments": 100
}
| 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 |