Skip to main content

AI Comment Miner

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)

Input Schema

{
  "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
}

Extracted Insights

TypeDescription
QuestionsTopics people are asking about
Pain PointsProblems to solve
RequestsWhat they want to see
TrendsTrending topics mentioned

Environment Variables

VariableRequiredDescription
OPENAI_API_KEYYesFor idea extraction