# Verify tax IDs in PDF uploads with Groq, Google Sheets, Lovable, and Gmail

> Quick overview This workflow receives tax document PDFs from a Lovable form webhook, extracts and parses the Tax ID with Groq, validates and matches it against a Google Sheets “TaxIDDatabase,” logs results to Google Sheets, emails the submitter via Gmail, and returns a JSON verdict back to Lovable. How it works 1. Receives a POST webhook from Lovable containing a base64-encoded PDF and submitter metadata. 2. Generates a request ID, normalizes the incoming fields, and checks Google Sheets “VerificationLog” for a recent run with the same filename to return a cached duplicate result. 3. If not a duplicate, extracts readable text from the PDF payload and sends it to Groq (OpenAI-compatible chat completions) to parse the tax ID and document details as JSON. 4. If no tax ID is extracted, immediately returns a JSON error response to Lovable indicating that no tax ID was found. 5. Validates and normalizes the extracted tax ID format, then looks it up in the Google Sheets “TaxIDDatabase” to det

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