> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oktivo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Export and import workflows

> Share an Auto Workflow as a JSON file and import one from someone else

# Export and import workflows

Export a workflow to a `.workflow.json` file to back it up or share it. Import a file to get a copy in your own account.

## Export

* On the **Auto Workflow** list, click **Export** on a workflow card.
* Inside the editor, click **Export JSON**. The button is disabled while there are unsaved changes ("Save first so the export matches"), so the file always matches what is saved.

The file contains the steps, their settings and how they are connected. It **does not** contain:

* Your agents, credentials, webhooks, tools, integrations or listeners. Only their names are kept, so the person importing knows what to connect.
* Secrets. API keys, tokens, passwords, signatures and similar values are replaced by `<REMOVED>`. Webhook URLs and sample data are left out.
* Run history.

Check the file before you share it. Text you typed into a message or payload is exported as it is.

## Import

1. On the **Auto Workflow** list, click **Import workflow** and choose a file or drop it on the dialog.
2. **Review.** You see the name, the number of steps and connections, who exported it and how many values were removed, with a list of problems and warnings. You can change the name (up to 20 characters).
3. **Map resources.** For every agent, listener, credential, integration, webhook or tool the workflow used, choose your own, or **Leave unmapped**. For a WhatsApp template, type its name.
4. **Confirm.** The workflow is created **inactive** and opens in the editor. Problems are in the **Problems** list.

Unmapped items leave the step with an error ("choose a ..."). You can still keep the draft, fix those steps and then activate.

## When a file is refused

| Message | What to do |
| - | - |
| The file is not valid JSON (line L, column C) | The file was edited or cut. Export it again. |
| This file was exported by a newer version | Update the app, or ask for a file from the same version. |
| Node N has the type "x", which this app does not know | The sender used a step your account does not have. |
| The file is too large | Files can be up to 1 MB, with up to 200 steps and 400 connections. |
| Text longer than 2000 characters | Shorten the long text in the original workflow and export again. |
| Keys such as `__proto__` or starting with `$` | These are never allowed. Export the workflow again from the app. |

If two steps in the file share an id, the second one gets a new id and you see a warning.

## Tips

* Import is safe to try: **Review** and **Map resources** create nothing until you confirm.
* Names may repeat, so rename an imported copy if you already have one.
* Keep exports in a private place. They show your workflow logic even though secrets are removed.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.