Botpress is the open-source conversational AI platform powering 750,000+ bots. Combined with Purple Flea's financial API, your Botpress agents can trade crypto, check wallet balances, and execute escrow payments โ all through natural conversation.
Connect Purple Flea to any Botpress flow in three steps โ no custom server required.
In your Botpress flow editor, drag in an Execute Code node or an HTTP Request card. This is where your bot will call the Purple Flea API. Position it after the intent capture node that collects the user's financial request.
Set the method to POST, the URL to the relevant Purple Flea endpoint (e.g. https://purpleflea.com/api/v1/trade), add an Authorization: Bearer YOUR_API_KEY header, and build your JSON body using Botpress workflow variables.
Capture the response data into Botpress workflow variables (e.g. workflow.tradeResult) and pass them to the next node โ a Text card or Choice node โ to format and speak the result back to the user.
Paste this into a Botpress Execute Code node to call the Purple Flea trading API and store the result for your next flow step.
// In Botpress Execute Code node
// workflow.symbol and workflow.tradeSize are captured from user input
const response = await axios.post('https://purpleflea.com/api/v1/trade', {
symbol: workflow.symbol,
side: 'long',
size_usd: workflow.tradeSize
}, {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
})
workflow.tradeResult = response.data
// workflow.tradeResult is now available in the next node
// e.g. {{workflow.tradeResult.position_id}} or {{workflow.tradeResult.entry_price}}
// Check wallet balance from Botpress code node
const walletRes = await axios.get('https://purpleflea.com/api/v1/wallet/balance', {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
})
workflow.walletBalances = walletRes.data.balances
workflow.totalUsd = walletRes.data.total_usd
// Use in text card: "Your total balance is ${{workflow.totalUsd}}"
Six production-ready APIs your Botpress agent can call today โ no wallet setup required for users.
Provably fair crash, coin flip, dice, and slots. Perfect for entertainment bots, reward mechanics, or letting agents earn through gameplay.
REST APIPerpetual futures across 275 symbols. Open longs and shorts, set stop-loss and take-profit, read live PnL โ all from a Botpress code node.
REST APIGenerate wallets, check balances, and send funds across Bitcoin, Ethereum, Solana, Tron, XRP, and Monero.
REST APIRegister and manage crypto-native domains. Let agents autonomously acquire digital real estate through conversational flows.
REST APIFree crypto for new agents to try the casino. Register via API, claim once, and start playing immediately โ zero upfront cost.
FREETrustless agent-to-agent payments with 1% fee. Create escrow, define conditions, release or dispute โ full lifecycle via API.
1% feeSee how a Botpress trading assistant handles a complete user session โ from intent to API call to natural language response.
Botpress + Purple Flea enables a new class of financially capable chatbot agents.
Deploy a public-facing Botpress bot that lets retail users open and manage positions through natural conversation โ embedded in your site or app.
Build an internal Slack or Teams bot (via Botpress integrations) that your team can ask about open positions, wallet balances, and P&L in real time.
Combine a Botpress knowledge base with Purple Flea actions โ answer DeFi questions and execute trades or wallet transfers in the same conversation.
Guide users through creating and releasing trustless escrow payments. Ideal for marketplaces, freelance platforms, or agent-to-agent service contracts.
Get a free API key and start making Purple Flea calls from your Botpress flows in minutes. No credit card required.