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

# Export as CSV

> Export Workflow output as a downloadable CSV file.

Export content from a [Workflow](/workflows/overview) as a downloadable CSV file. Use this for data exports, report generation, or feeding structured data into other tools.

<Steps>
  <Step title="Add the action">
    In the Workflow builder, click **+** between blocks and select **Export as CSV** from the action library.

    <Frame>
      <img src="https://mintcdn.com/cassidy/zezwztoB9l0rPYfl/images/reference/export-as-csv-img-0.png?fit=max&auto=format&n=zezwztoB9l0rPYfl&q=85&s=9a3067a1ca7906fbcf61b127bec1c9dd" alt="Action library with Export as CSV selected" width="1016" height="584" data-path="images/reference/export-as-csv-img-0.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cassidy/zezwztoB9l0rPYfl/images/reference/export-as-csv-img-1.png?fit=max&auto=format&n=zezwztoB9l0rPYfl&q=85&s=39f551d84cc9a0df0842d61c3bf89899" alt="Adding the Export as CSV action between blocks" width="1006" height="928" data-path="images/reference/export-as-csv-img-1.png" />
    </Frame>
  </Step>

  <Step title="Enter the document name">
    Provide a name for your CSV file. You can type a name directly or reference a variable from a previous step or the trigger to dynamically name the file.

    <Frame>
      <img src="https://mintcdn.com/cassidy/zezwztoB9l0rPYfl/images/reference/export-as-csv-img-3.png?fit=max&auto=format&n=zezwztoB9l0rPYfl&q=85&s=3d7f7ccb2fd52613b2a43cda9d57e82f" alt="Document name field for the CSV" width="1012" height="246" data-path="images/reference/export-as-csv-img-3.png" />
    </Frame>
  </Step>

  <Step title="Select the data to export">
    Choose the variable containing the data you want to export. This must be a list of objects, where each item in the list represents a row and each key represents a column.

    <Frame>
      <img src="https://mintcdn.com/cassidy/zezwztoB9l0rPYfl/images/reference/export-as-csv-img-4.png?fit=max&auto=format&n=zezwztoB9l0rPYfl&q=85&s=28646f6991f9904d62511380d223ab55" alt="Selecting the data source variable for CSV export" width="1016" height="284" data-path="images/reference/export-as-csv-img-4.png" />
    </Frame>

    <Tip>You can generate structured data using actions like Generate Text with structured output fields, Run Code, or Extract Information.</Tip>
  </Step>

  <Step title="Configure columns to export">
    Specify which columns to include in your CSV and their order. If no columns are specified, all available columns are exported. You can drag and drop to reorder columns.

    <Frame>
      <img src="https://mintcdn.com/cassidy/zezwztoB9l0rPYfl/images/reference/export-as-csv-img-5.png?fit=max&auto=format&n=zezwztoB9l0rPYfl&q=85&s=97a4c3d2d6474567a5656755bf1e47fe" alt="Column configuration with drag-and-drop reordering" width="1006" height="516" data-path="images/reference/export-as-csv-img-5.png" />
    </Frame>
  </Step>
</Steps>

## Related

* [Export as PDF](/reference/actions/export-as-pdf)
* [Export as Excel](/reference/actions/export-as-excel)
* [Create files with Workflows](/guides/create-files)
