# Source: https://docs.comfy.org/interface/features/template.md

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Templates - ComfyUI Built-in Workflow Templates

> Templates provide model workflows natively supported by ComfyUI and example workflows from custom nodes. You can find and use workflows for currently supported models here.

Workflow Templates is the browser for ComfyUI's natively supported model workflows and also some example workflows from custom nodes.

In ComfyUI’s Workflow Templates, you can find:

* Natively supported model workflows
* Example workflows from custom nodes

<img src="https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/template-dialog.jpg?fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=d10f19d6800c660cf0c0bd07753efaa6" alt="Template" data-og-width="2000" width="2000" data-og-height="1219" height="1219" data-path="images/interface/features/template/template-dialog.jpg" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/template-dialog.jpg?w=280&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=88d64800a602e930b48c4ee0694a5c2d 280w, https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/template-dialog.jpg?w=560&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=9cc0d1b58ac943a62799785ed885184a 560w, https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/template-dialog.jpg?w=840&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=a1e3158b06c011eeb07f25e2aed9882e 840w, https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/template-dialog.jpg?w=1100&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=3bbd163b05ebb332b457a78658944037 1100w, https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/template-dialog.jpg?w=1650&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=6a8db554e87a9227e0a72ae821cec406 1650w, https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/template-dialog.jpg?w=2500&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=6375f5f1d3118f08bad0d63ef1441f36 2500w" />

## How to open Templates in ComfyUI

Open via the menu `Workflow` --> `Browse Workflow Templates`.
<img src="https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/template.jpg?fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=a6d3448741e4e62e32f84778c33f03b0" alt="Template" data-og-width="781" width="781" data-og-height="744" height="744" data-path="images/interface/features/template/template.jpg" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/template.jpg?w=280&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=595e4f5b4c7074316b28854dbb956c2d 280w, https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/template.jpg?w=560&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=729b659e3660b9e49b0e069e6c7efbc7 560w, https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/template.jpg?w=840&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=eefafed40f4778bfe8ed8b45542a5f45 840w, https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/template.jpg?w=1100&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=8d564ad9ac0d5c608c990f635197b4cd 1100w, https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/template.jpg?w=1650&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=81971a2f3c52c839ae22690fdfb92c7c 1650w, https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/template.jpg?w=2500&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=c7b0c1cd536f6c60abc3504949dabbe3 2500w" />

## How to use templates

1. Load a template: Click any template you want to load its workflow.
2. Download models: When loading a template, ComfyUI automatically checks whether all required model files exist. If anything is missing, it will prompt you to download the models.
3. Run the workflow: Once all requirements—such as models, input images, and prompts—are ready, click the Run button to start using the workflow.

### Model storage location

Each workflow template embeds links to the required models. On first use, if the corresponding model files are not detected, you will see a download prompt.

<img src="https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/missing_models.jpg?fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=8c1d9ac6dd0acf6d220eda2842a41434" alt="Missing Models" data-og-width="1458" width="1458" data-og-height="1102" height="1102" data-path="images/interface/features/template/missing_models.jpg" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/missing_models.jpg?w=280&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=1397f3d56c99a7518797cc8aff843c3f 280w, https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/missing_models.jpg?w=560&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=055255bd3fe829d45b27ea3e23664712 560w, https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/missing_models.jpg?w=840&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=d50a3fff5710b2ceadfddb537894a290 840w, https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/missing_models.jpg?w=1100&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=a28f6f79541751745e4fcdca1135efaa 1100w, https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/missing_models.jpg?w=1650&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=58e53a6d2149648866a188474895d252 1650w, https://mintcdn.com/dripart/EgZuQyCGLVUEw53Z/images/interface/features/template/missing_models.jpg?w=2500&fit=max&auto=format&n=EgZuQyCGLVUEw53Z&q=85&s=e6628a148f02dcb622c1827ac339fb97 2500w" />

1. For desktop version, when you click the `Download` button, the desktop program will automatically download the model files for you.
2. For other versions, the browser will be used to download the corresponding model. You need to download the model and save it to the corresponding folder under `ComfyUI/models`. For example, the model in the screenshot should be saved in the following location:

```
📂 ComfyUI/
├── 📂 models/
│   ├── 📂 diffusion_models/
│   │   └── qwen_image_fp8_e4m3fn.safetensors
│   ├── 📂 vae/
│   │   └── qwen_image_vae.safetensors
│   └── 📂 text_encoders/
│       └── qwen_2.5_vl_7b_fp8_scaled.safetensors
```

In the current version, missing-file detection only checks whether there is a file with the same name in the corresponding top-level directory. For example, the file must exist directly under `ComfyUI/models/diffusion_models`.
If you have already downloaded the model into a subfolder such as `ComfyUI/models/diffusion_models/wan_video`, you can ignore the popup and simply ensure the correct model is selected in the corresponding model loader node.

If you're curious how model links are embedded, we add a `models` field under the node’s `properties`. Below is a complete snippet of a `DualCLIPLoader` node with embedded model information:

```json  theme={null}
    {
      "id": 40,
      "type": "DualCLIPLoader",
      "pos": [
        -320,
        290
      ],
      "size": [
        270,
        130
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            64
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "DualCLIPLoader",
        "cnr_id": "comfy-core",
        "ver": "0.3.40",
        "models": [
          {
            "name": "clip_l.safetensors",
            "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors",
            "directory": "text_encoders"
          },
          {
            "name": "t5xxl_fp16.safetensors",
            "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors",
            "directory": "text_encoders"
          }
        ]
      },
      "widgets_values": [
        "clip_l.safetensors",
        "t5xxl_fp16.safetensors",
        "flux",
        "default"
      ]
    }
```

The `models` field inside `properties` includes `name`, `url`, and `directory`.

* `name`: the model file name
* `url`: a direct download link to the file (not a repository page)
* `directory`: which subfolder under `ComfyUI/models` to store the file, e.g. `vae` means `ComfyUI/models/vae`

Currently, only links from Hugging Face and Civitai are supported. The model format must be a safe format such as `.safetensors` or `.sft`. Formats like `.gguf` are considered unsafe; when embedded they will be flagged as unsafe and the link will not be shown.

You can use [this tool](https://comfyui-wiki.github.io/ComfyUI-Workflow-JSON-Editor/) to edit the model information in workflow templates. At the moment, [@ComfyUI-Wiki](https://github.com/ComfyUI-Wiki) only adds support for native nodes.

## How to update templates?

Templates are managed and updated as a separate dependency: [`comfyui-workflow-templates`](https://pypi.org/project/comfyui-workflow-templates/).

If, after updating ComfyUI, you don’t see the documentation or newly announced templates, you may need to update the corresponding dependency. You can check versions in [`ComfyUI/requirements.txt`](https://github.com/comfyanonymous/ComfyUI/blob/master/requirements.txt).

Typically, the following three dependencies may be upgraded together when ComfyUI is updated:

```
comfyui-frontend-package==1.24.4
comfyui-workflow-templates==0.1.52
comfyui-embedded-docs==0.2.4
```

If you’re not sure how to update correctly, see [Update ComfyUI](/installation/update_comfyui) for how to update ComfyUI and its dependencies.

## How to contribute templates to the ComfyUI repository?

All templates are hosted in the [workflow\_templates](https://github.com/Comfy-Org/workflow_templates/) repository. You can contribute templates by submitting a PR. For official templates, we require the following:

1. Do not use any third-party nodes (to avoid extra installations for users who lack those nodes).
2. The template must not duplicate existing ones and should target supported model capabilities.
3. You may open an issue in the repository to ask questions.

## Custom node templates

If a custom node author provides templates and example workflows, you can also find them in the Templates browser. Usually, you can locate all templates by finding the category named after the node.

If you are a custom node author, note that we currently only support a single directory level under the `templates` folder (no nested subdirectories), and only JSON-format templates are supported.

## How to add templates for custom nodes?

See [Custom Node Templates](/custom-nodes/workflow_templates) for how to add workflow templates for your custom nodes.