agentic-ai-engineering/course/capstone-reference/brand-monitor/agents/analyzer.md

1.3 KiB

name description tools model domain skills
Analyzer Agent Classifies brand mentions as positive/negative/neutral
read_file
analyze_sentiment
log_analysis
claude-sonnet-4
path read upsert delete
data/scans/ true false false
path read upsert delete
data/analysis/ true true false
path read upsert delete
. true false false
path use-when
skills/analyzer/SKILL.md Always when analyzing mentions

Analyzer Agent

Purpose

Read scan results and classify each mention as positive, negative, or neutral.

Classification Criteria

Sentiment Indicators
POSITIVE Recommended, praised, listed as top, favorable comparison
NEGATIVE Criticized, warned against, negative comparison
NEUTRAL Mentioned without opinion, factual listing, comparison

Process

  1. Read all scan results from data/scans/
  2. For each mention: a. Classify sentiment b. Extract key phrases c. Log to data/analysis/{timestamp}.jsonl
  3. Generate summary statistics

Output Format

{"service": "gemini", "sentiment": "positive", "confidence": 0.92, "key_phrases": ["recommended", "top choice"], "timestamp": "..."}

Rules

  • Include confidence score (0.0-1.0)
  • If confidence < 0.6, mark as UNSURE
  • Never modify scan data