> For the complete documentation index, see [llms.txt](https://cardstock-studio.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cardstock-studio.gitbook.io/docs/design/decks/connecting-to-google-sheets.md).

# Connecting to Google Sheets

While you can update card values in the Deck spreadsheet, we believe it's easier to do this in Google Sheets, where you have additional features and functionality available.

## Exporting Spreadsheet Structure

In the top right of the Deck page, click the <picture><source srcset="/files/FrcFK79XMcTPQPeMRZco" media="(prefers-color-scheme: dark)"><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2FzKRyzMh9oDk6iKzu4t9H%2FScreenshot%202026-05-30%20at%2012.04.36%E2%80%AFPM.png?alt=media&amp;token=6a2b2ed3-7468-4377-970a-c77949587829" alt="" data-size="line"></picture> button and choose to export as *CSV File*.

<figure><picture><source srcset="/files/xR8uTMB2JW9LKVNtUr4t" media="(prefers-color-scheme: dark)"><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2FubMnGJ3fnnU7ionW7Jmq%2FScreenshot%202026-05-30%20at%2012.05.10%E2%80%AFPM.png?alt=media&amp;token=224be1bd-fe56-4e5e-a102-5fbe9a306935" alt="" width="375"></picture><figcaption></figcaption></figure>

This will save a .csv file to your disk.

## Setting Up Google Sheets

Visit sheets.google.com and create a new sheet, or open your existing sheet.

Create a new page, or use the default page, and rename it to the same name as your Deck. This is how Cardstock Studio knows which sheet to pull from.

<figure><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2FBri0aFRu84Uq9KhgOm5B%2FScreen%20Recording%202026-05-30%20at%2012.10.29%E2%80%AFPM.gif?alt=media&amp;token=cf77c431-274b-4a38-b6d3-57114df14bf3" alt=""><figcaption></figcaption></figure>

Next, click "File > Import" in the Google Sheet menu.

<figure><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2FlE1mfwCHWecyV91bJAkN%2FScreen%20Recording%202026-05-30%20at%2012.11.30%E2%80%AFPM.gif?alt=media&amp;token=f8992bd7-0fbc-4361-9588-3c5b53946ea8" alt=""><figcaption></figcaption></figure>

Choose "Upload", and select the .csv file you downloaded. When prompted, choose the *Import Location* "Replace current sheet", and import the data.

<figure><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2FXvNTL5hRpTbW379edxIk%2FScreen%20Recording%202026-05-30%20at%2012.11.47%E2%80%AFPM.gif?alt=media&amp;token=c5d477e9-5c6a-41fb-8dbb-96db7370cf61" alt=""><figcaption></figcaption></figure>

Optionally you may like to lock the header row and column, so as you scroll you can still see them.

<figure><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2FPR4wXTZraaSeZMwDFMNT%2FScreen%20Recording%202026-05-30%20at%2012.15.17%E2%80%AFPM.gif?alt=media&amp;token=d6af4fba-8fcb-4329-8a92-88ff43a80d4e" alt=""><figcaption></figcaption></figure>

## Required Columns vs Variable Columns

The first 3 columns are required:

1. Card Name
2. Copies
3. Description

They must be the first three. All other columns are used for [Variables](/docs/design/templates-design-your-cards/variables.md) and can be in any order.

## Connecting the Sheet to Cardstock Studio

Next you need to connect the sheet to Cardstock Studio, so Cardstock Studio can import your updates.

In the Google Sheet menu choose *File > Share > Publish to Web*

<figure><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2FcSF6ShYc9pYOKLl4jHPT%2FScreen%20Recording%202026-05-30%20at%2012.18.16%E2%80%AFPM.gif?alt=media&amp;token=271a714e-8d55-459d-a8be-a9d085104ab1" alt=""><figcaption></figcaption></figure>

In the *Publish to the web* modal, make sure the "Entire document" is shared, and choose to share as "Comma-separated values" from the drop down. Then click "Publish".

You will be prompted to confirm, afterwhich, you'll see a long URL.

<figure><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2F9JxM6Fol72rwxmfcSf4y%2FScreen%20Recording%202026-05-30%20at%2012.19.31%E2%80%AFPM.gif?alt=media&amp;token=4d7ecec4-a189-4f71-96b8-20d550129580" alt=""><figcaption></figcaption></figure>

Copy the URL, and go back to your Deck in Cardstock Studio.

Click the <picture><source srcset="/files/GMOd2KFkHYxGtwQW3NuD" media="(prefers-color-scheme: dark)"><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2FuWEIK1E15KjldvLHc7or%2FScreenshot%202026-05-30%20at%2012.24.43%E2%80%AFPM.png?alt=media&amp;token=0dd3a48e-7e23-45fb-be6b-105cc7120719" alt="" data-size="line"></picture> button, and in the *Published Google Sheet* option, click "Connect a Sheet". Paste the URL into the field, and click "Save Connection".

<figure><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2Fey911GzBIP3i8vBP6bp6%2FScreen%20Recording%202026-05-30%20at%2012.23.04%E2%80%AFPM.gif?alt=media&amp;token=ddb408e6-6198-4aad-a4d3-c3f2f8a6e338" alt=""><figcaption></figcaption></figure>

Any changes you've made will import, and from now on, pressing the <picture><source srcset="/files/GMOd2KFkHYxGtwQW3NuD" media="(prefers-color-scheme: dark)"><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2FuWEIK1E15KjldvLHc7or%2FScreenshot%202026-05-30%20at%2012.24.43%E2%80%AFPM.png?alt=media&amp;token=0dd3a48e-7e23-45fb-be6b-105cc7120719" alt="" data-size="line"></picture> button will allow you to pull from the Google Sheet with one click.

<figure><picture><source srcset="/files/JNjmuLc8cFAlZMO5ixXQ" media="(prefers-color-scheme: dark)"><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2FQTllXrhzK3JrCiONRR4y%2FScreenshot%202026-05-30%20at%2012.26.23%E2%80%AFPM.png?alt=media&amp;token=40d1f17f-b74e-40f6-b142-36435ebac257" alt="" width="375"></picture><figcaption></figcaption></figure>

{% hint style="warning" %}
Google Sheet can takes up to 5 minutes from when you last make changes for the published sheet to include them. Usually it's fairly quick, but if you do not see your changes being imported, try again in a minute or two.
{% endhint %}

### Updating All Decks

We suggest using the same Google Sheet for all Decks in your Project. Then, if you toggle on the "Update all decks..." option, importing the deck will also update any other decks represented in the Google Sheet. Remember each sheet must be named the same as the Deck in Cardstock Studio.

{% hint style="success" %}
The first two columns of each sheet should **ALWAYS** be *Card Name* and *Copies*.&#x20;

All other [Variables](/docs/design/templates-design-your-cards/variables.md) can be in any order, and the cards can be in any order as well.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://cardstock-studio.gitbook.io/docs/design/decks/connecting-to-google-sheets.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
