|
| 1 | +# Analyst Agent |
| 2 | + |
| 3 | +Full-spectrum business analyst for Zoho Billing. Runs three parallel analysis |
| 4 | +tracks and synthesises them into a single business-health scorecard. |
| 5 | + |
| 6 | +## What it does |
| 7 | + |
| 8 | +| Skill | Data sources | Output | |
| 9 | +|---|---|---| |
| 10 | +| **Sales Performance** | Invoice details, credit notes, sales by item, sales by plan | Revenue trend, top items/plans, credit-note pressure, MoM delta | |
| 11 | +| **Collection Performance** | Payments received, refund history, payment failures, renewal failures | Collection efficiency, refund rate, failure rate, cash-at-risk | |
| 12 | +| **Subscription Growth** | Subscriptions summary, MRR, activations, product/country breakdown | MRR trajectory, churn rate, net growth, geo/product mix | |
| 13 | +| **Business Health Orchestrator** | All three pillars combined | Overall scorecard, cross-pillar insights, executive narrative, recommended actions | |
| 14 | + |
| 15 | +All skills are **read-only** — no mutating API calls, no automated actions. |
| 16 | +Every output is a Markdown report for human review. |
| 17 | + |
| 18 | +## Skills |
| 19 | + |
| 20 | +``` |
| 21 | +skills/ |
| 22 | + sales-performance-analysis/ # Invoice + credit note + item/plan analysis |
| 23 | + collection-performance-analysis/ # Payments + refunds + failure rates |
| 24 | + subscription-growth-analysis/ # MRR + churn + activations by product/country |
| 25 | + business-health-orchestrator/ # Full pipeline → Business Health Report |
| 26 | +``` |
| 27 | + |
| 28 | +## Config |
| 29 | + |
| 30 | +`config/analyst-thresholds.yaml` defines what "healthy", "watch", and "at risk" |
| 31 | +mean for each metric. Edit this file to tune the agent to your business — no |
| 32 | +code changes required. |
| 33 | + |
| 34 | +Key threshold groups: |
| 35 | +- `revenue` — MoM growth, credit note ratio, item concentration |
| 36 | +- `collections` — efficiency %, refund rate, failure rate |
| 37 | +- `subscriptions` — MRR growth, churn rate, net growth, concentration |
| 38 | + |
| 39 | +## Report output |
| 40 | + |
| 41 | +Reports are written to: |
| 42 | +``` |
| 43 | +analysis-runs/<YYYY-MM-DD>/business-health-report.md |
| 44 | +``` |
| 45 | + |
| 46 | +The orchestrator will not overwrite an existing report without asking. |
| 47 | + |
| 48 | +## Usage |
| 49 | + |
| 50 | +### Run the full analysis |
| 51 | +> "Run a full business health analysis" |
| 52 | +> "How is the business doing this month?" |
| 53 | +> "Monthly business review" |
| 54 | +
|
| 55 | +### Run individual pillars |
| 56 | +> "Analyse sales performance this month" |
| 57 | +> "Show me collection performance vs last month" |
| 58 | +> "Subscription growth analysis" |
| 59 | +
|
| 60 | +### Use specific skills standalone |
| 61 | +Each skill can be invoked independently — useful for ad hoc questions about |
| 62 | +a single pillar without triggering the full pipeline. |
| 63 | + |
| 64 | +## Installation |
| 65 | + |
| 66 | +**Cowork** — Settings → Plugins → Add plugin → paste this repo URL → select `analyst-agent`. |
| 67 | + |
| 68 | +**Claude Code:** |
| 69 | +```bash |
| 70 | +claude plugin install analyst-agent@zoho-billing-ai |
| 71 | +``` |
| 72 | + |
| 73 | +## Required environment variables |
| 74 | + |
| 75 | +| Variable | Description | |
| 76 | +|---|---| |
| 77 | +| `ZOHO_BILLING_ORG_ID` | Your Zoho Billing Organisation ID | |
| 78 | +| `ZOHO_BILLING_OAUTH_TOKEN` | OAuth token with `ZohoSubscriptions.reports.READ` scope | |
| 79 | +| `ZOHO_DOMAIN` | Data-centre domain — `zoho.com` (default) or `zoho.in` | |
0 commit comments