An automated research pipeline that evaluated 100 popular SaaS applications for their "buildability" as AI agent toolkit integrations — assessing authentication methods, access tiers, API surfaces, and MCP (Model Context Protocol) availability.
Built for the Composio AI Product Ops Intern assessment.
| Metric | Result |
|---|---|
| Apps ready to build today | 63 / 100 (ready_now) |
| APIs that are self-serve (free or trial) | 75% |
| Apps with an MCP server | 22 / 100 |
| Most common auth method | Token / OAuth2 |
| Most common blocker | Sales gate or partner-program wall |
Open the Hosted Interactive Report or the local report/composio_research_case_study.html in any browser to explore:
- A visual node map of all 100 apps, colored by verdict
- Sortable data table with auth, access tier, and API surface for every app
- Category-level breakdown and blocker analysis
┌──────────────────────────────────────────────────────┐
│ run_pipeline() │
│ (ThreadPoolExecutor, 10 workers, batches of 10) │
└──────────────────┬───────────────────────────────────┘
│ per app:
┌────────▼────────┐
│ 1. Composio │ REST check — does Composio already
│ catalog check │ have a toolkit for this app?
└────────┬────────┘
┌────────▼────────┐
│ 2. Web search │ COMPOSIO_SEARCH_WEB → top docs URLs
│ + docs fetch │ COMPOSIO_SEARCH_FETCH_URL_CONTENT → page text
│ (+ MCP check) │ Fallback: requests + BeautifulSoup4
└────────┬────────┘
┌────────▼────────┐
│ 3. LLM │ Gemini 2.5 Flash extracts structured
│ extraction │ facts: auth, access tier, API breadth
└────────┬────────┘
┌────────▼────────┐
│ 4. Verdict │ Pure Python decision tree — NOT an LLM call.
│ decision tree │ Deterministic, auditable, reproducible.
└────────┬────────┘
┌────────▼────────┐
│ 5. Schema │ Validates against data/research_schema.json
│ validation │ Retries once on failure; marks confidence=low
└────────┬────────┘
┌────────▼────────┐
│ 6. Checkpoint │ Appends one JSON line to data/research.jsonl
│ write │ Resumable — re-runs skip already-done IDs
└─────────────────┘
Key design decisions:
- Verdict is code, not LLM output. The LLM extracts raw facts;
apply_verdict_tree()inpipeline/worker.pyapplies the categorical logic. This eliminates run-to-run drift across 100 apps. - Rate-limit aware. A
threading.Lock+ 13s sleep enforces the Gemini Free Tier cap (5 req/min). A per-domainDomainRateLimiterprevents soft-blocking on popular docs domains. - Fail loud per record, not per run. Any extraction failure produces a
confidence=lowplaceholder — the run always completes all 100 records.
composio_project_bundle/
│
├── README.md
│
├── pipeline/ # Core automated pipeline code
│ ├── worker.py # Main pipeline: search, scrape, LLM extract, I/O
│ └── verification.py # Stratified sampling for human verification passes
│
├── scripts/ # One-off data correction scripts (see scripts/README.md)
│ ├── README.md
│ ├── build_pilot.py
│ ├── build_remaining.py
│ ├── fix_low_confidence.py
│ ├── apply_pass2_correction.py
│ └── apply_systematic_fix.py
│
├── data/
│ ├── apps_master_list.md # Input: 100 apps grouped by category
│ ├── research_schema.json # JSON Schema for output validation
│ ├── research_schema.md # Human-readable schema + verdict decision tree
│ ├── research.jsonl # Final output: 100 validated app records
│ └── verification_sample.json # Stratified 20-app human-check sample
│
└── report/
└── composio_research_case_study.html # Interactive visual report
The pipeline ran in two passes with a full human verification loop:
Pass 1 — Automated
The pipeline attempted Gemini 2.5 Flash extraction for all 100 apps. The Gemini Free Tier quota (20 req/day) meant 66/100 apps produced confidence=low placeholder records on the first run.
Pass 2 — Human verification + correction
- A stratified 20-app sample was drawn (see
pipeline/verification.py) — covering all verdict types, all categories, and prioritizing low-confidence records. - Each sampled record was manually cross-checked against its evidence URL.
- Two systematic bugs were caught and fixed across all 100 records:
has_mcpwas being derived fromhas_composio_toolkit(wrong — these are different questions). Fixed inscripts/apply_systematic_fix.py.- 66
confidence=lowplaceholder records were replaced with human-verified facts. Fixed inscripts/fix_low_confidence.py.
- One targeted single-record correction: Otter AI's
access_tierwasapproval_gated→ corrected tocontact_sales_gated. Fixed inscripts/apply_pass2_correction.py.
Every correction re-routes through the same apply_verdict_tree() function — no hand-written verdicts.
# Install dependencies
pip install composio google-genai requests beautifulsoup4 jsonschema
# Set API keys
export COMPOSIO_API_KEY=your_key_here
export GEMINI_API_KEY=your_key_here
# Run (resumes automatically from last checkpoint)
python -m pipeline.workerOutput is written incrementally to data/research.jsonl — one JSON line per app.
To generate a new verification sample:
python -m pipeline.verification data/research.jsonl > data/verification_sample.json