> ## Documentation Index
> Fetch the complete documentation index at: https://docs.invopop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Run a workflow

> Start a job from a document, from the workflow editor or list, or through the API, with or without arguments.

Workflows in Invopop can be executed through the following methods:

* Manually via the Invopop Console
* Via API calls to the [create job endpoint](https://docs.invopop.com/api-ref/transform/jobs/create-a-job-put.md)
* Automatically by an embedded application.

Workflows are executed on *silo entries* (such as invoices or suppliers). This action creates a *job*. When a job is run, the silo entry will be updated with any changes or attachments generated during processing. The status of a job can be seen in the silo entry's activity tab, or in [Job history](https://docs.invopop.com/console/workflow-history.md), accessible from the left sidebar.

## Running from the Console

There are three ways to run a workflow from the Console:

### From a silo entry

While viewing an invoice, supplier, or other silo entry, click <kbd>Run Workflow</kbd> in the top toolbar.

![Run Workflow button in the silo entry toolbar](https://mintcdn.com/invopop/sers1hOWPWrRa1NA/assets/guides/workflow-run-job-from-entry.png?fit=max\&auto=format\&n=sers1hOWPWrRa1NA\&q=85\&s=dbd8e48f5f8494ed1e04ba3fa458fe05)

This opens a panel where you search for and select the workflow to run. The current entry is used as the document automatically.

![Workflow selection panel from a silo entry](https://mintcdn.com/invopop/sers1hOWPWrRa1NA/assets/guides/workflows-run-selected-entry.png?fit=max\&auto=format\&n=sers1hOWPWrRa1NA\&q=85\&s=c20081e59cd8bdca3367ee73d89dd4a4)

Click <kbd>Run Workflow</kbd> to create the job. This method does not support passing arguments: the job runs with the selected entry only.

### From the workflow editor or list

You can also start a run from the workflow side:

* **From the workflow editor**: Click the **Run** button in the top bar while viewing a workflow.

![Run button in the workflow editor](https://mintcdn.com/invopop/sers1hOWPWrRa1NA/assets/guides/workflow-run-job-from-editor.png?fit=max\&auto=format\&n=sers1hOWPWrRa1NA\&q=85\&s=ddb981d90c11963cab627fde56ebb5f8)

* **From the workflow list**: Click the `...` menu on any workflow row and select **Run**.

![Run option in the workflow list menu](https://mintcdn.com/invopop/sers1hOWPWrRa1NA/assets/guides/workflow-run-job-from-table.png?fit=max\&auto=format\&n=sers1hOWPWrRa1NA\&q=85\&s=91ee5f81659f82bfc6078d7706b9eace)

Both options open a panel where you configure the job inputs:

![Run workflow panel with document and arguments fields](https://mintcdn.com/invopop/sers1hOWPWrRa1NA/assets/guides/workflow-run-select.png?fit=max\&auto=format\&n=sers1hOWPWrRa1NA\&q=85\&s=784fa8d08ede87efeec3af4b6344c734)

* **Select a document**: Search for and select an existing silo entry (invoice, supplier, etc.) to process.
* **Arguments**: Provide string key-value pairs that will be passed to the workflow steps. The specific keys and values depend on the workflow. For example, a KSeF import workflow might expect a `ksef-number` and `nip` argument.

A job requires **at least one** of these: a document or arguments. You can also provide both. For example, a sync workflow may need a party document selected *and* date range arguments.

![Run workflow panel with a document and arguments filled in](https://mintcdn.com/invopop/sers1hOWPWrRa1NA/assets/guides/workflow-run-select-filled.png?fit=max\&auto=format\&n=sers1hOWPWrRa1NA\&q=85\&s=50d8be1d918f610312a1b7d41d715bf5)

Click <kbd>Run workflow</kbd> to create the job.

> [!NOTE]
>
> When a job is run with arguments only and no document selected, the workflow will typically create a new silo entry or fetch an existing one based on the arguments provided. For example, an import workflow receiving a document identifier as an argument will download the document and create a corresponding silo entry automatically.

## Running from the API

Create a job with the [create job endpoint](https://docs.invopop.com/api-ref/transform/jobs/create-a-job-put.md), giving it the workflow and its input:

* `silo_entry_id`: the silo entry to process. This is the preferred input and can be combined with `args`.
* `args`: the arguments the workflow expects. Send them alone for workflows that create or fetch their own entry, such as imports.
* `data`: a raw GOBL document, which is stored as a new silo entry before processing. It is only used when the job has neither `silo_entry_id` nor `args`. Use [webhooks](https://docs.invopop.com/guides/webhooks.md) to be notified when the job finishes.

## Related resources

| | |
| - | - |
| API reference |  [Create a job (PUT)](https://docs.invopop.com/api-ref/transform/jobs/create-a-job-put.md)  [Create a job (POST)](https://docs.invopop.com/api-ref/transform/jobs/create-a-job-post.md)  [Fetch a job](https://docs.invopop.com/api-ref/transform/jobs/fetch-a-job.md) |
| Related pages |  [Job history](https://docs.invopop.com/console/workflow-history.md)  [Conditions and error handling](https://docs.invopop.com/console/workflow-conditions.md) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.