# Create your first strategy

## How to use the Yield Studio

<div align="center" data-with-frame="true"><figure><img src="/files/gCv4jaE6fTKMnt6rivPz" alt=""><figcaption></figcaption></figure></div>

Click the **"Yield Studio"** tab in the top navigation bar, or use the **"Launch Studio"** button from your Dashboard. Click ***New*** -> ***Strategy -> Build Strategy***, You'll see a grid workspace with a left sidebar. This is your **palette** of building blocks.

***

### Step 1 : Initial Token

<div align="center" data-full-width="true" data-with-frame="true"><figure><img src="/files/PBvVE8aTCtgcdcEeVB1r" alt=""><figcaption><p>$USDC Token Position</p></figcaption></figure></div>

\
There is an initial token on the grid ; this is the asset you are working with and which will be deposited later in your strategy. For now it is always $USDC but other initial tokens will be added later.

Find more informations on tokens [here](/stazys-docs/yield-studio/tokens-as-positions.md).

***

### Step 2 : Using Protocols

<div data-with-frame="true"><figure><img src="/files/uXLVCccOSAZL2auapy60" alt="" width="375"><figcaption><p>Kamino $USDC Lending Market</p></figcaption></figure></div>

Drag a protocol block (like **Kamino** or **Jupiter**) onto the canvas, placing it to the right of your token with some space between them.

Find more informations on nodes [here](/stazys-docs/yield-studio/drag-and-drop-nodes.md) and learn how each protocol works in the [Stazys DeFi Guide](/stazys-docs/stazys-defi-guide.md).

***

### Step 3 : Connect the blocks

<div data-with-frame="true"><figure><img src="/files/6lzfxBWC9WQGGmVgGDLx" alt="" width="563"><figcaption><p>$USDC -> Kamino Lend -> $USDC Reserve Token</p></figcaption></figure></div>

Each block has **ports,** connection points on the left (input) and right (output).&#x20;

Drag from the **right port** of your token to the **left port** of the protocol to create a connection. You get automatically the output token, this shows how your tokens naviguate through the strategy.

{% hint style="info" %}
Make sure you select compatible token <-> protocol link (Ex. $USDC in Kamino $USDC market) otherwise it won't connect.
{% endhint %}

Find out the different type of connection flows and what purpose they serve [here](/stazys-docs/yield-studio/connection-flows.md).

***

### Step 4 : Creating custom triggers

<div data-with-frame="true"><figure><img src="/files/JPseXP8VhdYTlAj3nnzI" alt=""><figcaption><p>Advanced strategy with custom signal triggers</p></figcaption></figure></div>

On the yield studio, any piece of data can be used as a signal in utility nodes to create complex workflow for your strategy.

Drag from a data that you find interesting (Ex. Sol APY on Kamino), use utility nodes like maths, comparaison, logic gates or conditional routes to create the exact path you want your tokens to follow.

Learn about the different kind of nodes [here](/stazys-docs/yield-studio/drag-and-drop-nodes.md) and how to manipulate signals [here](/stazys-docs/yield-studio/signals.md).

***

### Step 5 : Strategy resume

Once finished click the ***Save & Exit*** button, you can now view a resume of your strategy with different allocations, protocols, airdrop farmed. You can also chose a name and a description then finally save.

Head up to the next section to find out how to compose a vault and deploy live/demo/backtest using the strategy you just created !


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://stazys.gitbook.io/stazys-docs/getting-started/create-your-first-strategy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
