# Passing Variables

Before going into each workflow component/node, it's important to understand how variables are passed between nodes.

Each node will output a JSON object. To reference specific output from a previous node, you can use dot notation.&#x20;

Take the following example where we define an email subject in a code node and want to reference it in the built-in Gmail: Send Email Integration.

<figure><img src="/files/69ooSPTZGeO42JmRuquV" alt=""><figcaption></figcaption></figure>

The code node outputs:

```
"email_subject": {
    "successfull": true,
    "data": {
      "results": "Email from Orchestra",
      "stdout": "",
      "stderr": "",
      "error": "",
      "sandbox_id": "sandbox-5a47"
    },
    "error": null
  }
```

In the Gmail integration node, we can set the Subject variable to be

`{{email_subject.data.results}}`&#x20;

This sets "Email from Orchestra" to be the Subject of the email.

For examples of how to pass variables between nodes, see the workflow examples in the [workflow library](/arcee-orchestra/workflow-library.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.arcee.ai/arcee-orchestra/workflows/passing-variables.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
