# Process Gmail invoices into QuickBooks bills with Gemini, Slack and Sheets

> Quick overview Youtube Video: https://youtu.be/yiyI6JqCE4 This workflow monitors Gmail for unread emails with PDF, uses Gemini (Decisions API + Gemini chat) to classify and extract invoice data, routes uncertain cases to Slack for approval, creates vendors and bills in QuickBooks, syncs vendor contacts to HighLevel, and logs processed invoice to Sheets. How it works 1. Triggers every 5 minutes when an unread Gmail message arrives and downloads its attachments. 2. Checks for a PDF attachment, extracts text from the PDF, hashes the extracted text, and posts a Slack alert if no readable text is found. 3. Sends the email context and extracted text to the Google Gemini Decisions API to score whether it is a real invoice and posts a Slack alert if the probability is between 30% and 70%. 4. For invoices with at least 70% probability, uses Google Gemini to extract structured invoice fields and line items into a defined JSON schema. 5. Looks up the invoice number and vendor name in a Google She

- **Domain**: `n8n-workflow-23192.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/23192
- Page (HTML): https://agenstry.com/agents/n8n-workflow-23192.n8n.io
- Documentation: https://n8n.io/workflows/23192
