# Publishing Workflows

Once the flow or logic is built, click on **Save as Draft**. After you've saved, the **Save** button is grayed out and the **Publish** button becomes available to deploy the workflow.

<figure><img src="/files/uPeRormsiFIMYwlPM8Wg" alt=""><figcaption><p>Publish Button for Workflows</p></figcaption></figure>

For workflows to work as expected, the **Publish** step is mandatory every time you make a change to the workflow.

<div align="left"><figure><img src="/files/nhi2tI0JHudwfBs8ZvaK" alt="" width="375"><figcaption><p>Workflow Version </p></figcaption></figure></div>

### Versioning <a href="#pdf-page-od2vyizba1eck6gc5o7h-heading-h.3o7alnk-1" id="pdf-page-od2vyizba1eck6gc5o7h-heading-h.3o7alnk-1"></a>

The **Publish** feature has version control, so it is possible to roll back to any published version.

**To roll back to a previous version of your workflow:**

1. Use the **Status** pull-down list to see the **Version History**.
2. Choose the version of your workflow that you want to use.
3. **Save** and **Publish** the chosen version and it will become the active workflow.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aisera.com/aisera-platform/ai-automation-optimize-flow/ai-workflow-studio/publishing-workflows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
