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

# Create a workflow

Create a workflow from scratch, with AI, or from a template.

You can create a workflow in 3 ways:

* Start from scratch
* Start with AI
* Start from a template

Choose the option that gives you the right amount of guidance.

## Create a workflow from scratch

Use this option when you already know the process you want to build:

1. Click **New**
2. Select **New flow**
3. Click **Continue**

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FGhuOXRpI3I6vzqac651N%2FCreateFromScratch.gif?alt=media&amp;token=6e803f05-d6e2-4ad2-bce8-5897011dfbb6" alt=""><figcaption></figcaption></figure>

## Create a workflow from a template

Use a template when you want to move faster.

Templates give you a ready-made structure that you can customize.

{% stepper %}
{% step %}

### Open the template library

Click **Community**.

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FzN7tzunEf5nC1jUPy5E8%2FCommunity.png?alt=media&amp;token=f5b9eeb6-1bda-4589-ba72-fe567c5ad160" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Browse templates

Select a template by workflow type or business use case.

Browse categories such as **Marketing**, **Administration**, and **HR/Hiring**.
{% endstep %}

{% step %}

### Review the template

Click the template card to open its details.

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FxLZFrSWIurvwbU11HCui%2Frounded-image%20(3).png?alt=media&amp;token=6ba2cb24-9618-40ab-853b-0aa26bfeed40" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Clone it to your workspace

On the template page, you can:

* review the description
* copy the link
* clone it to your workspace

Click **Clone to workspace**.

The workflow is copied into your workspace. You can edit it before using it.

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FrdW1FWeBEtCu1WcjinmB%2Frounded-image%20(2).png?alt=media&amp;token=28d703e1-df00-49e5-a09a-df6b1dd0c818" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## Create a workflow by importing a JSON file

Use this option when you already have a workflow file exported from an earlier workflow.

{% stepper %}
{% step %}

### Click Create

Click **New**.
{% endstep %}

{% step %}

### Select Import from JSON

Select the option to import a workflow from a JSON file.

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FbtKuKqXckWPCZeZfyh7i%2FCreateFromImportJSON.png?alt=media&amp;token=06377021-c238-4d27-a27d-0c78537abe49" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Upload your file

Choose the exported JSON file from your computer.
{% endstep %}

{% step %}

### Review and continue

After the file is uploaded, the workflow opens in the builder.

You can review it, update it, and use it as a new starting point.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Use import when you want to reuse an existing workflow without rebuilding it from scratch.
{% endhint %}

### Tips

* Start with a template if you want results quickly.
* Start from scratch if your process is unique.
* Use import when you want to reuse an existing workflow structure.
* Keep the workflow as **Draft** until you finish testing.

### Next steps

* Learn how workflows work in [Overview](/workflow-builder/overview.md).
* Learn how to [manage a workflow](/workflow-builder/manage-a-workflow.md).
