# How to Connect Nodes

1\. Move your cursor to the output point on the edge of the first node.

2\. Connect Nodes:

* Click and hold the mouse button on the output point.
* Drag the line to the input point of the next node.
* Release the mouse button to connect the nodes.

<figure><img src="/files/2PEMyJnNaWfY5FiaxOV2" alt=""><figcaption></figcaption></figure>

## When to Connect to the Main Node Input vs. the Field Input

* Always ensure the output data type matches the input field's required data type. For instance, connect code outputs to code inputs, text outputs to text inputs, and so on.&#x20;
* If an output doesn't match the required input field type of the following node(e.g., text output to code input), drag the output to the main input of the next node. This way, the output can be properly referenced and processed in the following node.
* When a node has multiple outputs, ensure each output is dragged to the correct subsequent node or field as specified in the node prompts. Different outputs can target different nodes or fields based on their required processing.


---

# 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://scade.gitbook.io/scade-knowledge-base/build-a-flow/how-to-connect-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.
