# Extract Amazon invoice data with Airtop and OpenAI: n8n workflow

> Started by a clock, and works across Google Drive and Google Sheets. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/extract-amazon-invoice-data-with-airtop-and-openai (Millionrounds; every figure on the page links to its filing or article)

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

# Extract Amazon invoice data with Airtop and OpenAI

Started by a clock, and works across Google Drive and Google Sheets. It hands the judgement calls to OpenAI. 25 steps, 1 branch, 3 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fextract-amazon-invoice-data-with-airtop-and-openai)

**25 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**3** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 5 Logic 9 Service 10

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

- 1 **Output Parser - Invoice fields** Output Parser Structured *Model*
- 2 **Chat model** Lm Chat Open Ai *Model*
- 3 **Run every night** Schedule trigger *Starts it*
- 4 **Auto-fixing Output Parser** Output Parser Autofixing *Model*
- 5 **Read the invoice image** Agent *Model*
- 6 **Structure the invoice data** Agent *Model*
- 7 **Get invoice links from sheet** Google Sheets *Service*
- 8 **Add invoice data to sheet** Google Sheets *Service*
- 9 **Keep only today's rows** Filter *Logic*
- 10 **Close browser session** Airtop *Service*
- 11 **Loop over invoices** Split In Batches *Logic*
- 12 **Start browser session** Airtop *Service*
- 13 **Open the invoice page** Airtop *Service*
- 14 **Wait for page to load** Wait *Logic*
- 15 **Zoom out to fit the page** Airtop *Service*
- 16 **Wait for zoom to apply** Wait *Logic*
- 17 **Screenshot the invoice** Airtop *Service*
- 18 **Is it a PDF or an image?** If *Logic*
- 19 **Combine file and folder** Merge *Logic*
- 20 **Find this month folder in Drive** Google Drive *Service*
- 21 **Upload invoice to Drive** Google Drive *Service*
- 22 **Pick the month folder** Code *Logic*
- 23 **Download invoice back** Google Drive *Service*
- 24 **Combine file and links** Merge *Logic*
- 25 **Build Drive links** Code *Logic*

## How it's built

- **Starts on:** A clock
- **Steps:** 25, with 1 branch, 3 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Drive, Google Sheets
- **Model:** OpenAI

## Questions

What does it need to run?

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

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 25 steps it is large: read it before trusting it with anything live.

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 25 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-amazon-invoice-data-with-airtop-and-openai)
- **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 money admin, with the same services where possible, closest in size first.

- [**Automated template delivery system with Stripe and Gmail** 25 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automated-template-delivery-system-with-stripe-and-gmail)
- [**Create AI proposals from Fireflies transcripts with OpenAI** 25 steps · calls a model · Gmail, Google Docs](https://millionrounds.com/workflow/create-ai-proposals-from-fireflies-transcripts-with-openai)
- [**Create cinematic quote videos with Gemini** 25 steps · calls a model · Google Cloud Storage, Google Sheets](https://millionrounds.com/workflow/create-cinematic-quote-videos-with-gemini)
- [**Invoice processing with Slack** 25 steps · calls a model · Google Drive, Slack](https://millionrounds.com/workflow/invoice-processing-with-slack)
- [**Track receipt expenses from Telegram with Gemini** 25 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/track-receipt-expenses-from-telegram-with-gemini)
- [**Generate and track invoices with HubSpot and Gmail** 25 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/generate-and-track-invoices-with-hubspot-and-gmail)
