Verify tax IDs in PDF uploads with Groq, Google Sheets, Lovable, and Gmail
Ready for 3.0What this workflow does
This workflow has 27 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Sheets and Gmail. It also calls api.groq.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Normalize Lovable Payload (Code): runs custom JavaScript code
- Filename Duplicate Check (Code): runs custom JavaScript code
- Sheets — Lookup Verification Log (Google Sheets): uses Google Sheets
- Duplicate Decision (Code): runs custom JavaScript code
- Switch: routes items into 2 branches
- Return Cached Result (Code): runs custom JavaScript code
- Extract PDF Text Layer (Code): runs custom JavaScript code
- Duplicate found (Respond to Webhook): sends the response back to the webhook caller
- Groq — Parse PDF Tax Document (HTTP Request): calls api.groq.com (POST)
- Parse Groq Extract Response (Code): runs custom JavaScript code
…plus 16 more steps. See the full node list below.
Services it uses
HTTP calls to: api.groq.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Switch
n8n-nodes-base.switch - Webhook
n8n-nodes-base.webhook - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Gmail
n8n-nodes-base.gmail
From the author
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…