Google Docs is a cloud-based word processing tool that allows for real-time collaboration and seamless document sharing. It provides automatic saving and easy access from any device, making it ideal for both personal and professional use.
Integrating your application with Google Docs revolutionizes document collaboration, offering real-time editing, version control, and seamless sharing, enhancing productivity and teamwork.
Authentication
Before you begin, ensure you have the following information:
Connection Name
: Choose a descriptive name for your Google docs connection to help you identify it within your application or integration settings. A meaningful name, like "MyAppGoogledocsIntegration," helps maintain organization, especially when managing multiple integrations.Authentication Type
: Select the type of authentication to connect to your Google docs account securely:Service Account Authentication
OAuth
Service Account Based Authentication
Create a service account by following these steps.
Add domain-level access to the service account (based on client ID) by following these steps.
Ensure that the following scopes are added to your service account and domain-level access:
https://www.googleapis.com/auth/documents
https://www.googleapis.com/auth/documents.readonly
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.readonlyUse the service account email, private key, and a sample user email to authenticate the connection
OAuth Based Authentication
The OAuth method involves signing in with your Google account credentials on Google's Single Sign-On page, and granting the necessary permissions to UnifyWorkflows, For OAuth
-based authentication, you'll need to perform the following steps to generate access credentials:
Turn on the API services for Google Docs API and Google Drive API from
APIs & Services
->Enable APIs and services
.Create an OAuth Client Credentials by following these steps.
Set up an OAuth consent screen to configure OAuth consent for your application by the following steps .
After adding new secret, console displays the
Client Identifier
as “Client ID
” andClient Secret
as “Client secret
”. Copy this and treat it with high confidentiality, as it allows access to your Google Docs account.Use the
Client ID
andClient secret
, press the Authorise button. You’ll be redirected to a Google sign-in page.If you're not already logged into Google, enter your Google account credentials and Sign in.
Google will display a permissions request screen, showing the app name and the specific Google services we are requesting access to (e.g., Google Docs and Google Drive).
Carefully review the permissions being requested. If you’re comfortable with them, click the "
Allow
" or "Grant Access
" button.After granting access, you will be automatically redirected back to our platform, where you should see a confirmation message indicating that your Google account is now connected and authorized.
Ensure that the following permissions are granted for OAuth authentication and provide public access to your documents in Google drive.
https://www.googleapis.com/auth/documents
https://www.googleapis.com/auth/documents.readonly
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.readonly
Actions
Action Name | Description |
| Creates a document in Google Docs |
| Appends a text to an existing document in Google Docs |
| Searches for a specific document by name in Google Docs |
| Creates document using data and existing template in Google Docs |
| Updates the text in existing document in Google Doc |
| Uploads a document in Google Docs |
Triggers
Action Name | Description |
| Triggers when an document is created in Google docs |
| Triggers when an document is created in specific folder |