Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Email Automation

Email Automation

Process and forecast AP invoices from Gmail with OpenAI and Google Sheets

When a new email arrives, it handles email with OpenAI / ChatGPT using Gmail, Google Sheets.

What it does

## 🧾 What this does A complete accounts-payable pipeline: capture invoice emails, extract and categorize them with OpenAI, log to Google Sheets, forecast cash flow, send prioritized alerts, and email a weekly digest. ## ⚙️ How it works 1. Gmail trigger + PDF text extraction. 2. OpenAI extracts fields and an expense category; High-value invoices are flagged. 3. Logged to Google Sheets; month-to-date spend and upcoming payments are calculated. 4. High-value invoices trigger an approval alert; others a standard notice. 5. A weekly schedule emails an AP digest. ## 🚀 Setup steps 1. Connect Gmail, OpenAI, and Google Sheets credentials. 2. In both Google Sheets nodes, pick your spreadsheet + tab. Header row: vendor, invoice_number, invoice_date, due_date, currency, total_amount, tax_amount, category, priority, summary, email_from, received_at. 3. In the three email nodes, set your finance/AP team address. 4. Adjust the High-value threshold in 'Prepare & Prioritize' (default 1000). 5. Activate the workflow. ## 🛠️ Customize Edit the category list or fields in the AI node, change the schedule, or tweak the alert thresholds and messages.

The steps

  1. When New Invoice Email Arrives
  2. Extract Text from PDF Invoice
  3. AI Extract & Categorize Invoice
  4. OpenAI GPT-5 Invoice Analysis
  5. Prepare & Prioritize
  6. Append Invoice to Google Sheets
  7. Read Logged Invoices
  8. Calculate Cash Flow
  9. High-Value Invoice?
  10. Email High-Value Alert
  11. Email Invoice Logged
  12. Weekly Monday 9am
  13. Read All Invoices
  14. Build Weekly Digest

15 steps in total.

Similar automations