Nodes Browser

ComfyDeploy: How Comfyui-Template-Loader works in ComfyUI?

What is Comfyui-Template-Loader?

Easily Load Your Frequently Used Prompts in ComfyUI With ComfyUI Template Loader, managing and reusing your favorite prompts has never been simpler. Save time and streamline your workflow by loading your go-to templates with just a few clicks!

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for Comfyui-Template-Loader and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

Comfyui-Template-Loader

Easily Load Your Frequently Used Prompts in ComfyUI

With ComfyUI Template Loader, managing and reusing your favorite prompts has never been simpler. Save time and streamline your workflow by loading your go-to templates with just a few clicks!

Features

  • Load Prompt Templates from Files
  • Easy to use

Installation

git clone https://github.com/r3dsd/comfyui-template-loader.git

Usage

  1. Create a Template File

    • Place your template file in the following directory: custom_nodes/comfyui-template-loader/template
    • Make sure the file has a .json extension.
  2. Template File Format

    • template file should follow this structure:
    {
        "Key1": "Prompt1, Prompt2, Prompt3",
        "Key2": "Prompt1, Prompt2, Prompt3",
        ...
    }
    
  3. Done!

    • That's it! Now you can use the TemplateLoader Node in your workflow.

Nodes

TemplateLoader

  • Source: The file Name of the Template File
  • Template: The Key of the Template

return: The String of the Template