> ## Documentation Index
> Fetch the complete documentation index at: https://jigsaw-13.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Sheets

> Power up your Google Sheets with JigsawStack

You can easily bring JigsawStack directly in your Google Sheets. Analyze your data with real-time,
AI-powered tools without writing a single line of code.

> [!NOTE]
>
> Check out our [Google Sheets Demo](https://docs.google.com/spreadsheets/d/1wBrw7AtrU5Yd_8Be2CDgurEbSa40mRCsacxcpMDFtmY/edit?usp=sharing)
> to see how you can use JigsawStack in your Google Sheets.

## Setting up

1. Install the add on from the [Google Sheets add-on page](https://workspace.google.com/u/0/marketplace/app/jigsawstack/46775261899?flow_type=2)
2. Get your API key from the [JigsawStack dashboard](https://jigsawstack.com/dashboard)
3. In your Google Sheets, go to `Extensions` > `JigsawStack` > `Set up API key`

![Image showcasing the setup API key on Google Sheets extension tab](https://mintcdn.com/jigsaw-13/5iMDLvyMMJPghNPI/images/GSheets/setupkey.png?fit=max\&auto=format\&n=5iMDLvyMMJPghNPI\&q=85\&s=0ba255aeb114bf09057a1b9cac979633)

4. Paste your API key in the input field and click `Save`

![Image of saving the API key on Google Sheets](https://mintcdn.com/jigsaw-13/E6-ZNeenoryjKMs1/images/GSheets/saveKey.png?fit=max\&auto=format\&n=E6-ZNeenoryjKMs1\&q=85\&s=b2d04e70c07e1a509d870a5702d8e1be)

## How to use the add-on

You can call all of JigsawStack’s AI tools just like a regular spreadsheet formula.
Here are a few examples which are shown with autocompletion:

![Examples of JigsawStack functions on Google Sheets](https://mintcdn.com/jigsaw-13/5iMDLvyMMJPghNPI/images/GSheets/examples.png?fit=max\&auto=format\&n=5iMDLvyMMJPghNPI\&q=85\&s=ac9de3a585354b0f8141ffba5e373f45)

## Parameters and Return Types

Each JigsawStack function has a set of parameters and a return type. You can find more information on each parameter by clicking
on the dropdown menu in the custom function.

![Detailed parameters for custom functions](https://mintcdn.com/jigsaw-13/E6-ZNeenoryjKMs1/images/GSheets/parameters.png?fit=max\&auto=format\&n=E6-ZNeenoryjKMs1\&q=85\&s=60a431e1f70ae7ab80a0cab10db41019)

> [!WARNING]
>
> **Warning:** in the case where no description is shown, please click on the question mark icon next to the custom function.
>
> ![Question mark icon next to the custom function](https://mintcdn.com/jigsaw-13/5iMDLvyMMJPghNPI/images/GSheets/question.png?fit=max\&auto=format\&n=5iMDLvyMMJPghNPI\&q=85\&s=4f61ff56e2c8b69e8c45d4f5696e56d7)

## Error Handling

Errors are shown by hovering over the cell with the error. We try out best to provide a clear error message but there
are some limitations from Google Sheets.

Here is an example of an error message with incorrect parameters passed:

![Error message with incorrect parameters](https://mintcdn.com/jigsaw-13/E6-ZNeenoryjKMs1/images/GSheets/errorParameter.png?fit=max\&auto=format\&n=E6-ZNeenoryjKMs1\&q=85\&s=743bdfd4db51bd86a3fdad97ae81caed)

> [!NOTE]
>
> **Note:** Loading will also show a similar error message. This is unavoidable and is due to the way Google Sheets handles custom functions.
>
> ![Loading error](https://mintcdn.com/jigsaw-13/E6-ZNeenoryjKMs1/images/GSheets/loading.png?fit=max\&auto=format\&n=E6-ZNeenoryjKMs1\&q=85\&s=f9dac324ea3a892da9b93aaaeca9115d)

## Cache

### Refreshing a specific cell

By default JigsawStack's results are automatically cached in your sheets. To refresh the value of a specific cell,

* Click on the Cell you want to refresh
* On the keyboard type `cmd + r` (or `ctrl + r` for Windows)

This will trigger a new call to our API, refreshing the value of that cell.

### Refreshing an entire sheet

You can also refresh ALL cell in a sheet by navigating to Extensions > JigsawStack > Refresh All Formulas

> [!NOTE]
>
> **Note:** Refresh All Formulas, will clear all your existing cache.


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