# Extract purchase orders from PDFs with Google Sheets: n8n workflow

> Started by someone submitting a form, and works across Google Drive and Google Sheets. 15 steps, 2 branches, 1 loop or waits: a working afternoon to...

Source: https://millionrounds.com/workflow/extract-purchase-orders-from-pdfs-with-google-sheets (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [E-commerce](https://millionrounds.com/workflows?category=E-commerce#library)

# Extract purchase orders from PDFs with Google Sheets

Started by someone submitting a form, and works across Google Drive and Google Sheets. 15 steps, 2 branches, 1 loop or waits: a working afternoon to understand properly.

Medium

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fextract-purchase-orders-from-pdfs-with-google-sheets)

**15 steps** Medium: a working afternoon

**2** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Logic 9 Service 5

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

- 1 **On form submission** Form trigger *Starts it*
- 2 **Read: Existing POs** Google Sheets *Service*
- 3 **Prepare: Split PDFs** Code *Logic*
- 4 **Loop Over Items** Split In Batches *Logic*
- 5 **Build: Flag Summary** Code *Logic*
- 6 **Extract: PO Data** Easybits Extractor *Service*
- 7 **Form: Completion** Form *Service*
- 8 **Check: Duplicate PO** Code *Logic*
- 9 **IF: EDI Enabled?** If *Logic*
- 10 **IF: New PO?** If *Logic*
- 11 **Build: PO Object** Code *Logic*
- 12 **Build: Article Rows** Code *Logic*
- 13 **Call 'Purchase Order Extractor Workflow – Generate EDI 850'** Execute Workflow *Logic*
- 14 **Append: PO Rows to Sheet** Google Sheets *Service*
- 15 **Google Drive: Upload** Google Drive *Service*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 15, with 2 branches, 1 loop 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 someone submitting a form.

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. 15 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 15 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%2Fextract-purchase-orders-from-pdfs-with-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 e-commerce, with the same services where possible, closest in size first.

- [**Automated Shopify abandoned cart recovery with Google Sheets** 15 steps · Google Sheets](https://millionrounds.com/workflow/automated-shopify-abandoned-cart-recovery-with-google-sheets)
- [**Log ecommerce orders, send Slack alerts** 15 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/log-ecommerce-orders-send-slack-alerts)
- [**Send WooCommerce cross-sell offers to customers with WhatsApp** 15 steps · Google Sheets, WooCommerce](https://millionrounds.com/workflow/send-woocommerce-cross-sell-offers-to-customers-with-whatsap)
- [**Automated OCR for orders (PDF/Images) with OpenAI** 15 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automated-ocr-for-orders-pdf-images-with-openai)
- [**Generating SEO-optimized product descriptions** 15 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/generating-seo-optimized-product-descriptions)
- [**Send WhatsApp new product campaigns from WooCommerce** 15 steps · calls a model · Google Sheets, WooCommerce](https://millionrounds.com/workflow/send-whatsapp-new-product-campaigns-from-woocommerce)
