ComfyUI Extension: ComfyUI-PromptUtils

Authored by RunningOverGlowies

Created

Updated

2 stars

A set of ComfyUI nodes designed to enhance your workflow with realistic filename generation and keyword generation.

README

ComfyUI Prompt & Filename Tools

A collection of nodes designed to enhance your workflow with realistic filename generation and randomized wildcards

Prompt Wildcards ✨

A text generation node that parses specific tags and replaces them with random values from curated lists. It is useful for building dynamic, varied prompts.

<img width="333" height="394" alt="p" src="https://github.com/user-attachments/assets/cd2d3700-fc32-44a0-ab40-e5b23b44914a" />

Usage

Simply include tags in your prompt text.

  • Text Replacement: <tag> is replaced by a random line from the corresponding CSV.
  • Date Logic:
    • Ranges: <1980-1990> picks a random year between the two.
    • Patterns: <19xx>, <2xxx>, <xxxx> generates random years matching the pattern.

Supported Tags

| Category | Tags | | :--- | :--- | | Character | <nlt> (Nationality), <species>, <out> (Outfit), <outn> (NSFW Outfit), <makeup>, <exp> (Expression), <pose> | | World | <loc> (Location), <locw> (Weird Location), <time>, <light> (Lighting) | | Style/Art | <style> (Assorted styles), <medi> (Medium), <color> (Colors), <color2> (Alt-colors) | | Pop Culture | <celeb>, <film>, <game>, <media> | | Misc | <wordk> (Photo keyword), <word> (Random word), <wordp> (Power word), <wordn> (NSFW word), <pass> (random password) |


Filename Generator 📁

Generates realistic filenames and folder paths for 30+ different devices and platforms. These strings can be used as prompts to induce specific aesthetic effects (e.g., adding DSC_0123.JPG to a prompt).

<img width="338" height="221" alt="f" src="https://github.com/user-attachments/assets/f8ebe325-2fbd-4497-ae58-b744db599c33" />

Parameters

  1. Prompt: Text to incorporate into the file path (spaces converted to underscores).
  2. Format:
    • 📷 Cameras: Nikon, Canon, Sony, Fujifilm, etc.
    • 📱 Mobile: iPhone (HEIC/JPEG), Android, Pixel, Samsung.
    • 🎥 Video/Social: TikTok, Instagram, Snapchat, GoPro, CCTV, Dashcam.
    • 🔬 Specialty: Thermal, Macro, Underwater, Astro, 3D Scan.
  3. Path:
    • Disabled: Filename only.
    • Simple: Basic folder structure.
    • Complex: Realistic, deep system paths (e.g., Windows/User directories).

Examples

  • Input: Format: 📷 Nikon
    • Output: DSC_0123.JPG
  • Input: Prompt: "Party", Format: 📸 Instagram, Path: Complex
    • Output: D:\Users\Pictures\Party\insta4567.jpg
  • Input: Prompt: "France", Format: 🌡️ Thermal
    • Output: InfraredImage_20240117.jpg