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 > Sage Utils > Construct LLM Prompt

ComfyUI Node: Construct LLM Prompt

Class Name

Sage_ConstructLLMPrompt

Category
Sage Utils/LLM
Author
arcum42 (Account age: 6442days)
Extension
Sage Utils
Latest Updated
2026-05-17
Github Stars
0.03K

How to Install Sage Utils

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

Construct LLM Prompt Description

Facilitates creation of tailored LLM prompts by integrating user text and instructions.

Construct LLM Prompt:

The Sage_ConstructLLMPrompt node is designed to facilitate the creation of prompts for Large Language Models (LLMs) by integrating user-provided text inputs and additional instructions. This node is particularly beneficial for AI artists and creators who wish to generate sophisticated and contextually relevant prompts for LLMs, enhancing the quality and specificity of the generated content. By allowing the combination of a primary prompt with supplementary instructions, this node empowers users to tailor their interactions with LLMs, ensuring that the output aligns closely with their creative vision or project requirements. The node's primary function is to streamline the prompt construction process, making it accessible and efficient for users without requiring deep technical expertise.

Construct LLM Prompt Input Parameters:

prompt

The prompt parameter allows you to select a primary prompt from a predefined list of options. This serves as the foundational text that the LLM will use to generate responses. The choice of prompt significantly influences the direction and tone of the LLM's output, making it crucial to select one that aligns with your intended outcome. There are no explicit minimum or maximum values, as this parameter is based on a list of options rather than numerical input.

extra_instructions

The extra_instructions parameter provides an opportunity to include additional guidance or context for the LLM. This input is a multiline text field, allowing you to elaborate on specific details or nuances that should be considered during the prompt processing. By default, this field is empty, but you can populate it with any relevant instructions to refine the LLM's output further. This parameter is particularly useful for adding layers of complexity or specificity to the generated content.

Construct LLM Prompt Output Parameters:

out_prompt

The out_prompt output parameter represents the final constructed prompt that combines the selected primary prompt and any additional instructions provided. This output is a string that encapsulates the complete set of instructions for the LLM, ready to be used for generating responses. The importance of this output lies in its role as the direct input for LLMs, ensuring that the generated content is aligned with the user's creative and contextual requirements.

Construct LLM Prompt Usage Tips:

  • Experiment with different combinations of primary prompts and extra instructions to see how they affect the LLM's output. This can help you understand the nuances of prompt engineering and improve the quality of your results.
  • Use the extra_instructions field to provide specific context or constraints that the LLM should consider, especially if you have a particular style or theme in mind for the generated content.

Construct LLM Prompt Common Errors and Solutions:

Invalid prompt selection

  • Explanation: This error occurs when a prompt is selected that is not available in the predefined list of options.
  • Solution: Ensure that you select a prompt from the provided list of options. If the desired prompt is not available, consider modifying an existing one or contacting support for assistance.

Empty output prompt

  • Explanation: This issue arises when the out_prompt is empty, possibly due to missing input parameters.
  • Solution: Verify that both the prompt and extra_instructions fields are correctly filled. If the issue persists, double-check the input values and ensure they are correctly formatted.

Construct LLM Prompt Related Nodes

Go back to the extension to check out more related nodes.
Sage Utils
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.