ComfyUI > Nodes > Bmad Nodes > RequestInputs

ComfyUI Node: RequestInputs

Class Name

RequestInputs

Category
Bmad/api
Author
bmad4ever (Account age: 3591days)
Extension
Bmad Nodes
Latest Updated
2024-08-02
Github Stars
0.05K

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

RequestInputs Description

Facilitates integration of external data for AI art workflows by parsing JSON string inputs into individual outputs.

RequestInputs:

The RequestInputs node is designed to facilitate the integration of external data into your AI art workflows. This node allows you to input a JSON string containing multiple values, which are then parsed and made available as individual string outputs. This functionality is particularly useful for dynamically feeding data into your AI models, enabling more flexible and responsive art generation processes. By leveraging this node, you can easily manage and utilize a wide range of input data, enhancing the versatility and adaptability of your creative projects.

RequestInputs Input Parameters:

values

The values parameter expects a JSON string that contains key-value pairs. Each value in the JSON string will be parsed and output as a separate string. This parameter allows you to input complex data structures in a simple and organized manner. The default value is an empty string (""), but you can provide any valid JSON string to suit your needs.

RequestInputs Output Parameters:

STRING_1 to STRING_32

The RequestInputs node provides up to 32 string outputs, each corresponding to a value from the input JSON string. These outputs are named STRING_1, STRING_2, ..., STRING_32. Each output will contain the value of the respective key from the input JSON string, allowing you to use these values in subsequent nodes in your workflow. This structure ensures that you can handle a large number of inputs efficiently and systematically.

RequestInputs Usage Tips:

  • Ensure that your input JSON string is correctly formatted to avoid parsing errors.
  • Use descriptive keys in your JSON string to make it easier to identify and use the corresponding outputs.
  • If you do not need all 32 outputs, you can simply ignore the unused ones in your workflow.

RequestInputs Common Errors and Solutions:

Invalid JSON format

  • Explanation: The input JSON string is not correctly formatted, causing a parsing error.
  • Solution: Double-check your JSON string for syntax errors, such as missing commas, brackets, or quotation marks. Use a JSON validator tool to ensure the format is correct.

Missing expected keys

  • Explanation: The input JSON string does not contain the expected keys, resulting in missing outputs.
  • Solution: Verify that your JSON string includes all the necessary keys. If certain keys are optional, ensure your workflow can handle their absence gracefully.

Exceeding output limit

  • Explanation: The input JSON string contains more than 32 values, but the node only provides 32 outputs.
  • Solution: Limit your input JSON string to 32 values or less. If you need to handle more values, consider splitting the data across multiple RequestInputs nodes.

RequestInputs 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.