# Drag and drop nodes

Building strategies in Stazys is as simple as dragging nodes from the left palette onto the grid and connecting them together. Each node type serves a specific purpose in your strategy flow.

### Using nodes

1. **Adding Nodes**\
   Drag any node from the left palette onto the grid canvas. Position nodes with some space between them to keep your strategy easy to read and follow.
2. **Connecting Nodes**\
   Each node has connection points, called **port,** on the left (input) and right (output). Drag from a node's right port to another node's left port to create a connection. This defines how data or tokens flow through your strategy.
3. **Selecting and Deleting**\
   Click any node to select it. When selected, you'll see options to configure it or delete it using the toolbar that appears above the node.

***

### Node Types

Stazys provides several types of nodes, each designed for specific functions in your strategy:

* [**Protocol Nodes**](/stazys-docs/yield-studio/drag-and-drop-nodes/protocol-nodes.md) - Interact with DeFi protocols like Kamino, Jupiter, Hylo etc...
* [**Math Operator Nodes**](/stazys-docs/yield-studio/drag-and-drop-nodes/math-operator-nodes.md) - Perform mathematical operations on values
* [**Comparaison Nodes**](/stazys-docs/yield-studio/drag-and-drop-nodes/comparaison-nodes.md) - Compare values and create conditions
* [**Logical Gate Nodes**](/stazys-docs/yield-studio/drag-and-drop-nodes/logical-gate-nodes.md) - Combine conditions with AND, OR, and NOT logic
* [**Conditional Branch Node**](/stazys-docs/yield-studio/drag-and-drop-nodes/conditional-branch-node.md) - Route your flow based on conditions
* [**Splitter & Merger Nodes**](/stazys-docs/yield-studio/drag-and-drop-nodes/splitter-and-merger-nodes.md) - Split tokens into multiple paths or merge them back together

Each node type is covered in detail in its dedicated section. Start with Protocol Nodes to understand how to interact with DeFi protocols, then explore the logic and utility nodes to build more sophisticated strategies.


---

# 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/drag-and-drop-nodes.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.
