# How to Set Up Google Service Account Credentials in n8n

## Метаданные

- **Канал:** n8n
- **YouTube:** https://www.youtube.com/watch?v=FzQzGODb5Gk
- **Дата:** 05.09.2025
- **Длительность:** 3:58
- **Просмотры:** 16,646

## Описание

Learn how to get Google Service Account credentials for n8n to connect Google Chat and other Google services to your workflows. This tutorial covers the complete setup process.

What you'll learn:

- Create a Google Cloud Console project
- Enable the APIs
- Create and configure a service account
- Generate and download JSON credentials
- Connect service account credentials to n8n

Important note: Remember to share your Google Sheets or Drive files with the service account email address to grant access.

Useful for connecting:

- Google Chat
- BigQuery
- Firestore
- Gmail
- Google Docs

Google OAuth Video - https://youtu.be/FBGtpWMTppw

Reference: https://docs.n8n.io/integrations/builtin/credentials/google/service-account/

## Содержание

### [0:00](https://www.youtube.com/watch?v=FzQzGODb5Gk) Segment 1 (00:00 - 03:00)

Hi there, I'm Jamie and I'm the senior dev rail in education here at N8N. In this short video, I'm going to show you how to set up a Google service account so you can use it with your nodes in NAN. You'd usually use a Surface account when you want to access services like BigQuery or the most popular option, uh, Google Chat. You're going to need two things, a Google Cloud account and your N instance. If you followed along with my previous video for setting up Google Oorth, then some of these steps will have already been completed. Let's get started. First step is to create a Google Cloud Console project or use the one that you created in the previous video. To create the project, head over to cloud. google. com. Click start free if you don't have an account or click console if you do. From here on the top left, you've got the project dropdown. Click on that. Then click new project. Name your project something useful and then click create project. I'm not going to do that because I already have an existing project. The next thing you're going to need to do is enable the APIs that you want to use. I'm going to be enabling this for the Google chat. So click on the hamburger in the top left. Scroll down to APIs and services. Enabled APIs and services. Click on enable APIs and services. Search for chat. and then click enable. That's the only API I'm going to enable as that's what I'm going to demo. Now that the API is enabled, the next thing you want to do is create the service account. You can click on credentials on the left here and in the bottom right we have manage service accounts. Then you click on create service account. Give it a name. We'll make it nice and simple. Give it a description. Click create and continue. Permissions are optional and if you need to restrict this account to a particular role then you can do that. To find out more you can click on learn more to read the Google docs. So we'll click continue. Same with principles with access. That's an advanced feature and is not covered in this video. So click done and the service account is created. We have one more step. So, let's go over to the NAND credentials to begin with. Let's create the credential. We want a service account. So, what does it need? It needs an account email and a private key. So, we come back over to the service account. When you click on the service account, that's the service account email. So, we can copy that and paste it in. Now, the second thing we need to do is to get the private key. key, we first have to create it. So, click on keys. On the add key dropdown, select create new key. Leave the default of JSON and click create. That'll automatically download or prompt download depending on your browser. The last step is to get the private key from the JSON file that was downloaded. First thing we need to do is open it in our favorite text editor or IDE. That's up to you. I'm just going to open it in text edit. Let's make this slightly bigger. And so here we have this private key field here. What we need to do is we need to copy everything inside of the double quotes but not the double quotes themselves. So then we can come over to paste the private key in. Let's rename this to service account and click save. There you have it. Thanks for watching. Let me know in the comments what the next video should be and I'll do my best to build it. Until next time, happy flowing.

---
*Источник: https://ekstraktznaniy.ru/video/15300*