ByteChef LogoByteChef
EmbeddedAutomations
Enterprise Edition

Automation editor

Author workflow templates in the Automation editor and let connected users refine their own workflows in the embeddable white-label Workflow Builder.

There are two workflow-building surfaces in Embedded, and they serve different people:

  • The Automation editor is where you author the workflow templates that ship with your product. It is opened from the Automations page and edits templates in your workspace, against your workspace connections.
  • The Workflow Builder is the white-label, embeddable editor you drop into your own app so a connected user can build and refine their own workflow against their own connections. It has no ByteChef chrome around it - see White-Label Execution.

Both surfaces render the same drag-and-drop canvas as the standard automation editor, so the core mechanics - adding triggers and actions, wiring data pills, flow controls - are documented once under Building workflows. This page focuses on what is specific to the two embedded surfaces.


The Automation editor

Open the editor by clicking a workflow template (or a project name) on the Automations page. The URL is /embedded/automations/{workflowUuid}/editor.

The screen has three regions: a collapsible left sidebar for navigating projects and workflows, a header with the breadcrumb and action buttons, and the canvas with a bottom test-output panel.

From left to right the header contains:

ControlDescription
Sidebar toggleShows or hides the left workflow sidebar.
BreadcrumbThe project name, a status badge, and the workflow selector (see below).
Saving indicatorNext to the workflow selector. Shows Saving… while changes are saved and Offline when you're offline. Hidden otherwise.
Settings (gear)Project and workflow settings menu. Tooltip: Project and workflow settings.
Output (chevron)Toggles the workflow test-execution output panel.
Test / ChatRuns the current workflow (Chat when the workflow has a chat trigger, Test otherwise); becomes Stop while running.
PublishPublishes the project as a new version.

The breadcrumb shows the project name followed by a status badge:

  • V<n> PUBLISHED - the project has a published version; <n> is the last published version.
  • V<n> DRAFT - the project has unpublished changes.

Next to the badge, the workflow selector dropdown lets you switch between the workflow templates in the current project. Each entry shows the workflow label (or its UUID when unlabeled).

The sidebar lets you move around your projects and templates without leaving the editor:

  1. Project selector - a dropdown with Current project, All projects, and every project by name. Choosing a project lists that project's workflows below.
  2. New project (+ icon) - opens the project dialog to create a project (Name, Description, Category, Tags).
  3. Search workflows - filters the list below by label.
  4. Sort (filter icon) - sorts the list by Last edited, Date created, A-Z, or Z-A. Tooltip: Sort workflows.
  5. New Workflow - creates an empty workflow (empty inputs, tasks, and triggers) in the selected project and opens it in the editor.
  6. Workflow list - each card shows the icons of the workflow's triggers and components, its label, and the last-edited date. Click a card to open that workflow.

Settings menu

The Settings (gear) menu is split into two tabs - Workflow and Project:

TabActionResult
WorkflowEditOpens the workflow dialog to change the label and description.
WorkflowDuplicateCopies the workflow and opens the copy.
WorkflowExportDownloads the workflow definition.
WorkflowDeleteDeletes the workflow after a confirmation dialog, then returns to the Automations list.
ProjectEditOpens the project dialog (name, description, category, tags).
ProjectDuplicateCopies the whole project and returns to the Automations list.
ProjectExportDownloads the project.
ProjectProject HistoryOpens the version-history sheet (see below).
ProjectDeleteDeletes the project and its workflows after a confirmation dialog.

Publishing a version

  1. Click Publish in the header. Tooltip: Publish the project.
  2. In the Publish Project popover, optionally enter a Description (up to 256 characters).
  3. Click Publish.

Publishing cuts a new project version and makes the project's templates available to connected users. A toast confirms The project has been published. and the breadcrumb badge flips to V<n> PUBLISHED.

Project version history

Open Settings → Project → Project History to review the project's versions.

Each entry shows the version number (V<n>), the published date, and a status badge (PUBLISHED or DRAFT). Every entry, the draft included, expands to show its details.

An expanded entry also lists the workflows that changed in that version compared with the previous version: each added, removed or modified workflow, with the change count for modified workflows, under a summary such as "3 workflows changed (1 added, 2 modified)". The draft is compared with the last published version.

Click a workflow in the list to open its changes in a dialog with three tabs:

  • Changes - workflow-level changes such as the label and description, and the trigger, task, cluster element, input and output changes, with old → new values for every changed parameter. An added or removed workflow says so instead of listing changes.
  • Canvas - a read-only canvas of the workflow with added nodes in green, modified nodes in amber, moved nodes in blue and removed nodes in red. A toggle switches between the previous and the selected version.
  • Definition - a side-by-side diff of the workflow definition.

Values of sensitive parameters such as passwords, tokens and API keys are shown as ••••••.

Testing a workflow

  • Click Test (or Chat, if the workflow has a chat trigger) to run the current workflow. The bottom output panel opens with the run's results.
  • While a run is in progress the button becomes Stop; click it to cancel.
  • The Output (chevron) button toggles the last test-execution output panel open and closed.
  • Test is disabled until every required workflow input, connection, and component property is set. The button's tooltip explains this when disabled.

The embeddable Workflow Builder

The Workflow Builder is the white-label editor you embed inside your own product (typically in an iframe) so a connected user can build and refine their own workflow. Unlike the Automation editor, it:

  • operates on a connected user's own connections, not your workspace connections;
  • is a single-workflow surface - no left sidebar, no project or workflow selector, no settings menu;
  • receives its context from your host app through a postMessage handshake rather than from ByteChef navigation.

The embed handshake

When the builder loads inside your app it:

  1. Reads the allowed parent origins from the ByteChef server.
  2. Posts an EMBED_READY message to the parent window, addressed only to the allowed parent origins. If none are configured it addresses the origin of the page that embeds it, which the browser reports as the iframe's referrer. If your app sends no referrer (Referrer-Policy: no-referrer) and no origins are configured, the builder cannot announce itself, so configure the allowed parent origins.
  3. Waits for your app to reply with an EMBED_INIT message. Until it arrives, the builder shows a loading state.

The allowed parent origins are set on the ByteChef server with BYTECHEF_EMBEDDED_ALLOWED_PARENT_ORIGINS (property bytechef.embedded.allowed-parent-origins): a comma-separated list of exact origins such as https://app.example.com,https://admin.example.com, with no path and no wildcard. The server also sends them as Content-Security-Policy: frame-ancestors on the builder, Automation Hub and Integration Marketplace pages, so the browser refuses to render those pages inside any other site. Set it in production. When it is empty, any website can embed the pages and send them EMBED_INIT, and the pages log a warning in the browser console.

For example, on the ByteChef server:

BYTECHEF_EMBEDDED_ALLOWED_PARENT_ORIGINS=https://app.example.com,https://admin.example.com

If you build the client yourself, VITE_EMBEDDED_PARENT_ORIGINS sets a build-time list with the same format. It applies only when the server list is empty; a non-empty server list replaces it.

The EMBED_INIT message carries the parameters that configure the session:

ParameterPurpose
jwtTokenThe connected user's signed token; stored for the session and used to authorize all requests.
environmentThe environment to run against (defaults to PRODUCTION).
includeComponentsRestricts the component palette to the listed components.
connectionDialogAllowedDeprecated. Use the connectionDialogAllowed claim of the JWT instead. While the parameter is still accepted, false hides connection creation, but true cannot allow what the token denies.

Messages are only accepted from the parent window and, when allowed parent origins are configured, only from one of those origins.

With React, the EmbeddedWorkflowBuilder component runs the handshake for you. It loads the builder for one workflow uuid:

'use client';
import {EmbeddedWorkflowBuilder} from '@bytechef/embedded';

export function WorkflowEditor({jwtToken, workflowUuid}: {jwtToken: string; workflowUuid: string}) {
    return (
        <div style={{height: 800, position: 'relative'}}>
            <EmbeddedWorkflowBuilder
                baseUrl="https://your-bytechef-host.example.com"
                environment="PRODUCTION"
                includeComponents={['slack', 'googleMail']}
                jwtToken={jwtToken}
                workflowUuid={workflowUuid}
            />
        </div>
    );
}

Without React, load workflow-builder.html#/embedded/builder/{workflowUuid} in an iframe and answer EMBED_READY yourself. This is what the component does:

<iframe
    id="bytechef-builder"
    src="https://your-bytechef-host.example.com/workflow-builder.html#/embedded/builder/<workflow-uuid>"
    style="border: none; height: 800px; width: 100%"
    title="Workflow Builder"
></iframe>

<script>
    const byteChefOrigin = 'https://your-bytechef-host.example.com';
    const builderIframe = document.getElementById('bytechef-builder');

    window.addEventListener('message', (event) => {
        if (event.origin !== byteChefOrigin || event.data?.type !== 'EMBED_READY') {
            return;
        }

        builderIframe.contentWindow.postMessage(
            {
                params: {environment: 'PRODUCTION', includeComponents: ['slack'], jwtToken: '<jwt>'},
                type: 'EMBED_INIT',
            },
            byteChefOrigin
        );
    });
</script>

Your app can send EMBED_INIT again at any time, for example after refreshing the user's token. The builder replaces the stored token and environment with the new values; an EMBED_INIT without a jwtToken clears the stored token. The @bytechef/embedded components do this for you whenever their props change.

What the connected user sees

The builder renders the same canvas as the standard automation editor, with two deliberate differences: the AI copilot and the workflow-inputs panel are hidden. The header contains:

ControlDescription
Workflow labelThe current workflow's name, with a V<n> DRAFT badge.
Edit (pencil)Opens the workflow dialog to rename the workflow or change its description.
Output (chevron)Toggles the test-execution output panel.
Test / ChatRuns the workflow (Chat for chat-trigger workflows, Test otherwise); becomes Stop while running.
PublishPublishes the connected user's workflow.

Connections created or picked here belong to the connected user. New connections are created against that user's identity. Connection creation is offered unless the user's JWT sets the connectionDialogAllowed claim to false; the server then also rejects creating a connection with 403, so the user can only pick existing connections. See Generate a JWT.

Publishing as a connected user

  1. Click Publish in the header.
  2. Optionally enter a Description (up to 256 characters) in the Publish Project popover.
  3. Click Publish.

A toast confirms The workflow has been published. This publishes the connected user's own workflow instance - it does not change your shipped template.


Relationship between the two surfaces

  • You author reusable templates in the Automation editor and publish the project so those templates are available to connected users.
  • A connected user's workflow - created from your template or from scratch - is edited in the embeddable Workflow Builder inside your app, against their connections, and published on their behalf.

For how execution stays isolated and white-labeled, see White-Label Execution.

See also

How is this guide?

Last updated on

On this page