ComfyUI  >  Nodes  >  Bmad Nodes >  Get Prompt

ComfyUI Node: Get Prompt

Class Name

Get Prompt

Category
Bmad/dump
Author
bmad4ever (Account age: 3591 days)
Extension
Bmad Nodes
Latest Updated
8/2/2024
Github Stars
0.1K

How to Install Bmad Nodes

Install this extension via the ComfyUI Manager by searching for  Bmad Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Bmad Nodes 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Get Prompt Description

Facilitates extracting and handling prompt data in ComfyUI, allowing printing or saving to file, ensuring prompt integrity and efficient data management.

Get Prompt:

The Get Prompt node is designed to facilitate the extraction and handling of prompt data within the ComfyUI framework. This node allows you to either print the prompt data to the console or save it to a file, providing flexibility in how you manage and utilize prompt information. By making a deep copy of the prompt, it ensures that the original prompt remains unaltered, which is crucial for maintaining the integrity of prompt execution. The node also cleans up the prompt data by removing unnecessary widget inputs, retaining only the essential "values" input. This streamlined approach helps in managing prompt data more efficiently and avoids potential conflicts or errors during prompt execution.

Get Prompt Input Parameters:

api_prompt

This parameter determines the action to be taken with the prompt data. It accepts two options: "print to console" and "save to file". When set to "print to console", the prompt data will be printed to the console, which is useful for debugging or quick checks. When set to "save to file", the prompt data will be saved to a JSON file in the specified output directory. The default value is "print to console".

prompt

This hidden parameter represents the prompt data that is being processed. It is a complex data structure containing various nodes and their inputs, which define the behavior and output of the prompt. This parameter is not directly set by the user but is managed internally by the node.

unique_id

This hidden parameter is a unique identifier for the node within the prompt. It is used to locate and remove the node from the prompt data during processing. This parameter is also managed internally and is not directly set by the user.

Get Prompt Output Parameters:

None

This node does not produce any direct output parameters. Its primary function is to handle and manage prompt data, either by printing it to the console or saving it to a file.

Get Prompt Usage Tips:

  • Use the "print to console" option for quick debugging and verification of prompt data during development.
  • Use the "save to file" option to create a persistent record of the prompt data, which can be useful for logging, auditing, or further analysis.
  • Ensure that there is only one instance of this node in a prompt to avoid conflicts and ensure proper handling of prompt data.

Get 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 data is missing the "class_type" property, which is essential for identifying the type of node.
  • Solution: Check the prompt data to ensure that all nodes have the "class_type" property correctly set. This may involve reviewing the prompt configuration or the nodes being used.

"Cannot execute because node {class_type} does not exist."

  • Explanation: This error indicates that a node with the specified "class_type" does not exist in the system, which prevents the prompt from being executed.
  • Solution: Verify that the "class_type" for all nodes in the prompt data is correct and that the corresponding node classes are available in the system.

"Prompt has no outputs"

  • Explanation: This error occurs when the prompt data does not contain any output nodes, which are necessary for producing results.
  • Solution: Ensure that the prompt data includes at least one output node to generate the desired outputs. This may involve adding or configuring output nodes in the prompt.

Get Prompt Related Nodes

Go back to the extension to check out more related nodes.
Bmad Nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.