> 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

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="/files/0j4dOWCNq9RqYkHe5Izh" 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="/files/RfRs9HiHFJFZJ1jpwOgW" 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="/files/BZTuRvxqaSDEuEasQZ5j" 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="/files/2iCpa6tqkfBy5k4Ks7jG" 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="/files/rS4T5fWq0jCC2cXlFHds" 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).
