> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.meetgail.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.meetgail.com/_mcp/server.

# Saving & Publishing

> Understand autosaved drafts, test current changes, publish a workflow, and revert an unpublished draft.

The workflow builder saves your edits automatically as a draft.
Click **Publish** when you want those changes to become the version used by published runs.
Editing an already published workflow creates a draft while its last published version remains available.

## Choose the right action

| Action                              | What it does                                                                           |
| ----------------------------------- | -------------------------------------------------------------------------------------- |
| Edit the workflow                   | Automatically saves changes to the draft.                                              |
| **Run** or **Run current workflow** | Starts an interactive debug run of the current workflow so you can test your edits.    |
| **Run last published**              | Starts a run of the last published version, without your unpublished changes.          |
| **Publish**                         | Checks the current workflow and publishes it if the check succeeds.                    |
| **Revert to Published**             | Discards the unpublished draft and restores the last published version in the builder. |

## Save and test your draft

Change the workflow's name, description, nodes, or connections in the builder.
Edits save automatically after a short pause or when you leave a field.
If a save error appears, resolve it before leaving the page.

Click **Run** in the builder header, or open its dropdown and choose **Run current workflow**.
If the Start node defines inputs or accepts files, fill in the input dialog before starting.
The debugger opens so you can step through the run and inspect its results.
See [Testing & Debugging](/platform/workflows/core-concepts/testing-debugging) for breakpoints and overrides.

> **Note**
>
> Debug runs perform real actions, including sending messages and updating external systems.
> Use test recipients and data, or configure overrides for steps you do not want to execute.

## Publish changes

1. Review the nodes, credentials, and Start node settings.
2. Click **Publish** in the builder header.
3. If the check reports an error, correct the named node or field and publish again.
4. Wait for the publication confirmation before relying on the new version.

Publishing also applies configured Gail webhook and workflow-tool changes.
If publication succeeds but a webhook or tool update fails, the workflow is published, but that integration still needs attention.
Follow the error message and publish again after resolving the problem.

## Run the published version

Open the dropdown next to **Run** and select **Run last published**.
This option is unavailable until the workflow has a published version.
Provide any requested inputs or files, then start the run.

Use this action to check the version currently in use while keeping a draft for further edits.
Changes to shared [Public Variables](/platform/workflows/core-concepts/configuration) and [Secret Variables](/platform/workflows/core-concepts/secrets) are saved separately from the workflow draft.
Manually started published runs can therefore use updated shared values even when you have not republished the workflow.
Scheduled workflows require republishing to refresh those values.

## Discard an unpublished draft

If a published workflow has draft changes, the builder shows **Revert to Published**.
Click it and confirm that you want to discard the draft.
The builder reloads the last published workflow.

This discards your unpublished changes.
It does not undo actions performed by earlier runs or roll back separately saved public variables and secrets.
It also does not select an older published revision; it returns to the most recently published version.

## Related

#### [Testing & Debugging](/platform/workflows/core-concepts/testing-debugging)

Inspect a run before publishing your changes.

#### [Starting a Workflow](/platform/workflows/core-concepts/starting-a-workflow)

Define the inputs and files a run needs.