# Connection flows

Connections define how information and assets move through your strategy. Each connection represents a real operation that will execute when your strategy runs.

### Creating Connections

* **Start a Connection**\
  Click and drag from a node's right port (output). When you hover over a compatible left port (input), the connection snaps into place. Release to complete the link.
* **Detach or Reroute**\
  Click an existing connection to select it, then press Delete to remove it. To reroute, drag the connection's end to a different compatible port.
* **Keep It Readable**\
  Leave space between nodes and avoid crossing lines whenever possible. Clean layouts make it easier to debug and maintain your strategy.

***

### Flow Types

<div data-with-frame="true"><figure><img src="/files/2SlL9m325bN8wgSFgVxO" alt="" width="361"><figcaption><p>Token Flow (blue)</p></figcaption></figure></div>

**Token Flows**\
Represent the movement of assets between token positions and protocol nodes. These connections show where your capital is allocated and how it moves through DeFi protocols. Token flows are the foundation of your strategy's asset management.

<div data-with-frame="true"><figure><img src="/files/IMlbhUcQ9EuX2x1VjRHa" alt="" width="325"><figcaption><p>Signal Flow (red)</p></figcaption></figure></div>

**Signal Flows**\
Deliver real-time metrics and market data (like APY rates, utilization, or prices) into your strategy. Signal flows connect signal nodes to compare nodes, math operators, or conditional branches, enabling data-driven decision making.

<div data-with-frame="true"><figure><img src="/files/idM0ZilOTIczqeb1Lbg8" alt="" width="563"><figcaption><p>Condition Flow (green)</p></figcaption></figure></div>

**Condition Flows**\
Carry boolean (true/false) outcomes from compare nodes, logical gates, or signals. These flows control conditional branches and decision-making in your strategy. Condition flows enable your strategy to adapt based on market conditions.

{% hint style="info" %}
Each flow type has specific compatibility rules, nodes ports only accept connections from compatible flow types. The Studio will prevent invalid connections and show visual feedback when trying impossible connections.
{% endhint %}


---

# 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/yield-studio/connection-flows.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.
