Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-PromptRelay > Prompt Relay Smart Encode Test

ComfyUI Node: Prompt Relay Smart Encode Test

Class Name

PromptRelaySmartEncodeTest

Category
conditioning/prompt_relay
Author
kijai (Account age: 2878days)
Extension
ComfyUI-PromptRelay
Latest Updated
2026-05-02
Github Stars
0.34K

How to Install ComfyUI-PromptRelay

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

Facilitates testing and validation of prompt syntax parsing in ComfyUI using Smart Syntax.

Prompt Relay Smart Encode Test:

The PromptRelaySmartEncodeTest node is designed to facilitate the testing and validation of prompt syntax parsing within the ComfyUI framework. This node is particularly useful for AI artists who want to experiment with and refine their prompt structures using the Smart Syntax. The primary function of this node is to output the parsed syntax of a given prompt, allowing users to verify and adjust their input for optimal results. By providing a clear and structured way to test prompt syntax, this node helps ensure that the prompts are correctly interpreted and applied in subsequent processing stages. This is especially beneficial for those working with complex prompt structures, as it aids in understanding how different segments of the prompt are parsed and normalized.

Prompt Relay Smart Encode Test Input Parameters:

smart_prompt

The smart_prompt parameter allows you to input a prompt using the Smart Syntax, which can be structured in two main ways: inline and block. Inline syntax involves specifying text segments with associated ranges, such as 'text one [0-50] | text two [50-100]', while block syntax uses headers to define segments, like 'Second 1:\ntext one\nSecond 2:\ntext two'. This parameter is crucial for defining the content and structure of your prompt, and it supports multiline input for complex prompts. The syntax is automatically stripped and normalized, either evenly or proportionally, based on the specified ranges or headers. There is no minimum or maximum value for this parameter, but it defaults to an empty string.

normalize_by_tokens

The normalize_by_tokens parameter is a boolean option that determines whether the length of each segment in the prompt should be scaled by its token count. When set to True, the node will adjust the segment lengths based on the number of tokens, which can be useful for ensuring that each segment is proportionally represented in the final output. This parameter defaults to False, meaning that normalization is not applied by default.

clip

The clip parameter is an optional input that allows you to provide a CLIP model for processing the prompt. This input is not mandatory, but when used, it can enhance the parsing and encoding of the prompt by leveraging the capabilities of the CLIP model. There are no specific default values for this parameter, as it depends on the availability and selection of a CLIP model.

Prompt Relay Smart Encode Test Output Parameters:

parsed_output

The parsed_output parameter provides the result of the syntax parsing process. This output is a string that represents the parsed and normalized version of the input prompt, allowing you to see how the Smart Syntax has been interpreted by the node. This output is essential for verifying the correctness of the prompt structure and making any necessary adjustments before further processing.

Prompt Relay Smart Encode Test Usage Tips:

  • To ensure accurate parsing, carefully structure your smart_prompt using the recommended Smart Syntax formats. This will help the node correctly interpret and normalize your input.
  • Experiment with the normalize_by_tokens parameter to see how it affects the distribution of segment lengths, especially if your prompt contains segments of varying token counts.

Prompt Relay Smart Encode Test Common Errors and Solutions:

Invalid Syntax in smart_prompt

  • Explanation: This error occurs when the input prompt does not conform to the expected Smart Syntax format, leading to parsing issues.
  • Solution: Review the prompt structure and ensure it follows the inline or block syntax guidelines. Correct any formatting errors and try again.

Missing CLIP Model

  • Explanation: If a CLIP model is required but not provided, the node may not function as expected.
  • Solution: Ensure that a compatible CLIP model is available and correctly linked to the node if needed for your specific use case.

Prompt Relay Smart Encode Test Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-PromptRelay
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.

Prompt Relay Smart Encode Test