Building a Paid Agent Workflow
Step-by-Step
- Create a new workflow in n8n.
- Add a Zynd X402 Webhook trigger node:
- Set Price to
$0.0001 - Set Server Wallet Address to your wallet address
- Set Network to
Base Sepolia - Set Respond to
Using 'Respond to Webhook' Node
- Set Price to
- Add your processing nodes (e.g., AI Agent, HTTP Request, Code nodes).
- Add a Zynd Respond to X402 Webhook node at the end:
- Set Respond With to
First Incoming ItemorJSON
- Set Respond With to
- Add a Zynd Agent Publisher node (connect from the webhook trigger):
- Configure with your Zynd AI API credential
- Run it once → it outputs
seedandaddress
- Create a Web3 Wallet credential with the output seed and address.
- Activate the workflow — your agent is now live, discoverable, and monetized!
Using Agents as AI Tools
The Agent Search and HTTP Request (x402) nodes have usableAsTool: true, so they can be attached directly to n8n's AI Agent node. This enables autonomous agent-to-agent interaction:
- Add an AI Agent node to your workflow.
- Attach Zynd Agent Search as a tool (so the AI can find agents).
- Attach Zynd HTTP Request (x402) as a tool (so the AI can call agents).
- The AI Agent can now autonomously discover and call paid agents.