> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/platform/console/flows/test-and-publish-flows.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Test and publish flows

Run a flow with test data, respond to approvals, and publish a verified version.

Test a draft before publishing it. Review each task's result, resolve configuration issues, and then make the version available.

## Test a flow

{% stepper %}
{% step %}

#### Open Try Out

Switch from **Editor** to **Try Out**.
{% endstep %}

{% step %}

#### Provide input

Enter a value for every field in the input schema. Use **JSON Grid** for one field per row: select **+ Add Entry**, enter a **Key** and **Value**, then select **✓**. Or use **Raw** for JSON input.

<figure><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-0035b30d888cf06852646af3c70598ea10f5dbcd%2Fqore_flows_how-to-try-out-add-entry_rounded_shadow.png?alt=media" alt="The Input panel in JSON Grid mode, with Key and Value fields, confirm and discard buttons, and Run and Cancel"><figcaption><p>Adding an input entry in JSON Grid.</p></figcaption></figure>
{% endstep %}

{% step %}

#### Run and inspect

Select **Run**. The **Execution Log** records each task and its result. Before the first run, it shows *No execution logs available*.

<figure><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-981917f380cd334de811cc609d2caa466b224995%2Fqore_flows_how-to-try-out_rounded_shadow.png?alt=media" alt="Try Out: the Input panel in Raw mode showing an empty JSON object with Run and Cancel, and the Execution Log reading No execution logs available"><figcaption><p>Try Out.</p></figcaption></figure>
{% endstep %}
{% endstepper %}

### Respond to an approval request

A **User Approval** task pauses the run. Enter the requested `answer`, such as `approve`, then select **Continue**. Select **Cancel** to stop the run.

## Publish a flow

Changes remain in a draft until you select **Publish**. When your account doesn't require approval, publishing makes the draft the current published version straight away.

When your account requires approval, **Publish** sends the flow for review instead. It asks `Send this flow for approval? Reviewers approve it as it is now, and it is published once approved.` Confirm, and the flow waits in **Pending Approval** until a reviewer decides in [Publish Review](https://docs.uptiq.ai/platform/control-center/govern/publish-review.md). The draft you submitted is the one that publishes.

{% hint style="info" %}
**Why you may not see an approval step.** Approval is a separate setting for each kind of publish. If the count for flows is 0 in your account, **Publish** takes effect at once and no request is created. This is true even when other kinds, such as agents or apps, still need review. An administrator changes the count in [Approval Policies](https://docs.uptiq.ai/platform/control-center/govern/publish-review.md#approval-policies). See [How approval works](https://docs.uptiq.ai/platform/control-center/govern/publish-review.md#how-approval-works).
{% endhint %}

If you change a step after you submit, approval doesn't publish it, and the request shows `The flow was changed after it was submitted for review. Submit it again.` To publish later changes, select **Withdraw review**, confirm `Withdraw this review?`, and submit again. Withdrawing leaves the flow unpublished.

{% hint style="info" %}
**Validate before publishing.** Complete all required task settings and review the Execution Log for expected results.
{% endhint %}

## Manage versions and runs

| Area                     | Use it to                                                                          |
| ------------------------ | ---------------------------------------------------------------------------------- |
| **Version History**      | Review the draft, current published version, and earlier saved versions.           |
| **Revert Draft Changes** | Discard the draft and restore the published version.                               |
| **Execution History**    | Review every run by date, time, and status. Select a run to inspect task outcomes. |

## What's next

{% content-ref url="/pages/HdER4gaMBlUA0oiTR2YL" %}
[Use flows with agents](https://docs.uptiq.ai/platform/console/flows/use-flows-with-agents.md)
{% endcontent-ref %}

{% content-ref url="/pages/z8rpK3t5SksnA7RebtXy" %}
[Publish Review](https://docs.uptiq.ai/platform/control-center/govern/publish-review.md)
{% endcontent-ref %}

***

{% columns %}
{% column width="83.33333333333334%" %}

<p align="right"><em>Maintained by</em> <mark style="color:green;">Abhishek Paul</mark><br><code>AI-assisted, human-approved</code></p>
{% endcolumn %}

{% column width="16.666666666666664%" %}

<div align="left"><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-d034645b4f8f8ee661985f5306b60ded3289653c%2Fmaintainer-abhishek-paul.png?alt=media" alt="" width="60"></div>
{% endcolumn %}
{% endcolumns %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uptiq.ai/platform/console/flows/test-and-publish-flows.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
