Building blocks
A building block is a step you made from a workflow and can share. Once a project adds it, it appears in the Building blocks section of the editor's step list and works like any other step: it takes inputs, runs, and returns an output.
:::note Formerly "Integrations"
Building blocks used to be called integrations. Only the name changed. Old links to /integrations/... pages
(in the app and in these docs) redirect here. The API keeps the old name: /api/integrations, the Integration
trigger kind and the IntegrationsWrite / IntegrationsPublish permissions.
:::
Building block, step, app or template?
| Word | What it is |
|---|---|
| Step | Any single action in a workflow: send an email, check a condition, create an issue. |
| App | Connects Blokkio to an outside service (Slack, GitHub, your own API). Its actions become steps. See Apps. |
| Building block | A step you made from a workflow. Publish it, and others add it and use it like any step. |
| Template | A whole workflow you copy and then edit as your own. See Templates. |
How building blocks work
A building block is a published workflow that starts with a Building block inputs trigger and ends with a Building block output step. When a workflow uses it:
- The calling workflow pauses at the Building block step.
- The building block's workflow runs as a child run in the caller's project. It receives only the inputs the building block declares, filled in by the caller.
- The value of the Building block output step is returned as the step's output.
- The calling workflow continues.
Runs with your own connections
A building block never uses its publisher's credentials. Instead it declares connection slots: inputs of type
Connection. Whoever adds the Building block step picks one of their own connections for each slot. Because the
building block runs in the caller's project, $secrets and connections inside it resolve to the caller's project
too. The building block can't see the caller's other steps, and the caller can't see the publisher's secrets.
From workflow to shared step
Build workflow → Create building block → Publish version → Add to a project → Use in a workflow
| Step | Where |
|---|---|
| Build and publish the workflow | Workflow editor (Creating a building block) |
| Create the building block | Building blocks → Yours → New building block |
| Publish a version | Yours → open the building block → Publish version (Publishing) |
| Add it | Building blocks → Browse (Browse) |
| Use it | Editor → step list → Building blocks (Using building blocks) |
Visibility
When you create a building block you choose its visibility:
| Visibility | Who can find, add and run it |
|---|---|
| Private | Only your own workspace |
| Organization | Only your own workspace (shared organization visibility is not available yet) |
| Public | Every workspace on the platform, through Browse |
Visibility is checked when a workspace adds a building block and again every time it runs. A workspace other than the publisher's can only run versions it has added. The publisher can always run its own building blocks.
Versions
Every published version has a version number such as 1.0.0 or 1.2.3. It is a fixed copy of one saved version of
the workflow, so later edits to the workflow don't change a published version. Versions can be
deprecated: they keep working where they are already used, but nobody can
add them any more, and steps that use them are marked deprecated.
A workspace can have several versions of the same building block added. Adding a newer version puts it next to the older ones, and each step keeps its version until you change it.
A Building block step can also be connected to an AI Agent as a tool.
Limits
- Building block steps run on self-hosted workers too. In a project assigned to a self-hosted worker pool, the Building block step runs on your worker; the building block's own workflow is then started by Blokkio's engine (which coordinates every run) and its steps run wherever its project's steps run, so on your pool too. See where building blocks run.
- A building block's run appears under the calling run, not as a separate row in Runs.
- Importing custom block manifests is disabled for now. See custom blocks.
- How many building blocks you can create per project depends on your plan.