You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Google Workspace Add-on Drive - Name with Intelligence
2
+
3
+
## Project Description
4
+
5
+
Google Workspace Add-on for Google Drive, which uses AI to recommend new names for the selected Doc in Google Drive by passing the body of the document within the AI prompt for context.
6
+
7
+
## Prerequisites
8
+
9
+
* Google Cloud Project (aka Standard Cloud Project for Apps Script) with billing enabled
10
+
11
+
## Set up your environment
12
+
13
+
1. Create a Cloud Project
14
+
1. Enable the Vertex AI API
15
+
1. Enable Google Drive API
16
+
1. Configure OAuth consent screen
17
+
1. Create a Service Account and grant the role Service `Vertex AI User` role
18
+
1. Create a private key with type JSON. This will download the JSON file for use in the next section.
19
+
1. Open a standalone Apps Script project.
20
+
1. From Project Settings, change project to GCP project number of Cloud Project from step 1
21
+
1. Add a Script Property. Enter `model_id` as the property name and `gemini-pro` as the value.
22
+
1. Add a Script Property. Enter `project_location` as the property name and `us-central1` as the value.
23
+
1. Add a Script Property. Enter `service_account_key` as the property name and paste the JSON key from the service account as the value.
24
+
1. Add `Google Drive API v3` advanced service.
25
+
1. Add OAuth2 v43 Apps Script Library using the ID `1B7FSrk5Zi6L1rSxxTDgDEUsPzlukDsi4KGuTMorsTQHhGBzBkMun4iDF`.
0 commit comments