Conditional Chained Column Enrichment — Run Column C Only When Column B Verifies Non-Empty
Multi-column enrichment costs spiral out of control when every row blindly executes columns A, B, and C even after Column A fails. Batch-Anything's chained_mcp_http workflow evaluates deterministic depends_on and when_non_empty conditions row-by-row, cutting downstream spend to $0 on every dead row.
Why Unconditional Waterfalls Multiply Wasted Spend
Suppose Column A checks if a domain is live and has a pricing page, Column B extracts structured metadata from that live page, and Column C calls a paid third-party API or custom MCP tool. If 35% of rows fail at Column A, an unconditional pipeline still fires Column B and Column C across all 35% dead rows — multiplying wasted API spend by 3x.
Visual drag-and-drop flowcharts try to patch this with sprawling conditional branches that break whenever schemas shift and cannot be version-controlled cleanly in Git or generated dynamically by AI agents.
Declarative Row-Level Dependency Chains Without Flowchart Bloat
Explicit depends_on & when_non_empty Guards
Declare Column A -> Column B -> Column C directly in your JSON request payload. If Column B resolves empty, fake-200, or null, Column C is skipped automatically with $0 downstream execution.
Mix Public Enrichers, Custom HTTP Templates & MCP Tools
Combine built-in enrichers (DNS, OpenFoodFacts, PyPI/npm/GitHub, URL patrol) with custom HTTP URL templates or deterministic transforms inside one flat API call.
Zero-Waste Row Economics
In Loop 3 Gauntlet verification, chained conditional execution prevented 100% of unnecessary downstream calls on empty upstream rows while preserving full per-step audit traces.
Git-Friendly & Agent-Composable
No drag-and-drop canvas lock-in: store waterfall specs as plain JSON in version control or let coding agents compose chained schemas dynamically over POST /mcp.
Conditional Multi-Step Enrichment Comparison
Competitor pricing figures reflect documented public tiers; Batch-Anything performance metrics reflect real measured Gauntlet telemetry (16/16 checks passing).
| Capability | Batch-Anything (chained_mcp_http) | Clay Formula Run Conditions | n8n / Coze Visual Graphs |
|---|---|---|---|
| Definition Format | Declarative JSON (depends_on / when_non_empty) | UI column formulas per sheet | Fragile visual node wiring |
| Downstream Spend on Dead Rows | $0.00 (automatically short-circuited) | Requires manual JS run-condition per column | Must manually wire IF branches |
| Anti-Fake-200 Short-Circuit | Built-in before Column C triggers | Not native | Custom regex nodes required |
| AI Agent Programmability | Single POST /mcp or REST call | Manual UI configuration | Static graph breaks agent autonomy |
| Budget Cap Across Full Chain | Unified max_budget_usd + resume_token | Per-workspace credits | No native dollar ledger |
Working REST & Streamable /mcp Code Examples
REST API (POST /v1/batch/run & /v1/batch/submit)
# Conditional multi-step waterfall (Col C skipped at $0 when Col B is empty)
curl -fsSL -X POST "https://batch.fastmesh.dev/v1/batch/run" \
-H "Content-Type: application/json" \
-d '{"workflow": "chained_mcp_http", "tenant_id": "acme_revops", "rows": [{"package_name": "requests", "ecosystem": "pypi"}, {"package_name": "nonexistent-pkg-999999", "ecosystem": "pypi"}], "max_budget_usd": 2.0, "chain_steps": [{"column": "col_b_repo", "enricher": "oss_package_enrich"}, {"column": "col_c_downstream", "enricher": "url_health_patrol", "depends_on": "col_b_repo", "when_non_empty": true}]}'
Native AI Agent Call (POST /mcp · JSON-RPC 2.0)
# Streamable HTTP MCP JSON-RPC 2.0 call (https://batch.fastmesh.dev/mcp)
curl -fsSL -X POST "https://batch.fastmesh.dev/mcp" \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "batch_enrich_run", "arguments": {"workflow": "chained_mcp_http", "tenant_id": "coding_agent_01", "rows": [{"package_name": "requests", "ecosystem": "pypi"}, {"package_name": "nonexistent-pkg-999999", "ecosystem": "pypi"}], "max_budget_usd": 1.0}}}'
Full schema: /openapi.json · Agent onboarding: /skill.md · Machine directory: /llms.txt · Treg Hub: batch-anything-waterfall (0% commission) · Causal Bazaar: batch_anything_waterfall_v1
Zero-Empty Guarantee, Privacy & Never-Expiring Packs
$0.00 and isolated in dead_letter_rows with a verifiable receipt_sha256.Zero Customer Table Resale Pledge: Your uploaded CSVs, SQLite tables, prompts, BYOK keys, and batch traces are NEVER resold, licensed, or used to train external models.
Starter Pack
$19 credit (19M micros · 6,333 B2B domains / 12,666 URL checks) · Never expires · 0 seat fees
Get Starter PackGrowth Pack
$90 credit (90M micros · 30,000 B2B domains / 60,000 URL checks) · Never expires · 0 seat fees
Get Growth PackScale Pack
$325 credit (325M micros · 108,333 B2B domains / 216,666 URL checks) · Never expires · 0 seat fees
Get Scale PackFrequently Asked Questions
How do conditional columns work in Batch-Anything?
In the chained_mcp_http workflow, each derived column can declare depends_on and when_non_empty referencing an earlier column. The executor evaluates dependencies per row and skips downstream steps whenever the prerequisite is empty or failed.
Do skipped downstream columns incur any fee?
No. Skipped columns execute zero upstream calls and incur $0.00 charges.
Can I chain a built-in domain health check before calling my own custom HTTP endpoint?
Yes. Run URL health or B2B domain verification as Column A, and gate your custom HTTP or BYOK webhook template on Column A returning a verified non-empty result.
Does mid-batch max_budget_usd capping work with multi-step chained columns?
Yes. Budget accounting tracks cumulative verified micro-dollars across chained steps and pauses cleanly with a deterministic resume_token if the cap is reached.