With the following Public Integrations, you can create and interact with Google Docs, as well as upload images to Google Drive:
- com.globant.geai.gdrive.create_pdf: Creates a new PDF document directly within Google Drive.
- com.globant.geai.gdrive.create_ppt: Creates a new presentation in Google Slides and saves it to Google Drive.
- com.globant.geai.gdrive.create_doc: Creates a new Google Docs document with specified content.
- com.globant.geai.gdrive.fill_blanks: Fills out templates by replacing blank fields or marked keywords with given values.
- com.globant.geai.gdrive_read_doc: Reads and extracts text from an existing Google Docs document.
- com.globant.geai.gdrive_upload_image: Uploads an image to Google Drive.
Before using these Tools, you must obtain a JSON file with the service account credentials from Google Cloud Platform and register it as a Secret in your Project.
- Log in to the Google Cloud Console.
- Create a new project or select an existing one.
- Activate the following APIs for that project:
- Google Drive API
- Google Docs API
- From the side menu, go to IAM & Admin > Service Accounts and create a new service account.
- Grant the necessary roles (for example, Editor).
- In the created service account, go to the Keys tab, create a new key in JSON format, and download the file. This file contains the credentials needed to authenticate requests.
- In Console, go to the Project where you will use this Tool and create a new Secret. Follow the steps in How to create a Secret.
- In the Name field, enter a descriptive name (for example gdrive). This is the name that will be later referenced in the credentials parameter of the Tool.
- In the Value field of the Secret, paste the full content of the JSON file downloaded from Google Cloud Platform (containing the service account credentials). Confirm to save the Secret.
- In the Integrations Dashboard, open Google Drive (Service Account) and go to the Integration Parameters tab. Configure the following:
- credentials: Enter the name of the Secret that stores the service account credentials in JSON format (for example, gdrive).
- Go to the Tool Parameters tab and configure the following optional parameter:
- email: Email address that will receive access to the generated Google Drive file.
This parameter is available in Tools that create or upload files (such as create_doc, create_ppt, create_pdf, fill_blanks, or gdrive_upload_image). If provided, the generated file will be automatically shared with the specified email address. If left empty, the file will remain accessible according to the permissions of the configured service account.
Tools that only read content, such as com.globant.geai.gdrive_read_doc, do not include this parameter.
After completing these steps, you can add any of these Tools to your Agent from the AI & Tools Tab.