> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/form-management/tasks/task-items/google-sheet.md).

# Google Sheet Task

## 📥 What is the Google Sheet Task ?

The Google sheet task will automatically save the respondent and all his answers in a Google Sheet of your choice.

{% hint style="warning" %}
To setup Google Sheets and let ngSurvey access your spreadsheets you will need to link a [Google Service Account](/installation-setup/system-settings/google.md) to your ngSurvey account from your [account settings](/personal-account.md) page .
{% endhint %}

## 🔅 Google Sheet Task properties

* **`Spreadsheet`** to which the target sheet belongs. &#x20;
* **`Sheet`** that will keep the respondent answers.

Make sure that the spreadsheet you want to use has been shared with your [Google Service Account](/personal-account.md) using the Share button inside the Google Sheets user interface.&#x20;

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MBKo7vjQ11Jh3WvlX9g%2F-MBKtrxl7F_f3hBA6Sld%2Fimage.png?alt=media\&token=62c52096-747f-4c92-b5fd-0200abf65972)

## &#x20;📚 Respondent row format

The target format of the respondent and its responses is one column per question that will hold the respondent answer in it. If the question has a mixed of text and selection [answer types](/form-management/form-designer/answers/answer-types.md) ngSurvey will use one column for the question and one extra column for each answer type that is text based like a [comment field](/form-management/form-designer/questions/question-types/standard/text-comment-field.md) for example.

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MBKo7vjQ11Jh3WvlX9g%2F-MBKruxJ8iQhRi0vlAYf%2Fimage.png?alt=media\&token=60409fe2-6a91-40f3-acd6-9309416228c2)

{% hint style="info" %}
🧙 The first column will automatically created with the questions and answers labels. If a [reporting alias](/form-management/reports.md) has be setup for either the question or answer it will be used instead of the label.&#x20;
{% 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ngsurvey.com/form-management/tasks/task-items/google-sheet.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
