WEBVTT

00:01.400 --> 00:10.160
If you want to use Google services like Gmail, Google Drive Sheets, docs in your n810 agents and automation,

00:10.440 --> 00:12.000
you have to set up credentials.

00:13.000 --> 00:20.640
So if you are using the paid cloud version of N810, it's very simple.

00:24.080 --> 00:27.240
You just need to sign in using your email account.

00:28.680 --> 00:30.200
So I'm going to show you how.

00:32.320 --> 00:32.640
Um.

00:36.920 --> 00:44.400
Basically every time when you want to use Google Apps, let's say Gmail.

00:46.840 --> 00:48.640
And you want to use a trigger.

00:52.400 --> 00:56.840
We need to create new credential and simply sign in with Google.

00:59.280 --> 01:03.920
Or another way to do that is to go to overview.

01:07.400 --> 01:08.720
Go to credentials.

01:13.280 --> 01:22.040
And sign in here and your credentials will be automatically saved for the next workflows.

01:22.040 --> 01:25.000
So you don't need to do it over and over again.

01:26.040 --> 01:31.640
But if you are self-hosting, anytime, you have to stop credentials manually, and in the next part

01:31.640 --> 01:33.520
of this tutorial, I will show you exactly how.

01:36.800 --> 01:39.640
First we need to trigger to activate our workflow.

01:40.120 --> 01:44.720
So click on the add first step, then select trigger manually.

01:45.360 --> 01:48.760
To get started we will set up a Google Drive node.

01:49.200 --> 01:51.320
So let's search for Google Drive.

01:55.400 --> 01:56.480
Select Google Drive.

01:58.440 --> 02:02.480
Then we have to select actions we want to perform.

02:02.920 --> 02:06.720
So in this case we want to download file from Google Drive.

02:07.360 --> 02:08.600
So select this module.

02:10.720 --> 02:12.520
Now we have to set up credentials.

02:13.120 --> 02:15.600
So click on this little pen here.

02:20.240 --> 02:25.000
As you can see I already set up my Google Drive account.

02:26.000 --> 02:27.840
So let's do it from scratch.

02:32.920 --> 02:35.160
Click on the create new credentials.

02:36.920 --> 02:43.880
So you see that N810 requires a client ID and client secret to connect to your Google account.

02:44.280 --> 02:50.600
So this means we need to set up credentials in Google Cloud Console, which is what we will do next.

02:51.080 --> 02:56.720
Now we are gonna open docs because we need to set up our Google Cloud account.

02:58.000 --> 03:04.080
Scroll down and right here under prerequisites click on Google Cloud.

03:09.960 --> 03:12.160
Now we have to go to our console.

03:13.480 --> 03:14.640
So click on console.

03:19.760 --> 03:21.640
Now we have to create our project.

03:21.840 --> 03:23.200
So let's do it from scratch.

03:26.720 --> 03:27.960
Click on New project.

03:30.840 --> 03:34.880
Let's name it N810 demo.

03:36.320 --> 03:37.280
Click on create.

03:41.640 --> 03:44.840
Google cloud will create our project.

03:45.840 --> 03:52.400
So this project is where we will set up permissions for N810 to interact with your Google services.

03:54.240 --> 03:59.760
So now that the project is created let's open it.

04:05.560 --> 04:09.320
In the left menu go to APIs services.

04:13.960 --> 04:16.160
And on or off console.

04:16.200 --> 04:16.640
Screen.

04:19.830 --> 04:20.190
Choose.

04:20.190 --> 04:20.870
External.

04:23.230 --> 04:24.030
Recreate.

04:27.710 --> 04:31.710
Name it something recognizable, like Google integration.

04:37.550 --> 04:38.790
You need to provide support.

04:38.790 --> 04:39.230
Email.

04:42.590 --> 04:43.270
Scroll down.

04:46.270 --> 04:48.710
Provide your developer email address.

04:53.070 --> 04:54.470
Click save and continue.

05:00.390 --> 05:01.470
Keep the scopes.

05:03.710 --> 05:05.310
And hit save and continue.

05:08.710 --> 05:13.030
Under test users, add your email address as a test user and hit save.

05:34.030 --> 05:37.350
Now we need to provide authorized redirect URL.

05:38.070 --> 05:40.070
So go back to n810.

05:43.990 --> 05:45.110
Copy this URL.

05:52.670 --> 05:53.430
URL.

05:55.070 --> 05:55.830
Paste it here.

05:57.990 --> 05:59.310
And click create.

06:04.150 --> 06:08.150
Now Google generated a client id and client secret.

06:09.510 --> 06:11.350
So copy the client ID.

06:13.990 --> 06:15.190
Go back to n810.

06:17.870 --> 06:18.630
Paste it here.

06:22.870 --> 06:24.150
Copy client secret.

06:27.110 --> 06:27.950
I pass it here.

06:32.110 --> 06:33.750
Click sign in with Google.

06:35.470 --> 06:37.110
A Google login screen will appear.

06:43.630 --> 06:47.110
Select the account you added as a test user earlier.

06:53.350 --> 06:58.750
And grant the necessary permissions like access to Google Drive or Gmail.

07:03.750 --> 07:04.630
Click continue.

07:10.430 --> 07:11.310
And continue.

07:13.150 --> 07:21.590
So once authorized, Nathan will show a green status indicator and confirming the connections was successful.

07:22.390 --> 07:23.790
So now we are connected.

07:24.470 --> 07:27.710
Even though the credentials are connected, we are not done yet.

07:27.710 --> 07:32.390
We need to enable the APIs for the Google services we plan to use.

07:33.070 --> 07:34.830
So go back to Google Cloud.

07:39.430 --> 07:42.310
Go to enabled APIs and services.

07:48.470 --> 07:53.150
Search for the API you need like Google Drive API and click enable.

08:10.430 --> 08:18.710
And repeat this step for other APIs like Gmail API, Google Docs API, or Google Sheets depending on

08:18.750 --> 08:20.910
your work workflow requirements.

08:21.430 --> 08:27.030
Once enabled, these APIs will allow an end to communicate with Google services.

08:28.030 --> 08:29.030
And that's it.

08:29.070 --> 08:34.990
You have successfully set up Google credentials in N810, giving you full access to Google services

08:35.230 --> 08:36.430
for workflows.
