> For the complete documentation index, see [llms.txt](https://docs.nocodecloud.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nocodecloud.ru/n8n/kak-podklyuchit-servisnyi-akkaunt-google.md).

# Как подключить сервисный аккаунт Google

Сервисный аккаунт Google имеет главное преимущество для интеграций в том, что с ним не нужно перепривязывать интеграцию несколько раз в неделю, чтобы она не слетала

{% hint style="info" %}
Если у вас ещё нет сервисного аккаунта Google или вы не помните, где найти свой ключ, [воспользуйтесь нашей инструкцией](https://docs.nocodecloud.ru/google/service-account)
{% endhint %}

1. Открываем n8n и создаем в нем новый credential

   <figure><img src="https://storage.mds.yandex.net/get-tfb/16486678/org100176324_attach_42495_1754286314320?ts=00063df49de2620c&#x26;content_type=image%2fpng&#x26;filename=%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202025-08-04%20%D0%B2%2009.44.38.png&#x26;disposition=inline&#x26;sign=6be4b31101f0d2f5270e69aed38b9347a7c08900e6d679d396d93ad63d2ff149" alt=""><figcaption></figcaption></figure>
2. Выбираем "Google Service Account API"

   <figure><img src="https://storage.mds.yandex.net/get-tfb/16398289/org100176324_attach_42496_1754286394348?ts=00063df49f3a6aee&#x26;content_type=image%2fpng&#x26;filename=%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202025-08-04%20%D0%B2%2009.45.58.png&#x26;disposition=inline&#x26;sign=868801d98a20835e75561bf028cdc73ebe2cc06ffca73b70c6c6a3b1d75dbc33" alt=""><figcaption></figcaption></figure>
3. В поле "Private Key" вставляем то, что мы скопировали из файла json при получении сервисного аккаунта Google

   <figure><img src="https://storage.mds.yandex.net/get-tfb/15430363/org100176324_attach_42497_1754286497335?ts=00063df4a048cf97&#x26;content_type=image%2fpng&#x26;filename=%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202025-08-04%20%D0%B2%2009.46.56.png&#x26;disposition=inline&#x26;sign=11425a7821f7d135fb43a0b84053be2e4349a4118612eb4bdd0608a1aec41fa5" alt=""><figcaption></figcaption></figure>
4. Возвращаемся в консоль Google - [  https://console.cloud.google.com/iam-admin/serviceaccounts](https://console.cloud.google.com/iam-admin/serviceaccounts)

   И копируем email сервисного аккаунта

   <figure><img src="https://storage.mds.yandex.net/get-tfb/14651783/org100176324_attach_42498_1754286611315?ts=00063df4a580cc05&#x26;content_type=image%2fpng&#x26;filename=%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202025-08-04%20%D0%B2%2009.49.50.png&#x26;disposition=inline&#x26;sign=0f3c89ca439d92ff13e16380834f13cc67896c9a0c0458b76910fc8db643c022" alt=""><figcaption></figcaption></figure>
5. Возвращаемся в n8n и вставляем его в поле "Service Account Email"

   <figure><img src="https://storage.mds.yandex.net/get-tfb/15230175/org100176324_attach_42499_1754286674123?ts=00063df4a6a615e1&#x26;content_type=image%2fpng&#x26;filename=%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202025-08-04%20%D0%B2%2009.51.01.png&#x26;disposition=inline&#x26;sign=87305945c623f9bd59dbce41effaa2cc5f4b6e68080760e963e7f83b8e88fce7" alt=""><figcaption></figcaption></figure>
6. Сохраняем

   <figure><img src="https://storage.mds.yandex.net/get-tfb/15436565/org100176324_attach_42500_1754286725039?ts=00063df4a7942fe5&#x26;content_type=image%2fpng&#x26;filename=%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202025-08-04%20%D0%B2%2009.51.39.png&#x26;disposition=inline&#x26;sign=cd248e7e489657412ca9e1a1ce97dea188877c6d872967e87cf1f7cbb04d2fbc" alt=""><figcaption></figcaption></figure>

Готово! Теперь можно использовать сервисный аккаунт Google в n8n :thumbsup:


---

# 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://docs.nocodecloud.ru/n8n/kak-podklyuchit-servisnyi-akkaunt-google.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.
