Relevance AI is the leading no-code platform for building AI agent teams. Combined with Purple Flea's financial APIs, your Relevance AI agents can trade crypto, manage wallets, and earn yield — without writing a line of code.
Three steps to give your Relevance AI agents financial superpowers via Purple Flea.
In Relevance AI, navigate to Tools → New Tool. Give it a name like "Trade Crypto" or "Check Wallet Balance". Tools are the atomic units your agents call to interact with external services.
Inside the tool, add an HTTP transformation step. Set the method (GET/POST), URL to a Purple Flea endpoint, and add your Authorization Bearer header with your API key. Map tool inputs to request body fields.
Go to your Agent configuration, add the new tool under "Available Tools". The agent will automatically decide when to call it based on user intent. Chain multiple tools across agent team members for complex workflows.
Relevance AI tool definitions for the Purple Flea trading and wallet endpoints.
{
"title": "Trade Crypto Perpetuals",
"description": "Open or close a leveraged perpetual futures position on Purple Flea",
"inputs": {
"symbol": {
"type": "string",
"title": "Trading Symbol",
"description": "e.g. ETH-USD-PERP, BTC-USD-PERP"
},
"side": {
"type": "string",
"enum": ["buy", "sell"],
"title": "Trade Direction"
},
"size": {
"type": "number",
"title": "Position Size (USD notional)"
},
"leverage": {
"type": "integer",
"title": "Leverage multiplier (1-50)",
"default": 1
}
},
"steps": [
{
"transformation": "http_request",
"name": "execute_trade",
"params": {
"url": "https://purpleflea.com/api/trade",
"method": "POST",
"headers": {
"Authorization": "Bearer {{settings.PURPLE_FLEA_API_KEY}}",
"Content-Type": "application/json"
},
"body": {
"symbol": "{{inputs.symbol}}",
"side": "{{inputs.side}}",
"size": "{{inputs.size}}",
"leverage": "{{inputs.leverage}}"
}
}
}
],
"output": "{{steps.execute_trade.output}}"
}
{
"title": "Get Wallet Balance",
"description": "Retrieve the current balance of a crypto wallet across all chains",
"inputs": {
"chain": {
"type": "string",
"enum": ["eth", "sol", "btc", "trx", "xmr", "ton"],
"title": "Blockchain Network"
}
},
"steps": [
{
"transformation": "http_request",
"name": "fetch_balance",
"params": {
"url": "https://purpleflea.com/api/wallet/balance",
"method": "GET",
"headers": {
"Authorization": "Bearer {{settings.PURPLE_FLEA_API_KEY}}"
},
"query_params": {
"chain": "{{inputs.chain}}"
}
}
}
],
"output": "{{steps.fetch_balance.output}}"
}
Six financial endpoints to equip your Relevance AI agent teams.
Multi-agent team patterns that combine Relevance AI's orchestration with Purple Flea's financial primitives.
The Trader agent monitors market signals and opens positions via the Trading API. The Risk Manager agent runs in parallel, monitoring open PnL — when drawdown exceeds a threshold, it calls close_position to limit losses. Agents share state via Relevance AI's team memory.
The Wallet agent monitors incoming balances across ETH, SOL, and BTC. When it detects idle funds above a threshold, it triggers the Treasury agent, which allocates to the highest-yield opportunity: casino bankroll, perpetuals margin, or escrow lending — based on current APY signals.
The Domain agent scans trend data and identifies valuable domain names to register. When it finds a target, it creates an escrow payment via the Escrow agent, which coordinates the payment to the registrar and releases funds only once the domain registration is confirmed on-chain.
Relevance AI provides the orchestration layer; Purple Flea provides the financial rails. Together they form a complete no-code agent economy stack.
Drag and drop tool chains, set agent goals, and define escalation logic — all without code. The visual canvas makes complex multi-step financial workflows understandable and auditable.
Agents in a Relevance AI team share persistent memory. Your Trader agent can read the Risk Manager's last assessment before opening a new position — building genuine coordination intelligence.
Configure high-value operations to require human approval before execution. Your agent proposes a $10,000 trade → you approve in Slack → Purple Flea executes. Full control at every threshold.
Relevance AI agents run on managed infrastructure with scheduling, monitoring, and alerting. Deploy your Purple Flea financial agents to run autonomously 24/7 with built-in uptime guarantees.
Quick reference for mapping Relevance AI tool steps to Purple Flea API endpoints.
Get a Purple Flea API key, create your first Relevance AI tool, and deploy a financial agent team — free in under 15 minutes. New agents can claim free USDC from the faucet.