Automate Google Drive with TypeScript

Create, search, upload, download, organize, share, and discuss Drive files. Trigger automations from file, permission, comment, reply, approval, and access-proposal events.

route-drive-files.automation.ts
import { automation } from "automate.ax"
import { googleDrive } from "automate.ax/google-drive"

export default automation("Route new Drive files", () => {
  const file = googleDrive.onFileCreated({
    resource: "incoming-folder-id",
    includeDescendants: true,
  })

  googleDrive.moveFile({ fileId: file.fileId, addParentIds: ["review-folder-id"] })
})

What you can do

Actions

  • Create, upload, download, export, copy, move, and delete files
  • Search My Drive and shared drives
  • Manage permissions, comments, and replies
  • Create and administer shared drives

Triggers

  • Any supported event on a file, folder, or shared drive
  • File creation, movement, edits, rename, trash, and deletion
  • Permission, comment, and reply changes
  • Approval and access-proposal activity

Start automating with Google Drive today

Start building