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-Magic-Assistant > ✨ 多功能AI提示词替换 Magic Multi-Function AI Prompt Replace

ComfyUI Node: ✨ 多功能AI提示词替换 Magic Multi-Function AI Prompt Replace

Class Name

MagicPromptReplace

Category
✨ Magic Assistant
Author
shigjfg (Account age: 3708days)
Extension
ComfyUI-Magic-Assistant
Latest Updated
2026-06-02
Github Stars
0.02K

How to Install ComfyUI-Magic-Assistant

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

✨ 多功能AI提示词替换 Magic Multi-Function AI Prompt Replace Description

Enhance AI prompts with new tags for creative optimization.

✨ 多功能AI提示词替换 Magic Multi-Function AI Prompt Replace:

MagicPromptReplace is a versatile node designed to enhance and modify AI-generated prompts by seamlessly integrating new tags into existing prompts. This node leverages advanced language model configurations and rule-based systems to ensure that the new tags are incorporated naturally and contextually into the original prompt. It aims to refine and optimize prompts for better alignment with specific creative or functional goals. By utilizing predefined rules and language model profiles, MagicPromptReplace can intelligently adjust prompts, removing or replacing tags that may conflict with the desired outcome. This functionality is particularly beneficial for AI artists looking to fine-tune their prompts to achieve more precise and relevant results in their creative projects.

✨ 多功能AI提示词替换 Magic Multi-Function AI Prompt Replace Input Parameters:

original_prompt

The original_prompt parameter represents the initial text or prompt that you wish to modify. It serves as the base content to which new tags will be added or from which existing tags will be replaced or removed. This parameter is crucial as it defines the starting point for the transformation process.

replace_tag

The replace_tag parameter specifies the new tag or keyword that you want to integrate into the original prompt. This tag is guided by the rules and configurations set within the node to ensure it fits naturally within the context of the original prompt.

rule_name

The rule_name parameter determines which set of predefined rules will be applied during the prompt modification process. These rules dictate how the new tags should be incorporated and which existing tags might need to be altered or removed to maintain coherence and relevance.

llm_profile

The llm_profile parameter selects the language model configuration to be used for processing the prompt. This profile includes settings such as the model type, API key, and base URL, which are essential for connecting to and utilizing the language model effectively.

original_prompt_in

The original_prompt_in parameter is an optional input that allows for an external prompt to be used instead of the widget prompt. If provided, this input takes precedence over the widget prompt, offering flexibility in how the original prompt is sourced.

prompt_config_json

The prompt_config_json parameter is an optional configuration that can be used to pass additional settings or parameters in JSON format. This allows for further customization and fine-tuning of the prompt modification process.

✨ 多功能AI提示词替换 Magic Multi-Function AI Prompt Replace Output Parameters:

modified_prompt

The modified_prompt output parameter provides the final, transformed prompt after the integration of new tags and the application of rules. This output is a refined version of the original prompt, optimized for the specific creative or functional goals set by the user.

✨ 多功能AI提示词替换 Magic Multi-Function AI Prompt Replace Usage Tips:

  • Ensure that the original_prompt is clear and concise to facilitate effective modifications and avoid ambiguity in the final output.
  • Select appropriate rule_name and llm_profile settings to align the prompt transformation with your specific creative objectives and ensure compatibility with the language model.
  • Utilize the prompt_config_json for advanced configurations to further customize the prompt modification process according to your needs.

✨ 多功能AI提示词替换 Magic Multi-Function AI Prompt Replace Common Errors and Solutions:

Error: No LLM profiles.

  • Explanation: This error occurs when there are no language model profiles available or configured for use.
  • Solution: Ensure that you have at least one language model profile configured in the system. Check the configuration files or settings to verify the presence of valid profiles.

Error: No rules found.

  • Explanation: This error indicates that no rules are available or configured for the prompt modification process.
  • Solution: Verify that you have defined rules in the configuration settings. If not, create or import a set of rules to guide the prompt transformation.

Error: Key/URL missing in '<llm_profile>'.

  • Explanation: This error suggests that the API key or base URL is missing for the specified language model profile.
  • Solution: Check the configuration of the specified llm_profile to ensure that both the API key and base URL are correctly set. Update the profile settings if necessary.

✨ 多功能AI提示词替换 Magic Multi-Function AI Prompt Replace Related Nodes

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

✨ 多功能AI提示词替换 Magic Multi-Function AI Prompt Replace