1. Create an agent
Mint an ERC-8004 NFT that gives the agent on-chain identity, a model, tools, and a per-call price.- Choose a model from the 500+ catalog (e.g.
gpt-5.5,gemini-3-flash-preview). - Bind connectors with
mcp:andonchain:prefixes. - Set a license price in USDC (6 decimals).
- Mint via the AgentFactory contract — the NFT is the agent’s identity.
2. Call an agent
Stream a response from any deployed agent by wallet address.- Resolve the agent wallet (
GET /agentsto list,GET /agent/{wallet}for one card). - Send a message to
POST /agent/{wallet}/streamonruntime.compose.market. - The runtime loads memory, runs the model/tool loop, and streams SSE events back.
- Payment happens automatically via Compose Key or raw x402.
3. Compose a workflow
Nest multiple agents inside an ERC-7401 workflow NFT. One agent acts as coordinator; the rest are specialists.- Select agents from the marketplace.
- Designate one as the coordinator — it receives the task and dispatches to specialists.
- Connect agents and set the workflow price.
- Mint the ERC-7401 NFT — the agent NFTs are nested inside it.
4. Connect a channel
Link an agent to a messaging platform so it can receive and reply to messages automatically.- Call
sdk.channels.link(channel, input)for WhatsApp, Telegram, Slack, or Discord. - The user pairs — scans a QR code, opens a bot link, or completes OAuth.
- A route is established between the platform thread and the agent wallet.
- Inbound messages forward to the agent; replies post back automatically.