Let us delve into the process of integrating Google Drive with Google Chat. Once you establish this integration, any new files that you upload to a designated folder in your Google Drive will automatically be shared with your team members through Google Chat spaces.
This automation requires a one-time setup, for which we will use Pabbly Connect.
Initially, we will connect Google Drive with Pabbly Connect to capture newly uploaded files, then we will make the file public and finally, we will link Pabbly Connect with Google Chats to share the uploaded files with your team via Google Chat.
Steps to Share Google Drive Files Via Google Chat Automatically
1. Sign In / Sign Up to Pabbly Connect and Create a Workflow
2. Setup Google Drive as the Trigger App to Gather Files
3. Setup Google Chat Hangout as the Action App to Share Files
Step 1:- Sign In / Sign Up to Pabbly Connect and Create a Workflow
A. Sign In / Sign Up
To begin this process, visit Pabbly Connect and create your account by clicking on the ‘Sign Up Free’ button. You can also click on Sign In if you already have an account.
Click on the Pabbly Connect ‘Access Now’ button
B. Create Workflow
To create a new workflow, click the ‘Create Workflow’ button.
Name your workflow, and click on ‘Create’.
Step 2:- Setup Google Drive as the Trigger App to Gather Files
We will now look at the steps through which we will establish a link between Google Drive and Pabbly Connect. This will enable us to retrieve files from a designated folder in your Google Drive.
A. Trigger App
Trigger allows us to choose the application that will receive the data for Pabbly Connect. In our case, it would be Google Drive.
Choose ‘Google Drive’ as the Trigger App, select ‘New File in Specific Folder’ as an Action Event, and click on ‘Connect’.
B. Connect Google Drive Account
To connect with your Google Drive account, select ‘Add New Connection’ and click on ‘Connect With Google Drive’. Also, grant the authorization.
Select the folder containing the file you wish to capture, then click ‘Save & Send Test Request’.
Once click on Save & Send Test Request, Pabbly Connect will immediately capture the data of the most recently uploaded file in your Google Drive account.
Step 3:- Setup Google Chat Hangout as the Action App to Share Files
Action allows us to choose the application that will get executed by the workflow trigger.
Our goal is to share the files uploaded to Google Drive via Google Chat. Therefore, Google Chat Hangout will be our Action App.
A. Action App
Choose ‘Google Chat Hangout’ as the Action App, select ‘Create Message’ as an Action Event, and click on ‘Connect’.
B. Chat Webhook URL
To obtain your Chat Webhook URL, navigate to your Google Chat account, choose the Space where you intend to send the message, and click on ‘Apps & integrations’ > ‘Manage webhooks’.
You will be prompted to name your Webhook, give a Name to your Webhook, and click on ‘Save’.
Copy the generated Webhook URL and paste it into its given field.
C. Compose a Message
You can write a static message or include variables in your message by mapping the details from above. These variables will be dynamic and adjust based on the files that are captured from Google Drive.
Compose a Message by mapping the link to the file from the step above, and click on ‘Save & Send Test Request’
When you click on Save & Send Test Request, the file uploaded to Google Drive will be shared on Google Chat.
The automation process is finished, and we have successfully integrated Google Drive with Google Chat. From now on, whenever you upload a new file to your Google Drive, it will be automatically shared with your team members through Google Chat.
You can copy this entire workflow by clicking this link.
Sign Up for a free Pabbly Connect account, and start automating your business
Subscribe to our Youtube Channel for more such automation
For any other queries, visit our forum