# Publishing Flows

ZBrain allows you to create and activate workflows seamlessly, ensuring they function as intended from the moment they go live. Below are the steps for publishing a new flow and updating an existing one to keep your processes up-to-date.

## **1. Publishing a New Flow** <a href="#id-1.-publishing-a-new-flow" id="id-1.-publishing-a-new-flow"></a>

When you create and configure a new flow, you must publish it to make it active and ready for use. Follow these steps to publish a newly created flow:

1. **Build the Flow**\
   Design and configure the flow by adding a trigger and action steps as required. Ensure all settings are correctly configured.
2. **Review the Flow**\
   Verify the logic and settings of the flow to confirm everything is set up as intended to avoid errors during execution.
3. **Publish the Flow**\
   Once the flow is ready, click the **Save** button to publish the flow. This action activates the flow, enabling it to execute as configured.

<figure><img src="/files/qxRiYEBNySv7caZ7BuR1" alt=""><figcaption></figcaption></figure>

## **2. Updating a Published Flow** <a href="#id-2.-updating-a-published-flow" id="id-2.-updating-a-published-flow"></a>

When changes are made to a published flow, they are not immediately applied to ensure the live workflow remains uninterrupted and functions smoothly. To implement updates, follow these steps:

1. **Edit the Flow**\
   Modify the flow as needed, whether it is adding new steps, adjusting logic, or updating configurations.
2. **Review the Updates**\
   Carefully review the changes to verify their accuracy and ensure they meet the workflow requirements.
3. **Save and Publish the Updates**\
   Once finalized, click the Save button to publish the changes. The new version of the flow will replace the previous one and operate with the updated configuration, ensuring uninterrupted functionality.

By following these steps, you can create new flows or update existing ones without disrupting current operations, ensuring a smooth and efficient workflow management process.


---

# 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.zbrain.ai/zbrain-documentation/zbrain-builder/zbrain-ai-agents/creating-custom-ai-agents/define-flow/publishing-flows.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.
