docs/en/enterprise/guides/google-drive-trigger.mdx
Trigger your automations when files are created, updated, or removed in Google Drive. Typical workflows include summarizing newly uploaded content, enforcing sharing policies, or notifying owners when critical files change.
<Tip> Connect Google Drive in **Tools & Integrations** and confirm the trigger is enabled for the automation you want to monitor. </Tip>The drive example crews parse the payload to extract file metadata, evaluate permissions, and publish a summary.
from drive_file_crew import GoogleDriveFileTrigger
crew = GoogleDriveFileTrigger().crew()
crew.kickoff({
"crewai_trigger_payload": drive_payload,
})
Test your Google Drive trigger integration locally using the CrewAI CLI:
# View all available triggers
crewai triggers list
# Simulate a Google Drive trigger with realistic payload
crewai triggers run google_drive/file_changed
The crewai triggers run command will execute your crew with a complete Drive payload, allowing you to test your parsing logic before deployment.
Track history and performance of triggered runs with the Executions list in the deployment dashboard.
<Frame> </Frame>crewai triggers run google_drive/file_changed to see the exact payload structurecrewai triggers run (not crewai run) to simulate trigger execution