The Prompt Template node allows you to convert a prompt into a prompt template, which allows you to insert text or LLM Node outputs (or other text-based nodes) into a prompt. You may create a template area by typing the “@” symbol and then a label for the area, which you can then link another node’s outputs into. This allows you to reduce the data a workflow requires from a full prompt to just the small portion of the prompt you want to modify; For example, you may have a complex prompt to generate beautiful birds, but only want the user to specify the bird and location, keeping the rest of the prompt unchanged every time. The Prompt Template is how we recommend you do this.
Example:
“Show an @animal eating a @food” - in this case, the @animal reference would be replaced with whatever text was attached to the “animal” input. Text sent to the “food” input would replace the @food reference.
Multiple nodes can be sent into the same input and be added to the final result. For example, you may have a “Mammals” text node with a list of mammals and a “Reptiles” text node with a list of reptiles and feed both into the @animal node, and get both the mammals and reptiles feeding into that node. Additionally, multiple templates may be made and use the same inputs so you can mix and match the same inputs into multiple templates.
