Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Composio 100-App API Toolkit Research

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.


Key Findings

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

Interactive Report

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

Pipeline Architecture

┌──────────────────────────────────────────────────────┐
│                   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() in pipeline/worker.py applies 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-domain DomainRateLimiter prevents soft-blocking on popular docs domains.
  • Fail loud per record, not per run. Any extraction failure produces a confidence=low placeholder — the run always completes all 100 records.

Repository Structure

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

Data Quality & Verification

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

  1. A stratified 20-app sample was drawn (see pipeline/verification.py) — covering all verdict types, all categories, and prioritizing low-confidence records.
  2. Each sampled record was manually cross-checked against its evidence URL.
  3. Two systematic bugs were caught and fixed across all 100 records:
    • has_mcp was being derived from has_composio_toolkit (wrong — these are different questions). Fixed in scripts/apply_systematic_fix.py.
    • 66 confidence=low placeholder records were replaced with human-verified facts. Fixed in scripts/fix_low_confidence.py.
  4. One targeted single-record correction: Otter AI's access_tier was approval_gated → corrected to contact_sales_gated. Fixed in scripts/apply_pass2_correction.py.

Every correction re-routes through the same apply_verdict_tree() function — no hand-written verdicts.


Running the Pipeline

# 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.worker

Output 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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages