Using building blocks in workflows
Building blocks you added, and the ones your workspace published itself, appear in the Building blocks section of the editor's step list, badged Yours, Workspace or Community. For one you added, only the versions you added are offered (newest first). For your own, all published versions are.
Adding a Building block step
- Search the step list for the building block, or scroll to Building blocks.
- Click it, or drag it onto the canvas.
The step is created with the building block's name and its latest version. To use another version, pick it in the step's panel (see Changing the version).
Filling in inputs
Click the step to open its settings. The fields come from the building block's inputs.
-
Value fields (
String,Number,Boolean) accept fixed values and expressions, so you can pass data from earlier steps:{{ $nodes['Find customer'].email }} -
Connection slots ask you to pick one of your own connections. If the building block requires a connection type, only connections of that type are listed. Use + New connection under the field to create one on the spot.
Values are worked out in your workflow before the building block starts, and only these declared inputs are passed to it.
When the step runs, Blokkio checks:
| Check | Error if it fails |
|---|---|
| A required input has no value | Input 'Channel ID' is required by this building block. |
| A required connection slot is empty | Connection 'Slack' is required by this building block. Pick one of your connections in the Building block step. |
| The bound connection isn't in this project | The connection bound to 'Slack' was not found in this project. |
| The bound connection is the wrong type | The connection bound to 'Slack' is not of the type this building block expects. |
| You haven't added the version | Building block 'Send Slack message' v1.2.0 isn't added to your workspace. Add it under Building blocks → Browse. |
| The building block is private to another workspace | This building block is private and not available to your workspace. |
These are normal step failures, so error handling options apply.
Changing the version
When more than one version is available, the step's settings show a Building block version dropdown with the versions you added. Choose a version, then review the fields: they update to the new version's inputs. Save your changes.
To move to a version you don't have yet, first add it from Browse. It is added next to your current version, so other workflows are not affected.
Deprecated versions
If the publisher deprecates the version a step uses, the step keeps working, and the app tells you:
- The step on the canvas shows a deprecated badge.
- The step's settings show: The publisher deprecated this version of the building block. It still runs, but switch to a published version. In the Building block version dropdown the current version is labelled (deprecated).
- In the step list, a deprecated version is only offered (and flagged) when you have no published version of that building block added.
Add a newer version and switch the step to it when you can.
Reading the output
The value returned by the building block's Building block output step becomes this step's output:
{{ $nodes['Send Slack message'].ts }}
The fields depend on what the building block returns. Check its description or run a test to see the shape.
How it runs
- Your workflow pauses at the Building block step.
- The building block's workflow runs as a child run in your project, with your inputs and the connections you bound.
- When it finishes, its output is returned and your workflow continues. If it fails, the step fails with the building block's error message.
Cancelling your run also cancels the building block's run. Child runs aren't listed separately in Runs and can't be re-run on their own; re-run the parent run. In projects on a self-hosted worker pool, the Building block step runs on your worker and the building block's steps run on your pool too; see where building blocks run.