Feature: add prompt template node#8680
Merged
lstein merged 7 commits intoinvoke-ai:mainfrom Dec 24, 2025
Merged
Conversation
Add a new node that applies Style Preset templates to prompts in workflows.
The node takes a style preset ID and positive/negative prompts as inputs,
then replaces {prompt} placeholders in the template with the provided prompts.
This makes Style Preset templates accessible in Workflow mode, enabling
users to apply consistent styling across their workflow-based generations.
Adds a new StylePresetField type that enables dropdown selection of style presets from the database in the workflow editor. Changes: - Add StylePresetField to backend (fields.py) - Update Prompt Template node to use StylePresetField instead of string ID - Add frontend field type definitions (zod schemas, type guards) - Create StylePresetFieldInputComponent with Combobox - Register field in InputFieldRenderer and nodesSlice - Add translations for preset selection
lstein
approved these changes
Dec 22, 2025
Collaborator
lstein
left a comment
There was a problem hiding this comment.
Works as advertised. No hiccups encountered.
Collaborator
|
@Pfannkuchensack , Schema.ts has merge conflicts and needs to be regenerated. I tried to commit the fix to this branch but git didn't like it. Can you do this on your end? I've enabled auto-merge. |
auto-merge was automatically disabled
December 24, 2025 17:06
Head branch was pushed to by a user without write access
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
StylePresetFieldfield type that enables database-driven dropdown selection of style presets in the workflow editor.Changes:
StylePresetFieldclass infields.pyStylePresetFieldStylePresetFieldInputComponentwith Combobox that fetches presets viauseListStylePresetsQuery()InputFieldRendererand added Redux action innodesSliceRelated Issues / Discussions
#8664
QA Instructions
{prompt}placeholder)Merge Plan
Standard merge, no special handling required.
Checklist
What's Newcopy (if doing a release after this PR)