# Flatten

The **Flatten** node allows you to convert a nested dataset into a flat table-like structure.

{% hint style="info" %}
The Flatten node does not effect arrays.
{% endhint %}

## Options

### Separator

This option lets you specify the character used as the separator between nested keys.

### Depth

This option allows you to specify the depth of nesting to flatten. A depth of 1 will only flatten the top level of the data, a depth of 2 will flatten the top two levels, and so on.

## Output

Return the flattened dataset.


---

# 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.alphi.dev/nodes/flatten.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.
