Visit ComfyUI Online for ready-to-use ComfyUI environment
Dynamically add custom tokens to text processing workflow for AI artists, streamlining text manipulation tasks.
The "Text Add Token by Input" node is designed to allow you to dynamically add custom tokens to your text processing workflow. This node is particularly useful for AI artists who need to insert specific placeholders or variables into their text data, which can later be replaced or parsed by other nodes in the pipeline. By using this node, you can streamline the process of managing and utilizing custom tokens, making your text manipulation tasks more efficient and organized. The node also provides an option to print the current list of custom tokens, giving you immediate feedback on the tokens you have added.
This parameter specifies the name of the custom token you want to add. It is a required field and must be a string. The token name acts as a placeholder in your text that can be replaced with the corresponding token value. If the token name is left empty, an error will be triggered. There are no specific minimum or maximum values, but it should be a meaningful string that you can easily reference later.
This parameter defines the value that will be associated with the custom token name. It is also a required field and must be a string. The token value is what will replace the token name in your text. Similar to the token name, there are no specific minimum or maximum values, but it should be a string that accurately represents the data you want to insert.
This parameter is a boolean option that allows you to choose whether to print the current list of custom tokens. It accepts two values: "true" or "false". If set to "true", the node will output the current custom tokens to the console, providing you with immediate feedback. The default value is "false".
This node does not produce any direct output parameters. Instead, it modifies the internal state by adding the specified custom token, which can then be used by other nodes in your workflow.
token_name
and token_value
parameters are not left empty to avoid errors.print_current_tokens
to "true" if you want to verify the tokens you have added immediately.token_name
is required for a token; token name provided is empty.token_name
parameter is left empty.token_name
parameter.© Copyright 2024 RunComfy. All Rights Reserved.