For AI Agents
Prompts (3)
Pre-built strategy prompts that guide the AI agent through complete flash loan workflows. Each prompt includes step-by-step instructions and tool call sequences.
flash_arbitrage
Guides the agent through a complete arbitrage strategy: check liquidity, find the best route, verify profitability, build the transaction.
| Parameter | Type | Description |
|---|---|---|
| token | string (required) | Token to borrow (SOL, USDC, mSOL...) |
| amount | number (required) | Amount to borrow |
// Agent receives this strategy guide:
Step 1: Call vaea_get_capacity(token) โ check available liquidity
Step 2: Call vaea_find_best_route(token, amount) โ find optimal protocol
Step 3: Call vaea_check_profitability() โ verify profit after costs
Step 4: Call vaea_build_flash_loan() โ construct TX
Step 5: Insert arb instructions at _agent_hint position
flash_liquidation
Guides the agent through flash loan-powered liquidation: borrow collateral token, liquidate unhealthy position, receive bonus, repay.
| Parameter | Type | Description |
|---|---|---|
| protocol | string (required) | Lending protocol to liquidate on (marginfi, kamino...) |
| token | string (required) | Collateral token to borrow |
flash_collateral_swap
Guides a collateral swap: borrow new collateral, deposit into position, withdraw old collateral, swap, repay.
| Parameter | Type | Description |
|---|---|---|
| from_token | string (required) | Current collateral token |
| to_token | string (required) | Desired collateral token |
| lending_protocol | string (required) | Protocol where the position exists |
โน๏ธ Note
Prompts are optional guides. The agent can also compose tool calls freely without following a prompt template. Prompts just provide pre-optimized workflows for common strategies.