ComfyUI > Nodes > WAS Node Suite > Text Add Token by Input

ComfyUI Node: Text Add Token by Input

Class Name

Text Add Token by Input

Category
WAS Suite/Text/Tokens
Author
WASasquatch (Account age: 4688days)
Extension
WAS Node Suite
Latest Updated
2024-08-25
Github Stars
1.07K

How to Install WAS Node Suite

Install this extension via the ComfyUI Manager by searching for WAS Node Suite
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter WAS Node Suite 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

Text Add Token by Input Description

Dynamically add custom tokens to text processing workflow for AI artists, streamlining text manipulation tasks.

Text Add Token by Input:

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.

Text Add Token by Input Input Parameters:

token_name

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.

token_value

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

Text Add Token by Input Output Parameters:

None

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.

Text Add Token by Input Usage Tips:

  • Ensure that the token_name and token_value parameters are not left empty to avoid errors.
  • Use meaningful and easily recognizable names for your tokens to make your text processing workflow more intuitive.
  • Set print_current_tokens to "true" if you want to verify the tokens you have added immediately.

Text Add Token by Input Common Errors and Solutions:

A token_name is required for a token; token name provided is empty.

  • Explanation: This error occurs when the token_name parameter is left empty.
  • Solution: Ensure that you provide a non-empty string for the token_name parameter.

Invalid token format

  • Explanation: This error might occur if the token name or value contains unsupported characters or formats.
  • Solution: Verify that your token names and values are properly formatted strings without any special characters that might cause issues.

Text Add Token by Input Related Nodes

Go back to the extension to check out more related nodes.
WAS Node Suite
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.