Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Documents, PDF & OCR

Documents, PDF & OCR

Extract PDF invoice data from Gmail with Cradl AI into Google Sheets

Imports invoice emails from Gmail, extracts their fields with Cradl AI using human review, and writes the results to Google Sheets when new mail arrives.

What it does

### How it works 1. Invoices are imported from GMail 2. Data is extracted with Cradl AI 3. The extracted data is then written to Google Sheets ### Setup * Cradl AI action. Click here to create a free Cradl AI account. Choose _n8n_ when prompted for integrations, then follow the setup instructions in the node. * GMail trigger. Connect with GMail and customize email filters. For example, if you have a shared mailbox where you receive inboxes you may want to add to:invoices@mycompany.com to the _Search filter_ parameter. * Google Sheets action. Connect your credentials and map the extracted fields from the Cradl AI output to Google Sheets. ### Customize * The fields that are extracted can be easily customized by logging into your Cradl AI account and updating your agent definition. * Validation rules and reviewers (e.g. from your accounting team) can be added as human-in-the-loop validators directly in your Cradl AI account. ### Tutorial @youtube

The steps

  1. Gmail Trigger
  2. Filter PDF attachments
  3. Add invoice line to Google Sheets
  4. Mark a message as read
  5. Extract invoice details with AI
  6. Split out each invoice line

Similar automations