Automate document intake

An automation watches your Gmail inbox or a Google Drive folder. Each file that arrives is filed on its case, and a template can read it, so nobody downloads, uploads, or types.

Automations
Updated 2 min read

You tell it what to watch, which mailbox the case goes to, and which template reads the file.

Fig. 01A file arrives by Gmail, Google Drive, or upload. The automation runs the template on it and files it in its case.

Build an automation

Automations open on Pro (Plans & limits). They read your own Gmail or Google Drive, connected in Settings under Account. Saved before that, one waits, paused, until you connect.

  1. Open Automations in the sidebar and click the + beside it.
  2. Describe it under Describe this automation and click Build with AI; the assistant asks you to confirm. Or by hand:
  3. Open Gmail trigger and fill in Subject contains or Sender contains. Every filled filter must match. Click Done.
  4. Open Mailbox routing. Pick the Mailbox new cases go to and name the File category the files get. Click Done.
  5. To have a template read each file, click Add step, choose Extraction, and pick the Template.
  6. Click Save.
A new automation: the Describe this automation box with Build with AI, then the flow with a Gmail trigger, Mailbox routing, and Add step.
Fig. 02A new automation. Describe it for the AI, or set it up by hand below.

Two automations can't share a name or watch the same thing; Save says so. Mail from before you saved: Run on past emails (Manage automations).

Where each file goes

The ID decides. With an Extraction step, the template reads it off the file, such as an invoice number.

  • A known ID joins its case. A new ID starts one.
  • No ID, or no Extraction step: each email starts its own case, marked auto. Add an ID field to the template to change that.
  • A file already on its case is skipped.
Fig. 03The automation reads the ID off each file and files it on the case with that ID.

The Extraction step's Routing line says where the ID is read from: the file, or the email's Subject line, Sender address, or Message body (Fields & value sources).

The Extraction step open: Template set to Invoice, the Routing line reading Files route by Invoice number, read from each incoming file, and the From the email panel.
Fig. 04The Extraction step names the template and says what decides the case.

What you hear about

The bell rings for a new case, and for a file that could not be processed. Reading a file spends AI tokens; with none left, the file is saved but not read.

Fig. 05A new case rings the bell. So does a file the automation could not process.
We use cookies to keep you signed in and improve the app. See our Cookie Policy.
Manage preferences