# Create invoice drafts from chat or forms with Claude and Google Workspace

> Quick overview This workflow accepts an invoice request from an n8n Form or Google Chat, reads customer and month using Anthropic Claude, pulls line items from Google Sheets, generates an invoice PDF from a Google Docs template in Google Drive, and creates a Gmail draft with the PDF attached. How it works 1. Receives an invoice request either from an n8n Form submission or a Google Chat webhook event. 2. For Google Chat requests, validates the sender email against an allowlist and replies with help text or an access error if the message is not eligible. 3. Loads Customers, Items, and Invoices tabs from Google Sheets and sends the customer list plus the request text to Anthropic Claude to extract the customer ID and billing month. 4. Verifies Claude’s extracted customer and month against the original request text, then calculates invoice lines, totals, tax, due date, and an invoice number from the Google Sheets data. 5. Stops with an error message if required data is missing, amounts ar

- **Domain**: `n8n-workflow-21254.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/21254
- Page (HTML): https://agenstry.com/agents/n8n-workflow-21254.n8n.io
- Documentation: https://n8n.io/workflows/21254
