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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.graviti.com/guide/tensorbay/action/create-workflow.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
