> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/deploy/batch-processing/run-from-the-app.md).

# Run Workflows from the App

Besides the [API](/deploy/batch-processing/api-reference.md) and [CLI](/deploy/batch-processing/cli-usage.md), you can start [Batch Processing](/deploy/batch-processing.md) jobs directly from the Roboflow app to run a [Workflow](/workflows/what-is-workflows.md) over large sets of stored images. There are two ways to do this:

* On demand, from the Asset Library.
* Automatically, each time a [Datasource](/datasets/adding-data/datasources.md) mirrors new images from a cloud bucket.

## From the Asset Library

The [Asset Library](/workspaces/asset-library.md) lets you run a Workflow on the images you select, on demand.

Select images manually, or select all images matching your current search, then click "Run Workflow". For the full flow, including how to write results back onto your images, see [Running a Workflow](/workspaces/asset-library.md#running-a-workflow).

## Automatically When a Datasource Mirrors

A [Datasource](/datasets/adding-data/datasources.md) mirrors images and metadata from a cloud bucket into your Workspace. You can automatically run a Workflow over the new images each mirror imports. This keeps enrichment such as tagging, quality scoring, or pre-labeling up to date as new data arrives, with no manual step.

You configure these automations in the "Workflow runs" section of your [Datasources](https://app.roboflow.com/settings/datasources) page.

{% hint style="info" %}
Managing Workflow runs requires a Workspace role with permission to manage batch automations. If you do not see the "Workflow runs" section, ask a Workspace admin.
{% endhint %}

To add an automation:

1. In the "Workflow runs" section, click "Add workflow run".
2. Enter a Name for the automation.
3. Under "Run when", choose "On Sync" and select the [Datasources](/datasets/adding-data/datasources.md) that should trigger it.
4. Select the Workflow to run. It must have exactly one `image` input.
5. Choose a Machine type (CPU or GPU).
6. Click "Create".

Each time one of the selected Datasources mirrors, the automation runs the Workflow as a Batch Processing job over the images that mirror imported. Track progress in the Activity Center and on the "Batch Processing" tab under Deployments, the same as any other Batch Processing job.

To have a Workflow write its results back onto your images so you can search for them in the Asset Library, see [Writing results back to the Asset Library](/workspaces/asset-library.md#writing-results-back-to-the-asset-library).
