# Auto-parse PDFs clean rows in Google Sheets: n8n workflow

> Started by an event in a connected app, and works across Google Drive and Google Sheets. 18 steps, 2 branches, 2 loops or waits: a working afternoon to...

Source: https://millionrounds.com/workflow/auto-parse-pdfs-clean-rows-in-google-sheets (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Data collection](https://millionrounds.com/workflows?category=Data+collection#library)

# Auto-parse PDFs clean rows in Google Sheets

Started by an event in a connected app, and works across Google Drive and Google Sheets. 18 steps, 2 branches, 2 loops or waits: a working afternoon to understand properly.

Medium

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fauto-parse-pdfs-clean-rows-in-google-sheets)

**18 steps** Medium: a working afternoon

**2** Branches: places the flow splits

**2** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Logic 11 Service 6

The steps in the order they run, from what starts it.

- 1 **Google Drive Trigger (Invoices Folder)** Google Drive trigger *Starts it*
- 2 **Loop Over Items** Split In Batches *Logic*
- 3 **Google Drive, Download PDF** Google Drive *Service*
- 4 **IF, PDF Only** If *Logic*
- 5 **LlamaParse, Upload** Http Request *Service*
- 6 **Wait, Processing** Wait *Logic*
- 7 **Stop and Error** Stop And Error *Logic*
- 8 **HTTP Request, Poll Status** Http Request *Service*
- 9 **Switch** Switch *Logic*
- 10 **Stop and Error1** Stop And Error *Logic*
- 11 **HTTP Request, Poll Status1** Http Request *Service*
- 12 **Stop and Error4** Stop And Error *Logic*
- 13 **Code in JavaScript** Code *Logic*
- 14 **Stop and Error2** Stop And Error *Logic*
- 15 **OpenAI, Normalize JSON** Http Request *Service*
- 16 **Code, Explode to Rows** Code *Logic*
- 17 **Stop and Error3** Stop And Error *Logic*
- 18 **Google Sheets, Append Rows** Google Sheets *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 18, with 2 branches, 2 loops or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Google Drive, Google Sheets
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Google Drive and Google Sheets accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 18 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 18 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fauto-parse-pdfs-clean-rows-in-google-sheets)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**CYBERPULSE AI GRC: automate PCI DSS control evaluation** 18 steps · Google Sheets](https://millionrounds.com/workflow/cyberpulse-ai-grc-automate-pci-dss-control-evaluation)
- [**Check phishing URL reputation with VirusTotal** 18 steps · Google Sheets](https://millionrounds.com/workflow/check-phishing-url-reputation-with-virustotal)
- [**Custom pomodoro tracker with Telegram and Google Sheet** 18 steps · Google Sheets, Telegram](https://millionrounds.com/workflow/custom-pomodoro-tracker-with-telegram-and-google-sheet)
- [**Draft and track regulatory digests from RSS feeds** 18 steps · Email, Google Sheets](https://millionrounds.com/workflow/draft-and-track-regulatory-digests-from-rss-feeds)
- [**Draft weekly security RSS digests with Google Sheets and SMTP** 18 steps · Email, Google Sheets](https://millionrounds.com/workflow/draft-weekly-security-rss-digests-with-google-sheets-and-smt)
- [**Get new ranked Google AI Overview keywords with DataForSEO** 18 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/get-new-ranked-google-ai-overview-keywords-with-dataforseo)
