Rules dictating which blocks can be connected¶
A natural question you might ask is: How do I know which blocks to connect to achieve my desired outcome? This is a crucial question, which is why we've created auto-generated documentation for all supported Workflow blocks. In this guide, we’ll show you how to use these docs effectively and explain key details that help you understand why certain connections between blocks are possible, while others may not be.
Note
Using the Workflows UI in the Roboflow APP you may find compatible connections between steps found automatically without need for your input. This page explains briefly how to deduce if two blocks can be connected, making it possible to connect steps manually if needed. Logically, the page must appear before a link to blocks gallery, as it explains how to effectively use these docs. At the same time, it introduces references to concepts further explained in the User and Developer Guide. Please continue reading those sections if you find some concepts presented here needing further explanation.
Navigation the blocks documentation¶
When you open the blocks documentation, you’ll see a list of all blocks supported by Roboflow. Each block entry includes a name, brief description, category, and license for the block. You can click on any block to see more detailed information.
On the block details page, you’ll find documentation for all supported versions of that block, starting with the latest version. For each version, you’ll see:
-
detailed description of the block
-
type identifier, which is required in Workflow definitions to identify the specific block used for a step
-
table of configuration properties, listing the fields that can be specified in a Workflow definition, including their types, descriptions, and whether they can accept a dynamic selector or just a fixed value.
-
Available connections, showing which blocks can provide inputs to this block and which can use its outputs.
-
A list of input and output bindings:
-
input bindings are the names of step definition properties that can hold selectors, along with the type (or
kind
) of data they pass. -
output bindings are names and kinds for block outputs that can be used as inputs by steps defined in Workflow definition
-
An example of a Workflow step based on the documented block.
The kind
mentioned above refers to the type of data flowing through the connection during execution,
and this is further explained in the developer guide.
What makes connections valid?¶
Each block provides a manifest that lists the fields to be included in the Workflow Definition when creating a step. The Values of these fields in a Workflow Definition may contain:
-
References (selectors) to data the block will process, such as step outputs or batch-oriented workflow inputs
-
Configuration values: Specific settings for the step or references (selectors) that provide configuration parameters dynamically during execution.
The manifest also includes the block's outputs.
For each step definition field (if it can hold a selector) and step output, the expected kind is specified. A kind is a high-level definition of the type of data that will be passed during workflow execution. Simply put, it describes the data that will replace the selector during block execution.
To ensure steps are correctly connected, the Workflow Compiler checks if the input and output kinds match. If they do, the connection is valid.
Additionally, the dimensionality level
of the data is considered when
validating connections. This ensures that data from multiple sources is compatible across the entire Workflow,
not just between two connected steps. More details on dimensionality levels can be found in the
user guide describing workflow execution.