Compass Docs
WorkflowsComponents

Prompt

The Prompt component — render a text template with values from earlier steps.

The Prompt component renders a text template, substituting in values from earlier steps. It's a deterministic step — no model is involved — so it's a lightweight way to shape text, such as building a message for an agent or an input for an API call.

The template

The Prompt has one field, template — the text to render. Embed references to upstream values with the {{node.field}} syntax, and they're filled in when the workflow runs:

Summarize the following ticket for {{input.customer_name}}:

{{fetch_ticket.body}}

References use the same binding syntax as the rest of the canvas, so you can pull from the Input or any step that runs before this one.

How it connects

The Prompt outputs the rendered text. A common pattern is to wire it into an Agent node as the system prompt or input — composing the agent's instructions from live data rather than hard-coding them.

Next

On this page