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

> ## Agent Instructions
> You are helping someone use Cord, the capital and resource allocation platform.
> Use title-case Cord in prose. Prefer workspace, project, ontology, lineage, scenario, and allocation.
> Say source-backed or sourced for answers with lineage. Do not say hallucination-free.
> Product URLs are https://app.cord.nyc, https://cord.nyc, and https://trust.cord.nyc. Support is support@cord.nyc.
> Give concrete product steps. Do not invent UI labels, CLI commands, or unreleased agent runtime details.
> Use Understanding Cord for concepts and Guides for task steps.

# Use Google Sheets in an app

> Connect a Google Sheet, save its prepared data as an artifact, and use it to power a Cord app.

Don't want to do this all manually?
Cord Computer can do this for you.

You connect your Google account first. Cord can help with the pipeline, function, and app afterward.

Google Sheet: you edit. Feed: capture. Pipeline: clean. Artifact: save a version. Function: calculate. App: view.

An artifact is a saved version of your prepared data. Your app reads function results calculated from that version. Sheet edits reach the app when you refresh and publish.

## 1. Connect Sheets

1. Open [**Connections**](https://app.cord.nyc/connections) with your project selected.
2. Select **Google Sheets**.
3. If your account is not connected, select **Connect Google Sheets** and sign in with an account that can access the spreadsheet.
4. If **Add to project** appears, select it.

## 2. Create a feed

1. Open [**Data Feeds**](https://app.cord.nyc/data-feeds) and select **New feed**.

2. Name the feed and choose your Google Sheets connection.

3. Under **Resource**, choose the format that matches your data.

   | Your data | Resource |
   | - | - |
   | A table in one tab | **Table rows** |
   | Multiple tabs or a formatted report | **Workbook cells** |

4. Select the **Spreadsheet**.

5. For **Table rows**, select a **Worksheet**. For **Workbook cells**, select the **Worksheets** to include.

6. For **Table rows**, turn on **First row headers** if your first row contains column names. Otherwise, turn it off.

7. Optional: For **Table rows**, enter an **A1 range** to limit the cells.

8. Select **Create feed and refresh source**.

9. Wait for **Source ready**.

## 3. Save the artifact

1. Open [**Pipelines**](https://app.cord.nyc/pipeline-studio) and [create a pipeline](https://docs.cord.nyc/prepare-data-pipeline.md) using the feed as its source.
2. Clean the data. If you chose **Workbook cells**, arrange the captured cells into a table.
3. Select **Run to here** to check the rows.
4. Add a **Pipeline Output** node and name it.
5. Select **Create artifact**.

## 4. Create the function

1. Open [**Cord Computer**](https://app.cord.nyc/) with your project selected.

2. Ask Cord to create the function. Replace the pipeline name and calculation with your own:

   > Create a saved function using my Monthly actuals pipeline output. Set its artifact input to Latest publication so each run uses the latest published version. Calculate contribution as revenue minus operating cost. Save the input setup, run it, and check the results.

3. Review the results and ask Cord to correct anything that does not match your data.

## 5. Build the app

1. Open [**Application Studio**](https://app.cord.nyc/application-studio) and create an app.

2. Describe the app you want. For example:

   > Build an app using my saved contribution function. Show monthly contribution and let me filter by site.

3. Check the preview.

4. Open **Access** and select **Publish app**.

## Refresh after Sheet edits

1. In [**Application Studio**](https://app.cord.nyc/application-studio), open your app's **Data** panel.
2. Enable **Refresh feeds + artifacts**.
3. Select **Refresh all data**.
4. Wait for **Data refreshed**, then check the preview.
5. Open **Access » Publish changes** to make the updated results available to viewers.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.