
What is the Merge node for?
The Merge node (or Merge with Template) acts as a templating engine within Draft & Goal. It lets you combine fixed text with dynamic variables (from previous steps) to produce a single, structured output. Main use cases:- Prepare and structure a complex prompt for an LLM.
- Build a properly formatted JSON object to send data to external tools (e.g. Google Sheets).
- Define reusable global “sub-prompts” (e.g. a persona, editorial guidelines) used in multiple places in your workflow.
- Concatenate several text inputs into one coherent block.
Quick setup
Here’s how to add and configure the Merge node in your workspace. You’ll find it in the node library under Tools.Add the node
Drag and drop the Merge (or Merge with Template) node from the library onto your workspace.
Edit the template
Click the pencil icon (Edit template) on the node card. A window opens where you write your content.
Insert variables
Write your text and insert dynamic variables using double curly braces, e.g.
{{myVariable}}.
Configuration fields
The Merge node is designed to be both simple and highly flexible.
Main fields
The name of your node. You should rename this field (e.g. “Merge - SEO Prompt” instead of “Merge”) so you can easily tell what it does when running the workflow.
A short description of what this merge is for. Especially useful when collaborating or when you need to remember the intended structure.
Template parameters
Accessed via the Edit template button, this is the plain-text area where you write your structure (text, Markdown, HTML, or JSON) and place your
{{variables}}.These fields appear dynamically on the node card based on the
{{}} placeholders you defined in your template. You must connect incoming data to them.What does the node output?
The Merge node returns exactly the text and format you defined, with variables replaced by their actual values. The format is unchanged: a template written in HTML outputs HTML, a JSON template stays valid JSON (as long as the injected variables don’t break the syntax).The final text from combining your fixed template with the evaluated dynamic data.
Draft & Goal behavior: You don’t need to remember the Merge node’s ID to use its output. Just connect the Merge’s output to the next node’s input and map that connection to the variable you want in that node.

Example usage
The Merge node fits many scenarios. One of the most common is preparing a full prompt for an AI.- Template configuration
- Output
In the Edit template window, write the following structure with your target variables:
Template
Best practices and pitfalls
To keep workflows readable and reliable, follow these guidelines:- Do
- Don't
Best practices
- Use it often: Whenever you need to combine multiple pieces of data, the Merge node is the most reliable and flexible option.
- Store global information: Use a Merge node at the start of your workflow to hold a “pre-prompt” or global instructions, and connect it to all AI agents that need it.
- Use the built-in templates: For complex JSON (e.g. for Google Sheets), start from the examples in the Select an example menu.
Common issues and solutions
JSON format error in the next node
JSON format error in the next node
Issue: You’re using Merge to format JSON (e.g. to send to Google Sheets), but the destination node reports a parsing error.Solution: Check the syntax in the template editor.
- Make sure your
{{variables}}are in the right place. - JSON quotes and braces must be correct.
- If the content injected via a variable contains unescaped quotes or invisible line breaks, it can break the JSON structure.
Variables are not replaced
Variables are not replaced
Issue: The final text shows
{{myVariable}} literally instead of the expected data.Solution: Check that you’ve connected an input to the field on the Merge card. If the input is empty or not connected, the system can’t inject the data.Confusion when reading execution logs
Confusion when reading execution logs
Issue: You have several “Merge” nodes in the logs and can’t tell which one holds which information.Solution: Open the settings for each Merge node and set Name to something descriptive, e.g. “Merge - Google Sheet row format”.
How it fits in a workflow
The Merge node is a “pivot” node that often sits between data extraction/generation and the final action. Typical pattern (workflow with proofreading): Here, the same pre-prompt is shared with both the writer and the proofreader so that the initial constraints are followed from start to finish.Related nodes
The Merge node is rarely used alone. It sets things up for AI or data-integration nodes.LLM
Generate high-quality text using the content structured by your Merge node as the input prompt.
Google Sheets
Send properly formatted JSON from your Merge straight to your spreadsheet cells.
Text Input
Manually enter base variables that will feed your dynamic template.
AI Agent
Give your autonomous agents solid context and clear instructions with a preparatory merge.

