Skip to content

Commit 548b4aa

Browse files
Merge pull request #8 from zoho/patch_analyst_agent
Analyst Agent
2 parents bc336e1 + 6384235 commit 548b4aa

6 files changed

Lines changed: 1151 additions & 0 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "analyst-agent",
3+
"version": "1.0.0",
4+
"description": "Full-spectrum business analyst for Zoho Billing. Runs three parallel analysis tracks — Sales Performance (invoices, credit notes, item/plan mix), Collection Performance (payments received, refunds, failure rates), and Subscription Growth (MRR, churn, activations by product and country) — then synthesises them into a single business-health scorecard. Read-only; produces Markdown reports for human review.",
5+
"author": {
6+
"name": "Zoho Billing",
7+
"email": "support@zohobilling.com"
8+
},
9+
"keywords": [
10+
"zoho-billing",
11+
"analytics",
12+
"sales-performance",
13+
"collections",
14+
"mrr",
15+
"churn",
16+
"business-health"
17+
],
18+
"mcps": [
19+
{
20+
"name": "Zoho-MCP",
21+
"command": "npx",
22+
"args": ["-y", "@zoho/zoho-billing-mcp"],
23+
"env": {
24+
"ZOHO_BILLING_ORG_ID": "${ZOHO_BILLING_ORG_ID}",
25+
"ZOHO_BILLING_OAUTH_TOKEN": "${ZOHO_BILLING_OAUTH_TOKEN}",
26+
"ZOHO_DOMAIN": "${ZOHO_DOMAIN:-zoho.com}"
27+
}
28+
}
29+
],
30+
"requiredEnv": [
31+
{
32+
"key": "ZOHO_BILLING_ORG_ID",
33+
"description": "Your Zoho Billing Organisation ID"
34+
},
35+
{
36+
"key": "ZOHO_BILLING_OAUTH_TOKEN",
37+
"description": "OAuth access token with ZohoSubscriptions.reports.READ scope"
38+
},
39+
{
40+
"key": "ZOHO_DOMAIN",
41+
"description": "Zoho data-centre domain — zoho.com (default) or zoho.in",
42+
"default": "zoho.com"
43+
}
44+
]
45+
}
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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

Comments
 (0)