# Workflows

This guide covers how to deploy, test, and manage workflows on the Dynamiq platform. It provides instructions on creating deployments, using workflows via API, tracking and tracing operations, and reviewing deployment history.

### Deploying Workflows

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

* Navigate to the **Deployments** tab:
  * From the main navigation menu, select **Deployments**.
  * In the **Workflows** section, click **Deploy a workflow** to deploy the workflow.
* Select deployment type:
  * In the side panel, choose **Workflow**. This option allows you to deploy workflows and integrate them into your application using API.
* Configure the workflow deployment:
  * **Name**: Assign a meaningful name to your deployment to help identify it in the future.
  * **Description**: Optionally, add a description for better context on the deployment's purpose.
  * **Source Workflow**: Select the workflow you want to deploy from the dropdown menu.
  * **Source Version**: Choose the version of the workflow to deploy. This helps manage different workflow iterations and ensures consistent deployment.
  * **Runtime**: Choose the appropriate runtime version. The platform will default to the latest version if not specified.
* **Create Deployment**:
  * Once configured, click **Create** to deploy the workflows. The new deployment will be listed under **Deployments** with its status and details.

### Using Deployed Workflows

Once your workflow is deployed. Go to the **Endpoint** tab. You will see a Python code example to interact with it. The provided code sample illustrates how to make a request to the endpoint, including options for configuring request headers, payload, and handling streaming responses if enabled.

All workflow deployments are private. You will need to use the access key to access the deployment. The example code snippet in the **Endpoint** tab shows how to include the authorization token using `DYNAMIQ_ACCESS_KEY` environment variable.

### Testing Deployed Workflows

Navigate to the **Test** tab within the deployment details. This interface allows you to interact with the deployed workflow by sending inputs and viewing responses directly in the UI.

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

In the **Input** section of the Test tab, you can provide a JSON object to simulate data being sent to the workflow's endpoint. This input should follow the expected schema defined by your workflow. Once you’ve entered the input data:

1. Click **Run**: This triggers the workflow to process the input and returns the result.
2. Observe the **Output**: The **Result** section displays the JSON output generated by the workflow.

The platform provides a real-time response, allowing you to iteratively test various inputs and review how the workflow handles them.


---

# 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.getdynamiq.ai/deployments/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.
