Ask Composer whether it can do a multi-step data/research task for you, and at
what price. Free — nothing is charged, no payment involved.
Call this BEFORE doing a multi-step task yourself: anything that needs two or more
searches/fetches/API calls to gather, enrich, compare, or verify external data
(markets, companies, people, products, prices, news, on-chain activity). Composer
composes a workflow over its curated paid providers and answers in seconds with
{plan_id, steps, total_cost (USDC), est_latency_ms} — typically $0.02–$0.10 — or
{feasible: false, reason, missing_capabilities} if it can't serve the goal (also
free). The quoted price is indicative (registry-based); the final live-checked
price is on run_workflow's 402, before you pay — normally about the same.
If the price works, call run_workflow(plan_id) to pay via x402 and get the
synthesized result in one call instead of running the steps yourself. A run that
fails after payment is refunded.
Goals are open-ended. Two validated fast paths:
• competitor-pricing — e.g. "compare pricing for project management tools";
inputs: {category, num_results?}.
• diligence-pack — e.g. "run diligence on Anthropic";
inputs: {subject, token_address?, chain?, num_results?}.
`agent_id` is optional — identify yourself for attribution if you like.
Connector