Skip to main content

Quick Overview

Set up a central document processing hub that:
  • Receives documents via a dedicated email inbox
  • Identifies document types automatically (invoices, contracts, forms, etc.)
  • Extracts key information based on document type
  • Logs data to organized spreadsheets for easy access
  • Notifies relevant teams when action is needed
Build it once and process hundreds of documents daily without manual data entry. You can use the document processing template to get started.

Setting Up Your Document Hub

Step 1: Create Your Document Inbox

Set up a dedicated email address to serve as the central entry point for all documents requiring processing.
Gmail setup for document processing
  1. Set up a dedicated Gmail account (e.g., docs@yourcompany.com)
  2. Configure Gmail – Email Received as your trigger
  3. Add filter: “Has attachment” = Yes
  4. Share this email with teams who need document processing

Step 2: Identify Document Type

Automatically classify incoming documents to determine the appropriate processing workflow for each type.
AI document classification
Add AI Agent with prompt:
The AI Agent automatically has attachments from email in context.

Step 3: Route to Correct Document Processing

Use conditional routing based on the document classification to send each document type down the appropriate processing path.
Conditional routing based on document type
Add Condition nodes to route based on document type:
  • If type = “INVOICE” → Invoice processing branch
  • If type = “CONTRACT” → Contract processing branch
  • If type = “RECEIPT” → Receipt processing branch
  • If type = “OTHER” → General document processing branch
This ensures each document gets the specialized treatment it needs.

Step 4: Extract Specific Type Data for Those Categories

Pull out the relevant information fields based on the document type with specialized AI agents for each category.
Type-specific data extraction
Edit the prompts and attributes to match your documents. For best results you would also prompt the model to leave items not identified as “N/A” or blank.
For INVOICE branch:
For CONTRACT branch:
For RECEIPT branch:
For OTHER branch:

Step 5: Log to an Appropriate Spreadsheet

Organize extracted data into your preferred system — spreadsheets are just the starting point.
Data logging and integration options
Make sure the fields you are logging match the attributes extracted in the previous step.
Basic Option: Use Google Sheets – Append Row to log data by document type. Advanced Integrations: You can post this information anywhere using:
  • HTTP Request actions to send data to your ERP, CRM, or custom databases
  • Direct integrations with Airtable, Notion, or other platforms
  • Webhook endpoints for real-time processing
  • API calls to accounting software like QuickBooks or Xero
Spreadsheets are just a foundation — the real power comes from connecting to your existing systems.

Advanced Features

Best Practices

Focus on the documents that eat the most time — usually invoices and receipts.
Standardize how documents are named and filed from day one.
Route failed extractions to a manual review queue rather than losing them.
Spot-check 10% of processed documents weekly to refine extraction prompts.

Next Steps

Invoice Processing

Deep dive into AP automation

Agent Steps

Build intelligent document analysis workflows

Knowledge Base

Store extracted document data

Human in the Loop

Add approval steps for critical documents