> For the complete documentation index, see [llms.txt](https://docs.graviti.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.graviti.com/guide/tensorbay/action/create-workflow.md).

# 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)
