Vai al contenuto principale
logo di Avana

Prompt Examples

Craft precise, actionable prompts so Ask AI executes exactly what you intend.

Principi core

Clarity

Be specific. Instead of “manage my staking,” use:

@lido (Ethereum): Stake 5 ETH

Modularity

Break complex tasks into sequential steps:

@uniswapV3 (Polygon): Swap 1 ETH for USDC@curve (Polygon): Provide liquidity with USDC

Context

Explicitly define networks, assets, and thresholds:

@aaveV3 (Arbitrum): Borrow 1000 DAI when borrowing rate < 5%

How Prompts Are Read

Ask AI breaks each prompt into three components before it acts.

Attributes

Protocols, networks, tokens, amounts, and conditions.

Intent

Swap, stake, borrow, migrate, or lend.

Execution plan

Step-by-step with safety checks for gas, slippage, and balance.

Common Mistakes

  • Missing network. “@makerdao: Repay DAI loan” fails without a network.
  • Ambiguous amounts. “Withdraw some tokens” is rejected.

Worked Example

A price-conditional trade, from prompt to settlement.

  1. 1

    User query

    The user enters the request through an interface such as a web app, chatbot, or terminal.

    > Check the price of ETH and buy 1 ETH if it's below $1,800.
  2. 2

    Off-chain processing

    Ask AI parses the request into a target asset (ETH), a condition (price < $1,800), and an action (buy 1 ETH), then determines it needs real-time price data.

  3. 3

    Oracle data fetch

    Ask AI triggers an oracle query via middleware, and the oracle returns the current price.

  4. 4

    Decision-making

    It evaluates the condition: if ETH is below $1,800 it proceeds; otherwise it halts and reports that no trade was executed.

  5. 5

    Trade execution

    When the condition is met, Ask AI prepares the transaction, signs it securely, and submits it to the network.

  6. 6

    On-chain result

    The network processes the transaction and the trade settles.

    > Trade executed. You bought 1 ETH at $1,790.

More Scenarios

Multi-condition trade

“If ETH < $1,700 and gas < 50 gwei, buy 2 ETH.”

  • ETH price ($1,680) < $1,700
  • Gas fee (45 gwei) < 50 gwei
> Trade executed. You bought 2 ETH at $1,680 with 45 gwei gas.

Whale-activity trigger

“Buy $1,000 of ETH only if whale activity shows large ETH sells in the past hour.”

  • Several large ETH sales detected
> Trade executed. Purchased 0.595 ETH ($1,000) based on detected whale activity.

Condition not met

“Sell 2 ETH if price is above $2,000, but only if gas is below 30 gwei.”

  • Gas fee (25 gwei) < 30 gwei
  • ETH price ($1,980) is not above $2,000
> No trade executed. ETH is $1,980, below your $2,000 target.

Stop-loss execution

“Sell 3 ETH if the price drops below $1,600 as a stop-loss.”

  • Price dropped to $1,590, stop-loss triggered
> Stop-loss executed. Sold 3 ETH at $1,590 to mitigate losses.