ComfyUI Node: Load Prompt

Class Name

LoadPrompt

Category
🎤MW/MW-OneButtonPrompt
Author
mw (Account age: 2284days)
Extension
MW-ComfyUI_OneButtonPrompt
Latest Updated
2025-05-06
Github Stars
0.02K

How to Install MW-ComfyUI_OneButtonPrompt

Install this extension via the ComfyUI Manager by searching for MW-ComfyUI_OneButtonPrompt
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter MW-ComfyUI_OneButtonPrompt 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

Load Prompt Description

Facilitates loading and combining text prompts from multiple files for diverse AI art projects.

Load Prompt:

The LoadPrompt node is designed to facilitate the loading and combination of text prompts from multiple text files, allowing you to create a diverse and dynamic set of prompts for your AI art projects. This node is particularly useful for artists who want to experiment with different prompt combinations to inspire creativity and generate unique outputs. By leveraging the LoadPrompt node, you can easily manage and randomize prompts from up to five different text files, ensuring a varied input for your AI models. This functionality is essential for those looking to explore different themes or styles without manually altering prompts each time.

Load Prompt Input Parameters:

txt_1

This parameter specifies the name of the first text file from which prompts will be loaded. It is a required parameter and serves as the primary source of prompts. There is no default value, and it must be provided for the node to function.

txt_2

This parameter allows you to specify the name of a second text file for additional prompts. If set to "None", it will be ignored. This parameter is optional and provides flexibility in expanding the prompt pool.

txt_3

Similar to txt_2, this parameter specifies a third text file for loading prompts. It is optional and can be set to "None" if not needed, allowing for further customization of prompt combinations.

txt_4

This parameter allows for the inclusion of a fourth text file. Like the previous parameters, it is optional and can be set to "None" if not used, offering more options for prompt diversity.

txt_5

This parameter specifies a fifth text file for loading prompts. It is optional and can be set to "None" if not required, providing the maximum flexibility in prompt selection.

seed

The seed parameter is used to initialize the random number generator, ensuring reproducibility of prompt combinations. If set to 0, the randomization will be different each time. This parameter is optional, with a default value of 0, allowing for both deterministic and non-deterministic prompt generation.

Load Prompt Output Parameters:

result

The output parameter result is a string that contains a semicolon-separated combination of prompts randomly selected from the specified text files. This output is crucial for feeding into AI models, as it provides a varied and potentially inspiring set of prompts that can lead to unique and creative outputs.

Load Prompt Usage Tips:

  • To ensure a wide variety of prompts, consider using all five text file parameters with different themes or styles. This will maximize the diversity of the generated prompt combinations.
  • Utilize the seed parameter to reproduce specific prompt combinations. This is particularly useful when you find a combination that yields desirable results and you want to recreate it in future projects.

Load Prompt Common Errors and Solutions:

Cannot execute because a node is missing the class_type property.

  • Explanation: This error occurs when a node in the prompt execution process lacks the necessary class_type property, which is essential for identifying the node's function.
  • Solution: Ensure that all nodes in your workflow are correctly defined with the class_type property. Check your node definitions and update any missing properties.

Cannot execute because node {class_type} does not exist.

  • Explanation: This error indicates that a node referenced in the prompt does not exist in the current setup, possibly due to a typo or missing node definition.
  • Solution: Verify that all node references in your prompt are correct and that the necessary nodes are defined and available in your environment. Correct any typos or add missing nodes as needed.

Prompt has no outputs

  • Explanation: This error suggests that the prompt execution did not produce any outputs, likely due to a misconfiguration or missing nodes.
  • Solution: Review your prompt setup to ensure that all necessary nodes are included and correctly configured to produce outputs. Adjust your workflow to include output-generating nodes.

Load Prompt Related Nodes

Go back to the extension to check out more related nodes.
MW-ComfyUI_OneButtonPrompt
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 Playground, enabling artists to harness the latest AI tools to create incredible art.