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
- When New Invoice Email Arrives
- Extract Text from PDF Invoice
- AI Extract & Categorize Invoice
- OpenAI GPT-5 Invoice Analysis
- Prepare & Prioritize
- Append Invoice to Google Sheets
- Read Logged Invoices
- Calculate Cash Flow
- High-Value Invoice?
- Email High-Value Alert
- Email Invoice Logged
- Weekly Monday 9am
- Read All Invoices
- Build Weekly Digest
15 steps in total.
Similar automations
Finance, Invoices & AccountingForecast cash position from bank, invoice and payment schedule APIs11 stepsReports, Analytics & DashboardsForecast Restaurant Sales and Inventory with Gemini9 stepsReports, Analytics & DashboardsForecast Restaurant Food Waste Daily with Gemini12 stepsRAG & Knowledge BasesForecast Inventory Restocking with Claude RAG10 steps