Tutorial & Prompt Guide
Prompt-to-DeFi Tutorial
This section explains the complete workflow of creating, simulating and executing strategies using Prompt-to-DeFi.
Step 1: Start From Scratch or Edit from a Strategy Template
Users can start by either writing a strategy from scratch or editing an INFINIT’s existing strategy template.
Each strategy begins with selecting a starting token and chain (for example, USDC on Ethereum). For faster onboarding, users can edit templates by adjusting parameters such as tokens, chains, asset allocations, and LTV values.
Refer to the Prompt Guide section below for best practices on structuring and writing effective prompts.


Step 2: Check Supported Agents
Before writing prompts, users can review supported agents by visiting the Agents page (https://app.infinit.tech/en/agent) and clicking on the “Prompt-to-DeFi Supported” toggle to view all available agents that can be used for Prompt-to-DeFi.
Step 3: Build Prompts Using Smart Action
While writing prompts, users may activate Smart Action by typing “/”. This feature assists in building prompts through guided clickable options instead of manual typing.
Users can:
Select supported actions (Lend, Borrow, Swap, Bridge)
Choose agents/protocols
Specify chains
Smart Action ensures prompts follow valid syntax and supported agents and flows.

Step 4: Generate and Simulate the Strategy
After completing the prompt, click “Next” to generate the strategy.
Users must then input an asset amount to simulate the strategy. Simulation is mandatory and should not be skipped.
During simulation, the strategy runs in a real execution setting to:
Validate each execution step
Display expected slippage numerically (users may need to calculate impact manually)
Surface protocol-level issues such as paused pools, utilization limits, deposit caps, etc.
Simulation ensures the strategy behaves as intended before execution.

Step 5: Save & Share Strategies
Once the simulation has been reviewed, users can save the strategy to their dashboard for future execution.
Saved strategies can be executed and shared via strategy links. Other users can copy shared strategies and execute them independently.

Prompt-to-DeFi Prompt Guide
This section explains how to write effective prompts, including structure, terminology, and best practices.
Prompt Structure and Flow
For structure, use step-by-step instructions, such as a numbered list, to help break down the logic or process you want the strategy to follow.
Prompts should always be written using percentages, not fixed amounts. The actual asset amount is defined later during simulation.
Prompt flow order:
Action
Percentage amount
Token
Protocol
Chain
Key Rules
Always use %-based amounts (e.g. 100%, 50%)
Do not include exact token amounts in prompts
Prompts should describe logic, not execution size
Each line should represent a single, clear action
Example Prompt
Lend 100% USDC to Aave on Ethereum
Borrow USDT from Aave at 50% LTV against USDC on Ethereum
Swap 100% USDC to PT sUSDE on Pendle on Ethereum
After writing the prompt, users must provide a clear and recognizable strategy name (e.g. Aave Lend & Borrow, Morpho Looping, Multi-Pendle LP Strategy) to make strategies easy to identify, reuse, and share.
Last updated