> ## Documentation Index
> Fetch the complete documentation index at: https://learn.getodin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Final Output

> Define the final response returned by the workflow.

The **Final Output** node defines what the workflow returns when it finishes executing. It is typically the last node in a workflow. You can return the output of the last step automatically, or manually map variables from previous steps into a custom JSON response.

## Configuration

### Output Mode

Click **Configure** to select how the final output is assembled:

| Mode          | Description                                                                                                    |
| ------------- | -------------------------------------------------------------------------------------------------------------- |
| **Last Step** | Automatically uses the complete output from the last step in the workflow. No additional configuration needed. |
| **Manual**    | Lets you define a custom output structure by mapping key-value pairs from previous steps.                      |

### Manual Mode

When **Manual** is selected, add output mappings to define the response structure:

| Field     | Description                                                                                    |
| --------- | ---------------------------------------------------------------------------------------------- |
| **Key**   | A custom name for the output field (e.g. `custom_key`).                                        |
| **Value** | The variable or value to assign to that key. Type `@` to select variables from previous steps. |

Click **+ Add Another Mapping** to add additional key-value pairs.

### Deliver to Chat

| Setting             | Description                                                                   |
| ------------------- | ----------------------------------------------------------------------------- |
| **Deliver to Chat** | When enabled, sends the final output to a chat. Defaults to the trigger chat. |

### Show Preview

Click **Show Preview** to preview the final output structure before running the workflow.

## Results

The **Results** tab shows the final output returned by the workflow after execution.

<AccordionGroup>
  <Accordion title="Notes">
    * In **Last Step** mode, the tool returns the complete output from the last node — no mapping required.
    * In **Manual** mode, use custom key names to shape the final tool response JSON.
    * Variables are resolved to their actual values when the workflow runs.
    * Click on value fields and type `@` to see available variables from previous steps.
  </Accordion>
</AccordionGroup>
