I’d been looking at finding a node that will do what I want. What I want is a node that can start at the first prompt in a file or text string node and cycle through them from start to finish so I can batch up my setup and run in ComfyUI.

Until now there hadn’t been a custom node that can let me achieve this. And I didn’t create it!!

What I did was to build a workflow that is dynamic and easily bolt on to any other workflow to allow me to use this Prompt Cycler (a workflow that cycles from a list of prompts from start to finish) as an add-on to my workflows. You can use this with SD 1.5, SD3, SDXL, Flux and even with Video models (for text to video).

Prompt Cycler

The workflow uses an external file or a multi-line string node to load and cycle through a series of prompts. This allows you to automate the process of entering prompts, making it easier to generate multiple outputs and streamline your workflow.

How it Works

To set up the workflow, you’ll need to follow these steps:

  1. Copy and Paste: Load this workflow in a new ComfyUI tab and the copy and paste the contents into your own workflow
  2. Load Your Prompts: You can load your prompts from an external file or enter them directly into a multi-line string field.
  3. Set Up Your Counter: The counter is used to keep track of which prompt is currently being processed. You can set the counter to start from a specific number or reset it to start from the beginning.
  4. Use the Queue Button: The Queue button is used to cycle through the prompts. When you press the Queue button, the counters will update and the workflow will move on to the next prompt in the list.
  5. Automate the Process: After you have run this once you can simply check the Remaining prompts counter to know what is remaining. Set the Queue tasks counter to equal value and using the Queue button, you have just automated the process of cycling through the prompts and generating outputs.

A more detailed explanation and run through of the workflow is available in my YouTube video

Benefits of Automated Prompt Batching

The benefits of using this workflow process are numerous. Some of the advantages include:

  • Increased Productivity: By automating the process of entering prompts, you can save time and focus on more important tasks.
  • Improved Efficiency: The workflow process allows you to generate multiple outputs quickly and easily, making it ideal for large batched tasks or complex workflows.
  • Flexibility: The workflow can be used for a variety of applications, including image creation, text-to-video generation, and more.

Download the Workflow

If you’re interested in trying out this workflow process for yourself, you can download the workflow file from the link below. Simply follow the instructions to set up the workflow and start automating your prompt execution today!

Prompt Cycler Workflow (159 downloads )

Conclusion

Automating your workflow is essential for increasing productivity and efficiency. By using a workflow process that can batch and run multiple prompts, you can save time and batch process large jobs tasks. Whether you’re working on image creation, text-to-video generation, or other applications, this workflow process can be wonderful add-on to your process.

I hope you found this blog post helpful! If you have any questions or comments, please don’t hesitate to reach out.

If you'd like to support our site please consider buying us a Ko-fi, grab a product or subscribe. Need a faster GPU, get access to fastest GPUs for less than $1 per hour with RunPod.io