Check postal-code air quality for matching files
Turn a location-specific Drive query into a timely local air quality check.
Trigger
New File Matching Query
Triggers when a new Google Drive file matches a provided query. This is the legacy query-centric trigger: it preserves Drive API query config such as ``corpora`` / ``driveId`` aliases and emits the historical ``file_matching_query`` event type. ``FileCreatedTrigger`` covers the broader "new file" case and emits ``file_created``.
Action
Get Air Quality by Postal Code
Tool to retrieve real-time air quality data for a specific postal code and country. use when you need hyper-local air quality insights by postal code.
Why this helps
Important location files can be hard to spot in a busy Drive, and checking each postal code manually adds another interruption.
- Use the postal code and country present in a matching file.
- Report when either location detail is missing instead of assuming it.
- Keep checks tied to the files already surfaced by your Drive query.
Setup
Build it in a few focused steps.
- 1Connect Google Drive and Ambee once in the Notis portal.
- 2Create an automation in Automations, New Automation, and give it a clear name.
- 3Tell Notis to read the postal code and country from each matching file, retrieve current air quality, and report the result or missing details.
- 4Choose the New File Matching Query trigger and select where run reports should go.
- 5Test with one real matching file that contains a postal code and country.
Questions about this workflow
Can the automation infer a country from a postal code?
It should use a country explicitly available in the file or user-provided context. Postal codes can overlap across countries.
Does this trigger apply to existing matching files?
The listed trigger is for a new file matching the provided Drive query.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Google Drive to Ambee. A trigger fires from one place; an action lands in another.
Google Drive triggers
Ambee actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Get Air Quality by City
Tool to retrieve real-time air quality data for a specific city. use when you have a valid city name and need current aqi and pollutant levels.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Get Air Quality by Latitude and Longitude
Tool to retrieve real-time air quality data for a specific latitude and longitude. use when you need hyper-local air quality readings for given coordinates.
Comment Added (Docs/Sheets/Slides)
Triggers when a new comment is added to Google Docs, Sheets, or Slides.
Get Air Quality Forecast by Latitude and Longitude
Tool to retrieve air quality forecast for a specific latitude and longitude. use when you need predicted air quality data up to 48 hours in advance based on geographic coordinates.
File Created
Triggers when a new file is created in Google Drive.
Get Wildfire Risk Forecast by Place
Tool to retrieve wildfire risk forecast for a specific place. use when you need weekly wildfire risk predictions for a location over the next four weeks.
File Deleted or Trashed
Triggers when a file is moved to trash or permanently deleted in Drive.
Geocode by Place
Tool to transform a place name or address into geographic coordinates. use after confirming the location name to get precise latitude and longitude.
File Shared (Permissions Added)
Triggers when new sharing permissions are granted to a file or folder. Uses Drive's `changes.list` endpoint with inline `permissions` in the `fields` mask so each change carries the file's current permission set provider-atomically. We diff that against `seen_permission_keys` to identify newly added grants. Drive page tokens are the primary cursor; if Drive rejects a stored token, the trigger raises `PollingTriggerError` without clearing state rather than silently re-baselining and dropping events. Limitation: truly ephemeral permissions (added and revoked between two polls without any other file modification in between) are not detected. Drive Activity API would catch those but requires an additional OAuth scope and a different payload contract.
Get Air Quality by City
Tool to retrieve real-time air quality data for a specific city. use after obtaining a valid city name when current aqi and pollutant levels are needed.
File Updated
Triggers when a file's metadata or content changes in Google Drive.
Get Air Quality by Country Code
Tool to retrieve real-time air quality data for a specific country using a 3-letter iso code. use after acquiring the country code and when you want a national overview of air quality.
Google Drive Changes
Triggers when changes are detected in a Google Drive.
Get Air Quality by Latitude and Longitude
Tool to retrieve real-time air quality data for a specific latitude and longitude. use when you need hyper-local air quality readings for given coordinates.
Connect any two apps with Notis in the middle.
Google Drive and Ambee, or any other combination from 1,000+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business Ambee.