# How do I use the output of one step in the next one?

**URL:** <https://community.sparkflows.ai/t/how-do-i-use-the-output-of-one-step-in-the-next-one/370>\
**Category:** Agentic AI\
**Tags:** faq, genai\
**Created:** [November 5, 2026, 9:51am UTC](https://community.sparkflows.ai/t/how-do-i-use-the-output-of-one-step-in-the-next-one/370 "2026-11-05T09:51:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanskar](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@Sanskar](https://community.sparkflows.ai/u/Sanskar)\
**Post date:** [November 5, 2026, 9:51am UTC](https://community.sparkflows.ai/t/how-do-i-use-the-output-of-one-step-in-the-next-one/370/1 "2026-11-05T09:51:27Z")

</div>

Two ways:

- **Click it** : the **What arrives here** panel on every step lists the fields from earlier steps. Click a field and it is written in the right form for that box.
- **Type it** : `${step.field}`, where `step` is the node’s number on the canvas.

| Reference | Means |
| --- | --- |
| `${2.result_id}` | A field from node 2 |
| `${10.analysis}` | Agent Node 10’s answer |
| `${3.items}` | All records from node 3 |
| `${5.key}` | The current record inside Loop Over Items 5 |
| `${inputs.file_name}` | A value given when the run started |
| `${event.path}` | A field of the event that started the run |

Common mistakes:

- `${3.rows}` can be a row **count**. Use `items` for the records.
- A field reference reads one value, usually from the first record. To work on every record, use **Loop Over Items**.
- In a **Condition** or a prompt, write the plain field name (`priority`), not `item["priority"]`.
- If `${7.summary}` is left as text, step 7 didn’t run on that branch or doesn’t return `summary`.

Under each setting a green line reads the reference back, for example “Uses result\_id from node 2”. Check it before you run.

Docs: [Passing Data Between Nodes](https://docs.sparkflows.ai/en/latest/agentic-ai-guide/agent-orchestration/passing-data.html)
