Automate your team's workflow by sending instant email notifications whenever a PDF is updated in a specific Google Drive folder. This guide walks you through configuring an automated alert system that extracts details from the file name, adjusts timezones, and emails your team—while ignoring updates made by your own support staff.
How the automation works
When a file is modified, the automation intercepts the event, checks who made the change, formats the file data, and dispatches an email.
flowchart TD
A["PDF Updated in Drive"] --> B{"Updated by Support?"}
B -- Yes --> C["Stop (Do nothing)"]
B -- No --> D["Extract Address from Filename"]
D --> E["Format Time to US/Eastern"]
E --> F["Send Email Notification"]Configuration steps
Follow these steps in your automation platform (such as Zapier) to recreate this workflow.
- 1
Set up the Google Drive trigger
First, configure your automation to watch for modified files in a specific folder.
Select Google Drive as the app and Updated File as the event.
Choose the specific drive or folder you want to monitor (e.g.,
Completed Sketches).Ensure you set the trigger to ignore deleted files so you only get alerted on actual updates.
- 2
Add a filter to prevent notification loops
You don't want to receive alerts when your own automated systems or support team updates a file.
Add a Filter step.
Set the condition to check the
lastModifyingUserName.Configure it so the workflow stops if the name exactly matches your internal account (e.g.,
HPS Client Services).
Filtering out your own service accounts prevents infinite loops where an automated system updates a file, triggering an email, which triggers another update, and so on.
- 3
Extract the address from the filename
Assuming your PDFs are named using the property address (e.g.,
123 Main St.pdf), you can extract just the address to use in your email subject line.Add a Formatter (Text) step.
Choose the Split Text transform option.
Use the file's
titleas the input.Set the separator to
.pdfand choose to return the First segment.
- 4
Format the timestamp
Google Drive outputs modification times in UTC. To make the email user-friendly, convert this to your local timezone.
Add a Formatter (Date/Time) step.
Select the
modifiedDatefrom step 1 as the input.Set the From Timezone to
UTC.Set the To Timezone to your local timezone (e.g.,
US/Eastern).Set the output format to
hh:mm:ss a(which will output something like02:30:45 PM).
- 5
Configure the email notification
Finally, map the formatted data into an email sent to your team.
Add a Gmail (or preferred email provider) step and select Send Email.
Configure the routing:
To:
team@yourcompany.comFrom:
orders@yourcompany.comReply-To:
orders@yourcompany.com
Map your formatted fields into the subject and body:
Field Value Subject Sketch Updated- {{Extracted Address}}Body This sketch was just updated in Drive at {{Formatted Time}}You can also append your standard HTML email signature in the body configuration to maintain brand consistency. Ensure your signature uses inline CSS for maximum compatibility across email clients.
Expected results
Once activated, any time a client or external user updates a PDF in the designated folder, your team will receive an email that looks like this:
Subject: Sketch Updated- 123 Main St
Body: This sketch was just updated in Drive at 04:15:30 PM
(Followed by your configured email signature)
If you notice the automation isn't triggering, verify that the file was actually updated (a new version uploaded or modified) rather than a completely new file being created. New file creations require a separate "New File" trigger.