ComfyUI > Nodes > MediaMixer > Prompt Journal

ComfyUI Node: Prompt Journal

Class Name

PromptJournal

Category
Text
Author
Doctor Diffusion (Account age: 1006days)
Extension
MediaMixer
Latest Updated
2024-12-05
Github Stars
0.04K

How to Install MediaMixer

Install this extension via the ComfyUI Manager by searching for MediaMixer
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter MediaMixer in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Prompt Journal Description

Manages and selects text prompts for AI art projects by parsing and filtering prompt lists.

Prompt Journal:

The PromptJournal node is designed to manage and process a collection of text prompts, allowing you to select and utilize specific prompts from a list. This node is particularly useful for AI artists who work with multiple text prompts and need a systematic way to organize and retrieve them. By maintaining a list of prompts and enabling selection through a prompt number, the PromptJournal facilitates efficient prompt management, ensuring that you can easily access and use the desired prompt for your creative projects. Its primary function is to parse a multiline string of prompts, filter out empty entries, and return a specific prompt based on the provided prompt number, along with the entire list of prompts. This capability is essential for workflows that require dynamic text input, offering a streamlined approach to handling and selecting prompts.

Prompt Journal Input Parameters:

prompts

The prompts parameter is a multiline string input that allows you to enter multiple text prompts, each on a new line. This parameter is crucial as it forms the basis of the prompt selection process. By providing a list of prompts, you enable the node to parse and manage these entries, filtering out any empty lines to ensure only valid prompts are considered. The default value is an empty string, and there are no specific minimum or maximum values, as it depends on the number of prompts you wish to include.

prompt_number

The prompt_number parameter is an integer input that determines which prompt from the list will be selected and returned. This parameter is essential for navigating through the list of prompts, allowing you to specify the exact prompt you want to use. The prompt_number starts at 1, with a minimum value of 1 and a maximum value of 4096, providing flexibility in selecting prompts from a potentially large list. The default value is 1, and the parameter increments in steps of 1.

Prompt Journal Output Parameters:

STRING

The first output, labeled as STRING, represents the specific prompt selected from the list based on the prompt_number provided. This output is crucial as it delivers the exact text prompt you intend to use in your creative process, ensuring that the correct prompt is retrieved and ready for application.

STRING

The second output, also labeled as STRING, contains the entire list of prompts as a single string, including any empty lines. This output is important for maintaining a complete record of all prompts entered, allowing you to review and manage the list as needed. It provides a comprehensive view of the prompt collection, which can be useful for documentation or further processing.

Prompt Journal Usage Tips:

  • To effectively manage your prompts, ensure that each prompt is entered on a new line in the prompts parameter. This will help the node accurately parse and organize the entries.
  • Use the prompt_number parameter to quickly access specific prompts from your list. If you have a large number of prompts, consider organizing them in a logical order to make selection easier.
  • If you frequently use a particular set of prompts, save them in a text file and copy them into the prompts parameter as needed. This can save time and ensure consistency in your workflow.

Prompt Journal Common Errors and Solutions:

IndexError: list index out of range

  • Explanation: This error occurs when the prompt_number exceeds the number of non-empty prompts available in the list.
  • Solution: Ensure that the prompt_number is within the range of available prompts. You can adjust the prompt_number to a valid value or add more prompts to the list.

ValueError: invalid literal for int() with base 10

  • Explanation: This error might occur if the prompt_number is not a valid integer.
  • Solution: Check that the prompt_number is correctly set as an integer within the specified range (1 to 4096). Ensure no non-numeric characters are present in the input.

Prompt Journal Related Nodes

Go back to the extension to check out more related nodes.
MediaMixer
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.