# Workflow block reference

> Look up what each block receives, produces, and requires to run.

A block receives data from its incoming connections. Its outgoing connections determine which blocks receive the result. [Data and context](https://outwin.ai/docs/reference/data-and-context/) describes how the data moves.

## Start and pause blocks

**Manual**, **Webhook**, **Interval**, and **Schedule** start a run. They have no incoming connection. **For approval**, **For input**, **For duration**, **Until date**, and **Until webhook** pause a branch that has already started. See [Triggers, approvals, and waits](https://outwin.ai/docs/reference/triggers-approvals-and-waits/) for their settings and outputs.

## AI and routing blocks

| Block | Configuration | Result |
| --- | --- | --- |
| **Think** | Instructions and a model. Optional knowledge and tools. | The model’s response. |
| **Yes / No** | Instructions defining when to choose yes or no. Optional knowledge and tools. | Sends the incoming value unchanged down **Yes** or **No** and records the reason. |
| **Classifier** | Instructions and two to five categories. Category names can have up to 40 characters. | Sends the incoming value unchanged down one category or **Other** and records the reason. |
| **Summarize** | Instructions for what the summary should contain. | A text summary of the incoming data. |
| **Filter** | Criteria for what to keep from the input. | Text containing the selected information. |

Each reachable Route output can have its own downstream connection. If a run takes an output with no connection, that path ends at the Route block. **Other** is built into **Classifier** and does not count toward the category limit.

## Combine paths

| Block | When it runs | Result |
| --- | --- | --- |
| **Merge** | After every configured input receives data. | Combines the values as text, an object, or an array. The default is text. |
| **Join** | Each time one of its inputs receives data. | Passes that arriving value through. **Max passes** defaults to three and accepts whole numbers from one to 25, including the first pass. |

Use **Merge** when downstream work needs all inputs. If one path never arrives, Merge cannot produce a result. Use **Join** when either of two paths can reach the next block. A loop can return to a Join, which stops with an error if another input arrives after its pass limit.

## Database blocks

Database blocks use a table in a workspace database or a configured connection to a supported external database. Each block requires a database and table. A built-in table gets its rows from the grid, from a workflow, or from a CSV file through [Import CSV](https://outwin.ai/docs/reference/databases/#import-a-csv-file).

| Block | Configuration | Result |
| --- | --- | --- |
| **Find rows** | Optional filters, sorting, and result limit. The default limit is 50 rows, up to 500. A filter on a number field with a format reads its value the way the field does, such as `$1,000` or `50%`. | Matching rows, a count when available, and whether more results exist. An empty match returns an empty list. |
| **Add row** | Values for the new row’s fields. | The incoming data and the created row. Each value is checked against the field's type and, when the field has one, its [format](https://outwin.ai/docs/reference/databases/): a percent field reads `25%` and stores 0.25, and a URL field refuses text that is not a web address. A value that does not fit fails the block, and nothing is written. |
| **Update rows** | A row or matching conditions, and at least one field to update. | The incoming data, the number of rows updated, and up to 50 updated rows. A run that matches no rows fails by default. |

In **Add row** and **Update rows**, a person field takes a member's email or name, and a created by, last modified by, or autonumber field cannot be set, because OutWin fills it. In the rows a database block returns, a person reads as their name and email, and a workflow as its name. An attachment field takes asset names or `{{assets["Name"]}}` expressions, one or a list, and a block reads each file as its name, URL, kind, file type, and size, leaving out any file deleted from the Assets library.

## API blocks

[HTTP request](https://outwin.ai/docs/reference/blocks/http-request/) sends one request per run to an outside API through an [API connection](https://outwin.ai/docs/build/connect-an-api/) saved in **Connections**.

| Block | Configuration | Result |
| --- | --- | --- |
| **HTTP request** | A connection, a method, and a path. Optional query parameters, headers, and a JSON or text body. | The incoming data and the response: its status, headers, and body. |

The request is sent once and never retried. An error status fails the block unless **Fail on an error status** is off, and a connection that is turned off or deleted always fails it.

## Canvas notes and code

A **Note** annotates the canvas. It has no connections and takes no part in a run. The **Code** block is reserved for future use and cannot execute custom code.
