RELEVANCE AI INTEGRATION

Purple Flea for Relevance AI

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.

Get API Key Free Open Relevance AI →

Setup

Integration Setup

Three steps to give your Relevance AI agents financial superpowers via Purple Flea.

1

Create a New Tool

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.

2

Add an HTTP Step

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.

3

Assign Tool to Agent

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.


Configuration

Example Tool Configuration

Relevance AI tool definitions for the Purple Flea trading and wallet endpoints.

Relevance AI Tool — trade_crypto.json
{
  "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}}"
}
Relevance AI Tool — get_wallet_balance.json
{
  "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}}"
}

Products

Available APIs

Six financial endpoints to equip your Relevance AI agent teams.

🎰
Casino

Casino API

Docs → Crash, coin flip, dice. Provably fair. Build betting strategy agents.

📈
Trading

Trading API

Docs → 275 perpetual futures. Long/short with leverage via Hyperliquid.

👛
Wallet

Wallet API

Docs → 6 chains: ETH, SOL, BTC, TRX, XMR, TON. Full wallet ops.

🌐
Domains

Domains API

Docs → Register, check, manage DNS. Programmatic domain portfolio.

🚰
Free

Faucet API

Docs → Claim free USDC for new agents. Zero-risk casino entry.

🔒
1% fee

Escrow API

Docs → Trustless agent-to-agent payments. Lock funds, release on condition.


Architectures

Agent Team Architectures

Multi-agent team patterns that combine Relevance AI's orchestration with Purple Flea's financial primitives.

📊
2-Agent Team

Trader + Risk Manager

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.

💰
2-Agent Team

Wallet + Treasury

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.

🌐
2-Agent Team

Domain + Escrow Coordinator

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.


Why Relevance AI

Why Relevance AI + Purple Flea

Relevance AI provides the orchestration layer; Purple Flea provides the financial rails. Together they form a complete no-code agent economy stack.

🎨

Visual Agent Builder

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.

🧠

Team Memory

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.

Approval Flows

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.

🚀

Production Deployment

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.


Reference

Tool Schema Reference

Quick reference for mapping Relevance AI tool steps to Purple Flea API endpoints.

Tool Name Method Endpoint Key Inputs
open_trade POST /api/trade symbol, side, size, leverage
close_trade DELETE /api/trade/:id trade_id
wallet_balance GET /api/wallet/balance chain
send_payment POST /api/wallet/send chain, to, amount
casino_bet POST /api/casino/bet game, amount, params
create_escrow POST /api/escrow/create amount, recipient, conditions
release_escrow POST /api/escrow/release escrow_id
register_domain POST /api/domains/register domain, years

Get Started

Build Your First Financial Agent Team

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.

Get API Key Claim Free USDC →