Skip to content
Notis

Review the context behind new Drive shares

When access changes, bring the shared file's relevant context into a structured review.

Trigger

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.

Action

Query Data

Tool to query structured data as json from a web page using an agentql query or natural language prompt. use after defining your query or prompt and a url or html.

Why this helps

A new share can be easy to overlook when access changes arrive among other work.

  • Make access changes easier to review
  • Bring relevant file context into the report
  • Prompt timely follow-up on newly shared files

Setup

Build it in a few focused steps.

  • 1Connect Google Drive and AgentQL once in the Notis portal.
  • 2Create an automation and name it for permission reviews.
  • 3In one instruction, tell Notis what file context to query when new permissions are granted.
  • 4Pick the Google Drive File Shared trigger and choose where run reports go.
  • 5Test with one real file sharing change.

Questions about this workflow

What does the Drive trigger detect?

It triggers when new sharing permissions are granted to a file or folder.

Can this determine whether a share is appropriate?

The workflow can retrieve context you specify, but it cannot infer your access policy unless you provide the criteria.

When this happens · Trigger

Do this · Action

Supported Triggers and Actions

Notis builds workflows that link Google Drive to Agentql. A trigger fires from one place; an action lands in another.

Google Drive triggers

Agentql actions

Recurring trigger

Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.

TriggerScheduled

Get Usage Details

Tool to retrieve subscription usage details for the current api key, including usage limits and billing period. use after confirming api connection is valid.

ActionInstant

Webhook trigger

Notis starts this workflow when an external tool or custom backend sends an HTTP request.

TriggerInstant

Query Data

Tool to query structured data as json from a web page using an agentql query or natural language prompt. use after defining your query or prompt and a url or html.

ActionInstant

Comment Added (Docs/Sheets/Slides)

Triggers when a new comment is added to Google Docs, Sheets, or Slides.

TriggerPolling

Create Remote Browser Session

Tool to create a remote browser session. use when you need to run browser automation on remote infrastructure.

ActionInstant

File Created

Triggers when a new file is created in Google Drive.

TriggerPolling

File Deleted or Trashed

Triggers when a file is moved to trash or permanently deleted in Drive.

TriggerPolling

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.

TriggerPolling

File Updated

Triggers when a file's metadata or content changes in Google Drive.

TriggerPolling

Google Drive Changes

Triggers when changes are detected in a Google Drive.

TriggerPolling

Connect any two apps with Notis in the middle.

Google Drive and Agentql, 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 Agentql.