Visit ComfyUI Online for ready-to-use ComfyUI environment
Define and add custom tokens to text data for dynamic text generation and manipulation, enhancing text processing workflows.
The Text Add Tokens node is designed to allow you to define and add custom tokens to your text data, which can be particularly useful for dynamic text generation and manipulation. This node enables you to specify tokens and their corresponding values, which can then be used to replace placeholders in your text with the defined values. This functionality is beneficial for creating more flexible and reusable text templates, enhancing the efficiency of your text processing workflows. Additionally, the node provides an option to print the current set of custom tokens, allowing you to verify and debug the tokens you have added.
This parameter allows you to input a string containing the tokens and their corresponding values. Each token-value pair should be separated by a colon (:
) and each pair should be on a new line. For example, [hello]: world
. This input supports multiline text, making it easy to add multiple tokens at once. The default value is [hello]: world
.
This parameter is a boolean option that determines whether the current set of custom tokens should be printed to the console. It accepts two values: false
and true
. When set to true
, the node will output the current custom tokens, which can be useful for debugging and verification purposes. The default value is false
.
This node does not produce any direct output parameters. Instead, it modifies the internal state by adding the specified tokens, which can then be used by other nodes or processes within your workflow.
tokens
parameter to define multiple tokens at once by separating each token-value pair with a newline. This can save time and make your token definitions more organized.print_current_tokens
to true
if you need to verify the tokens you have added. This can help you ensure that the tokens are correctly defined and available for use in subsequent text processing steps.token_name
is required for a token; token name provided is empty.:
) separator.© Copyright 2024 RunComfy. All Rights Reserved.