Contents

Drive Trigger

drive_trigger · Nodes · Google · Trigger

Starts a workflow from Google Drive events.

Google Drive Trigger#

Overview#

Starts a workflow when Google Drive files change under the configured filters.

This node appears in the google catalog category because that is the provider grouping. It is a trigger through node metadata. It has no input sockets and emits one event on the output socket.

The output is file metadata only. File bytes are not included.

Configuration#

Field Description
connection Google OAuth connection holding drive.metadata.readonly or the full drive scope.
folder_id Optional Drive folder ID to watch.
mime_type Optional MIME type filter.

Output#

Socket: output

On success, the output remains the existing Drive event data shape:

Field Type Description
file_id string Google Drive file ID.
name string File name.
mime_type string File MIME type.
modified_at string RFC3339 modified timestamp.
created_at string RFC3339 created timestamp.
size number | null File size in bytes when available.
parents string[] Parent folder IDs.
web_view_link string | null Google Drive web view URL when available.

Runtime Errors and Notes#

  • Polling runs periodically, so delivery can lag Drive changes.
  • Each changed file starts one run, in the order Google Drive reported them, including changes that arrive while earlier runs are still going.
  • First subscription initializes a durable checkpoint and does not emit existing historical files.
  • Later polls use a durable high-watermark checkpoint. The Google query includes a small overlap, then the trigger emits only files with modified_at greater than the stored checkpoint.
  • Empty polls do not advance the high-watermark.
  • Delivery can be at-least-once; dedupe by file_id and modified_at when needed.
  • Invalid or missing Google connections prevent subscription.
  • Missing Drive scopes cause Google API authorization errors.
  • Incorrect folder_id or mime_type filters can produce no events.
  • Polling and authorization errors start a workflow execution that fails at the trigger node through the normal workflow error pipeline.

Inputs

None.

Outputs

  • output

Configuration

FieldTypeRequiredDescription
connectionconnection(google)YesGoogle connection to use
folder_idstringNoDrive folder ID to watch (empty = root)
mime_typestringNoMIME type filter (e.g., 'application/pdf', 'application/vnd.google-apps.document')
base_configrecordNoShared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow).