Skip to content
Docs

How-to: Export and import flows

This guide explains how to export a flow as a JSON file, import it into another workspace, and choose how to resolve conflicts with entities that already exist there.

  • Permission to view and create flows in both workspaces.
  1. Open the flow, click the gear icon next to its title to open Flow settings, and click Export at the bottom of it.

    The Export dialog with the Include dependencies and Include table rows toggles, both off, and Submit
    The Export dialog with the Include dependencies and Include table rows toggles, both off, and Submit
  2. Decide whether to enable Include dependencies. When enabled, the export bundles everything the flow references (API schemas, stores, webhooks, and so on) so the flow works after import without manual re-linking. It is off by default. A table that a query or a prompt names by its table name, such as table_store_d85k0rv160khb1q83lc0, counts as referenced, and the import points that name at the table it creates.

  3. Decide whether to enable Include table rows. When enabled, each table in the export carries its first 100 rows, so the import starts with sample data to run against. It is off by default, because the rows are your workspace’s data and the file may travel further than you intend. Rows are written only into a table the import creates: a table it skips to or replaces keeps the rows it has.

  4. Click Submit to download the JSON file.

To export several flows at once, select them in the flows list and use the bulk Export action. The selected flows download as a single package that imports in one step.

The flows list with two flows selected and the Bulk actions menu open on Delete selected and Export
The flows list with two flows selected and the Bulk actions menu open on Delete selected and Export
  1. Open the flows list and click Import.

    The Import dialog with a JSON File upload field and Submit
    The Import dialog with a JSON File upload field and Submit
  2. Upload the JSON export file. Publicus analyzes it immediately and shows any errors before you commit to the import, and any warnings about what the export could not carry, such as a secret’s value.

  3. If nothing in the file collides with existing entities, submit the form. The flow and its bundled dependencies are created.

If the analysis finds entities whose names already exist in the target workspace, a Conflicts detected section appears with a Resolution strategy select. The chosen strategy applies to every colliding entity in the import:

Strategy Effect
Skip Keep the existing entity and import nothing for the colliding one. Imported items that reference it are wired to the existing entity.
Rename (default) Import the colliding entity as a new copy with a unique name, e.g. My Flow (imported). Existing data is never touched.
Replace Overwrite the existing entity in place with the imported version.

Rename is the safest choice: it imports everything and never modifies or discards existing data.

The Conflicts detected section listing a table, a webhook and a flow whose names already exist, with the Resolution strategy select set to Rename
The Conflicts detected section listing a table, a webhook and a flow whose names already exist, with the Resolution strategy select set to Rename
  • The imported flow appears in the flows list (with an (imported) suffix if it was renamed).
  • Open the flow and check that its nodes point at the intended stores, schemas, and webhooks.
  • Re-enter any secret values, then run the flow once and inspect the run to confirm it behaves as expected.

Agent memory items travel separately from flows. Open Memory:

  • Export downloads every active memory item as a portable JSON file.

  • Import uploads such a file. Imported items land with the trusted Imported review status, so they are immediately available to agents. Duplicates of items you already have are skipped, and embeddings are recomputed locally rather than carried over.

    The memory Import dialog with a Memory items JSON upload, noting that items land as Imported, duplicates are skipped and embeddings are recomputed
    The memory Import dialog with a Memory items JSON upload, noting that items land as Imported, duplicates are skipped and embeddings are recomputed
  • Flows — how flows are structured.
  • Runs — inspect and debug runs.
  • Secrets — managing secret values.