ComfyUI Extension: Dynamic Prompt List Node for ComfyUI

Authored by razvanmatei-sf

Created

Updated

0 stars

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

A custom node for ComfyUI that allows you to create lists of prompts with dynamic input count. Add or remove prompt inputs on the fly without creating multiple nodes.

Looking for a different extension?

Custom Nodes (1)

README

Dynamic Prompt List Node for ComfyUI

A custom node for ComfyUI that allows you to create lists of prompts with dynamic input count. Add or remove prompt inputs on the fly without creating multiple nodes.

Node Icon

Features

✨ Dynamic Inputs - Adjust the number of prompt inputs from 2 to 50 πŸ”„ Easy Updates - Click "Update inputs" button to add/remove fields πŸ“ Clean Interface - Multiline text support for each prompt 🎯 List Output - Returns a proper list structure for use with other nodes

Installation

Method 1: Clone to ComfyUI custom_nodes

cd ComfyUI/custom_nodes
git clone <your-repo-url> serhii-prompt-list

Method 2: Manual Installation

  1. Download this repository
  2. Extract to ComfyUI/custom_nodes/serhii-prompt-list
  3. Restart ComfyUI

Usage

Basic Workflow

  1. Add Node: Search for "Dynamic Prompt List" in ComfyUI node menu
  2. Set Input Count: Adjust the inputcount parameter (default: 5)
  3. Update Inputs: Click the "Update inputs" button
  4. Fill Prompts: Enter your prompts in the multiline text fields
  5. Connect: Connect the output to any node that accepts lists

Node Parameters

  • inputcount (INT): Number of prompt inputs (2-50, default: 5)
  • prompt_1 to prompt_N (STRING): Multiline text inputs for prompts

Example

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Dynamic Prompt List         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ inputcount: 6               β”‚
β”‚ [Update inputs]             β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ prompt_1: "A sunny beach"   β”‚
β”‚ prompt_2: "Mountain sunset" β”‚
β”‚ prompt_3: "City at night"   β”‚
β”‚ prompt_4: "Forest path"     β”‚
β”‚ prompt_5: "Desert landscape"β”‚
β”‚ prompt_6: "Ocean waves"     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         ↓
    prompt_list (LIST)

File Structure

serhii-prompt-list/
β”œβ”€β”€ __init__.py              # Node registration
β”œβ”€β”€ prompt_list_node.py      # Main node logic
β”œβ”€β”€ README.md                # This file
└── web/
    └── js/
        └── dynamic_inputs.js # Dynamic input UI logic

How It Works

Python Backend (prompt_list_node.py)

  • Defines the node class with dynamic **kwargs support
  • Processes inputs dynamically based on inputcount
  • Returns a list of non-empty prompts

JavaScript Frontend (dynamic_inputs.js)

  • Adds "Update inputs" button to the node
  • Dynamically creates/removes input slots in the UI
  • Handles input counting and name management

Troubleshooting

Node doesn't appear in menu

  • Restart ComfyUI completely
  • Check console for error messages
  • Verify files are in the correct directory structure

"Update inputs" button doesn't work

  • Make sure JavaScript file is in web/js/ folder
  • Clear browser cache and refresh ComfyUI
  • Check browser console for JavaScript errors

Inputs not connecting

  • Ensure you clicked "Update inputs" after changing count
  • Verify the input type matches (STRING)

Technical Details

Category: Serhii/Prompts Return Type: STRING (list) Input Range: 2-50 prompts Compatible With: Any node accepting list inputs

Credits

Based on the dynamic input pattern from:

  • KJNodes by @kijai - JoinStringMulti implementation
  • Comfyroll Custom Nodes - CR Simple Prompt List concept

License

MIT License - Feel free to use, modify, and distribute

Support

For issues, questions, or feature requests:

  • Open an issue on GitHub
  • Check ComfyUI community forums

Made with ❀️ for the ComfyUI community

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

Learn more