Skip to main content
A text input showing a referenced parameter inserted as a tag
Sometimes drawing an edge isn’t what you want. You want to drop another node’s output value directly into the middle of a prompt or template string. References do this without adding an edge. For an introduction to inline references and how they sit alongside edges and published parameters, see Connecting Nodes.

Template syntax

References use the syntax {{nodeId.parameterKey}} to embed the value of another node’s output parameter. When the node runs, Runchat replaces each template with the current value of the referenced parameter. You don’t usually type these directly. Use the parameter picker in any text input.

Inserting a reference

In any text input, start typing then press Tab to open the parameters menu. Hover an option to preview which node it points to. Click to insert a tag representing the current output value. To delete a tag, click its X or press backspace. Typing @ does the same thing but also zooms the canvas so you can see which node you’re about to reference, useful when there are many nodes on the canvas.

Run order and propagation

References behave differently from edges in two important ways:
  1. Changing a referenced value does not automatically expire downstream nodes. With an edge, when an upstream node finishes, downstream nodes are marked as ready to re-run. References do not propagate this signal. The downstream node will only pick up the new value the next time it runs.
  2. When you do run the workflow, references still affect order. Runchat builds the run order from both edges and references, so a node that references another will always run after it during a multi-node run.
If you want a node to update automatically when an upstream value changes, draw an edge instead.

Next steps

  • Connecting Nodes: edges, references, and published parameters compared
  • Data Types: what flows through a reference and how it’s cast
  • Routing: conditionally enable parts of a workflow