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

# Create Spreadsheet

> The Create Spreadsheet tool step allows you to create a new Google Sheet

## Add the ‘Create Spreadsheet’ Tool step to your Tool

<div
  style={{
position: "relative",
boxSizing: "content-box",
maxHeight: "80vh",
width: "100%",
aspectRatio: "1.8057022175290391",
padding: "24px 0"
}}
>
  <iframe
    src="https://app.supademo.com/embed/cmdwlvhar6rk59f96a2u0cfli?embed_v=2&utm_source=embed"
    loading="lazy"
    title="Google Sheets Create Spreadsheet"
    allow="clipboard-write; fullscreen"
    webkitAllowFullscreen="true"
    mozAllowFullscreen="true"
    allowFullscreen
    style={{
  position: "absolute",
  top: 0,
  left: 0,
  width: "100%",
  height: "100%",
  border: "3px solid #5E43CE",
  borderRadius: "10px",
  objectFit: "cover"
}}
  />
</div>

You can add the ‘Create Spreadsheet’ Tool step to your Tool by:

1. Creating a new Tool, then searching for the ‘Create Spreadsheet’ Tool step
2. Click ‘Expand’ to see the full Tool step
3. Select the Drive you would like to use (defaults to "My Drive").
4. Select the name of the new spreadsheet you would like to create.
5. Select the folder you would like to create the spreadsheet in.
6. **Optional:** select the template you would like to use to create the spreadsheet.
7. Click 'Run step' to test out the Tool

## Using in an Agent

There are 3 ways to configure the tool step when using in an agent

<Tabs>
  <Tab title="Using dropdown menus">
    This is the easiest way to configure the tool step. You can select the Drive, Folder and Spreadsheet from a list of options via the dropdown menu.

    <img src="https://mintcdn.com/relevanceai/OWgDVEd91vN6behf/images/gs-create-spreadsheet-eg-1.png?fit=max&auto=format&n=OWgDVEd91vN6behf&q=85&s=b743c75ba7b72518280a95b5d1c31e88" alt="Google Sheets Create Spreadsheet" width="823" height="550" data-path="images/gs-create-spreadsheet-eg-1.png" />
  </Tab>

  <Tab title="Using input variables">
    This option offers the most flexibility - you can use the same tool step for creating multiple spreadsheets, however you will need to manually provide the necessary Google Sheet IDs.

    <img src="https://mintcdn.com/relevanceai/OWgDVEd91vN6behf/images/gs-create-spreadsheet-eg-2.png?fit=max&auto=format&n=OWgDVEd91vN6behf&q=85&s=faad2b29e9e9c0eab66c1b6fb3afb615" alt="Google Sheets Create Spreadsheet" width="821" height="567" data-path="images/gs-create-spreadsheet-eg-2.png" />
  </Tab>

  <Tab title="Mix of dropdown menus and input variables">
    This option offers the best of both worlds. You can use the dropdown menu to select the Drive, Folder and Spreadsheet, and then use an input variable for "Title" to allow the agent to dynamically pick a name for the new spreadsheet.

    <img src="https://mintcdn.com/relevanceai/OWgDVEd91vN6behf/images/gs-create-spreadsheet-eg-3.png?fit=max&auto=format&n=OWgDVEd91vN6behf&q=85&s=aad1dd3f47a9840b5f1050235f27e1fd" alt="Google Sheets Create Spreadsheet" width="820" height="543" data-path="images/gs-create-spreadsheet-eg-3.png" />
  </Tab>
</Tabs>

## Parameters

<ParamField path="Drive" type="string">
  The Drive you want to use. By default, the tool uses "My Drive".
</ParamField>

<ParamField path="Title" type="string" required>
  The title of the new spreadsheet you want to create.
</ParamField>

<ParamField path="Folder" type="string">
  The folder you want to create the spreadsheet in. To get the folder ID, navigate to the folder and copy the ID from the URL (the long ID after `/folders/`).
</ParamField>

<ParamField path="Spreadsheet ID" type="string">
  Use one of your existing spreadsheets as a template. Leave this field blank to create a new spreadsheet from scratch.
  <Tip> [You can use this tool to parse the spreadsheet ID from a url](https://app.relevanceai.com/notebook/f1db6c/d64db999bc25-4ea0-b926-30b350f69243/01e4918b-6c0a-423d-8daa-a625ced25e23)</Tip>
</ParamField>

## Frequently asked questions (FAQs)

<AccordionGroup>
  <Accordion title="What is the difference between using the green input variables and the dropdown menu?">
    **The dropdown menu is the easiest way to configure the tool step**. You can select the Drive, Folder and Spreadsheet from a list of options via the dropdown menu.

    **The input variables offer more flexibility** e.g. you can use the same tool step for creating multiple spreadsheets, however you will need to manually provide the necessary Google Sheet IDs.
  </Accordion>

  <Accordion title="Can I use a mix of both dropdown menu and green input variables?">
    If you are using the tool in an agent, this is the recommended approach. You can use the dropdown menu to select the fields that don't need to change, and then use the green input variables for "Title" to allow the agent to dynamically pick a name for the new sheet.
  </Accordion>
</AccordionGroup>
