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 Encode

ComfyUI Node: Prompt Relay Encode

Class Name

PromptRelayEncode

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 Encode Description

Facilitates encoding global and local prompts for enhanced temporal control in models, useful for dynamic behavior changes.

Prompt Relay Encode:

The PromptRelayEncode node is designed to facilitate the encoding of a global prompt in conjunction with temporal local prompts, enabling enhanced temporal control within a model. This node is particularly beneficial for scenarios where you need to manage and manipulate prompts over time, allowing for dynamic changes in the model's behavior based on the sequence of prompts. By integrating local prompts, which are separated by the | character, with a global prompt, this node provides a sophisticated mechanism for temporal conditioning. This is especially useful in applications such as video generation or any other time-based media where the context or focus needs to shift over time. The node is part of the conditioning/prompt_relay category and is intended to be used alongside a standard CLIPTextEncode for handling negative prompts, ensuring a comprehensive approach to prompt management.

Prompt Relay Encode Input Parameters:

model

The model parameter specifies the machine learning model that will be used for encoding the prompts. This model is responsible for interpreting the global and local prompts and applying them to the temporal control process. The choice of model can significantly impact the results, as different models may have varying capabilities in handling complex prompt structures.

clip

The clip parameter refers to the CLIP (Contrastive Language–Image Pretraining) model used for encoding the text prompts. CLIP is a powerful tool for understanding and processing text in conjunction with images, making it an essential component for tasks that involve visual media. This parameter ensures that the text prompts are accurately interpreted and aligned with the visual content.

latent

The latent parameter represents the latent space in which the prompts are encoded. This space is crucial for capturing the nuanced variations and transitions between different prompts over time. The latent parameter allows for the manipulation of these transitions, enabling smooth and coherent changes in the model's output.

global_prompt

The global_prompt parameter is the overarching prompt that provides a consistent theme or context throughout the temporal sequence. This prompt serves as the foundation upon which local prompts are layered, ensuring that there is a coherent narrative or focus that persists across the entire sequence.

local_prompts

The local_prompts parameter consists of a series of prompts that are applied at specific points in the temporal sequence. These prompts are separated by the | character and allow for dynamic changes in the model's behavior, enabling the creation of complex and varied outputs over time.

segment_lengths

The segment_lengths parameter defines the duration of each segment within the temporal sequence. This parameter is crucial for determining how long each local prompt should influence the model's output, allowing for precise control over the timing and pacing of changes.

epsilon

The epsilon parameter is a small value used to control the sensitivity of the temporal transitions. It affects the smoothness of the changes between different prompts, with smaller values resulting in more gradual transitions. This parameter is important for ensuring that the temporal shifts are seamless and natural.

relay_options

The relay_options parameter is an optional dictionary that allows for advanced customization of the temporal control process. It includes settings such as video_strength, video_window_scale, audio_epsilon, audio_strength, and audio_window_scale, which provide additional control over the video and audio aspects of the model's output. These options are particularly useful for fine-tuning the behavior of the model in specific scenarios.

Prompt Relay Encode Output Parameters:

encoded_prompts

The encoded_prompts parameter is the primary output of the node, representing the encoded version of the global and local prompts. This output is used to guide the model's behavior over time, ensuring that the desired temporal control is achieved. The encoded prompts are crucial for maintaining the coherence and consistency of the model's output across the entire sequence.

Prompt Relay Encode Usage Tips:

  • To achieve smooth transitions between prompts, experiment with different epsilon values to find the optimal balance between sensitivity and smoothness.
  • Utilize the relay_options parameter to fine-tune the model's behavior for specific tasks, such as adjusting the video_strength for more pronounced visual changes or modifying the audio_strength for audio-focused applications.

Prompt Relay Encode Common Errors and Solutions:

InvalidModelError

  • Explanation: This error occurs when the specified model is not compatible with the PromptRelayEncode node.
  • Solution: Ensure that the model parameter is set to a compatible machine learning model that supports prompt encoding.

ClipModelNotFoundError

  • Explanation: This error indicates that the CLIP model specified in the clip parameter is not available or not properly configured.
  • Solution: Verify that the CLIP model is correctly installed and configured, and that the clip parameter is set to the correct model instance.

LatentSpaceError

  • Explanation: This error arises when there is an issue with the latent space configuration, such as an incorrect or incompatible latent parameter.
  • Solution: Check the latent parameter to ensure it is correctly defined and compatible with the model being used.

Prompt Relay Encode 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.