# Creating new spreadsheets

If you need to create a completely new spreadsheet in a workflow and populate it with content, you won't be able to use the standard "add row" or "write row" steps. This is because Relay.app won't know in advance which column headers are in the sheet (which are required for new steps that add rows).

But, we have dedicated features that make it easy to create entirely new spreadsheets and tabs!

1. **Write list to new spreadsheet**
2. **Write list to new tab**

For example: Suppose you have an AI step that produces a list of items, and for each item it includes a company name and website URL, and you want to create a complete spreadsheet with that information.

You can use the **Write list to new spreadsheet** automation to do so.

Here's a simple example workflow that generates a list of competitors in a spreadsheet:

<figure><img src="/files/RMlXX2jWLJPYGe2oc4Yy" alt=""><figcaption></figcaption></figure>

First, the AI step produces a list of companies.

<figure><img src="/files/hBxF1gMOhEpIj6P9VCEj" alt=""><figcaption><p>AI step to produce a list of companies with key information about each.</p></figcaption></figure>

Second, the write list to new spreadsheet step will turn those into a spreadsheet.

<figure><img src="/files/Nq83iAXWsi8NdZtN1jil" alt="" width="375"><figcaption><p>Writing a list to the spreadsheet.</p></figcaption></figure>

After this workflow is run, you'll get the following sheet:

<figure><img src="/files/jFhJFRBySDAwDHd9WF9O" alt=""><figcaption><p>The Sheet created by the workflow.</p></figcaption></figure>


---

# 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.relay.app/actions-in-apps/creating-new-spreadsheets.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.
