# Create a Workflow

## **Enter the Workflow Name**

![](/files/-MhXFznSc0j079n-C5b6)

{% hint style="info" %}
(Note: A workflow name can only contain lowercase letters, numbers, and minus signs. The name cannot be less than 2 characters, and its first character cannot be a minus sign.)
{% endhint %}

## Set Workflow Running Conditions

### 1. Set Running Parameters

Click **Add** to set parameters.

![](/files/-MhXNthS_zCtz939SeHV)

Fill in **Parameters name** (Note: A parameter name can only contain letters, numbers, and underscores. The name cannot be less than 2 characters, and its first character cannot be a number.), **type of data**, and **default value**.

### 2. Set Environmental Parameters

![](/files/-MhXO-C4fdRJAxdiqB39)

Click **Add** in the Environment column, and then enter the corresponding parameters in the **Key** (Note: A key can only contain letters, numbers, and underscores. The name cannot be less than 2 characters, and its first character cannot be a number) and **Value** columns respectively .

![](/files/-MhXO5L3UHDT_x9nx848)

### 3. Set Instance Parameters

Select instance configuration and the number of instances in the Instances column.

![](/files/-MhXOA-R-dyUhQtzhBf8)

## Enter Your YAML Code

Enter your YAML code in the YAML File.

![](/files/-MhXOOfJdKBXz3G3c_SY)

{% content-ref url="/pages/-MhSsTxURGTWVeXE7WHa" %}
[YAML Syntax Description](/guide/tensorbay/action/yaml-syntax-description.md)
{% endcontent-ref %}

### **Publish the Workflow**

After all settings are completed, you can click **Publish** to create or update the workflow, or click **Cancel** to return to the Actions Details page, which will not save the change.

![](/files/-MhXOULJtMBUK9lrCybt)


---

# 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.graviti.com/guide/tensorbay/action/create-workflow.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.
