Extract Amazon invoice data with Airtop, OpenAI, and Google Sheets

Go to Workflow
0 views
Built by isaWOW isaWOW
Created on August 24, 2026

Description

Quick overview
This workflow runs nightly, reads today’s Amazon invoice URLs from Google Sheets, captures each invoice in an Airtop cloud browser, stores the screenshot in Google Drive, uses OpenAI to extract invoice fields from the image, and appends the structured results to a month-named sheet tab.

How it works
Runs every night on a schedule.
Reads invoice-link rows from Google Sheets and keeps only rows whose Date value matches today.
Processes invoices one at a time by opening each Invoice URL in an Airtop cloud browser session, zooming the page, and taking a screenshot.
Finds the current month’s folder in Google Drive, uploads the screenshot, downloads it back, and builds shareable file and folder links.
Uses OpenAI to read the invoice image and then converts the extracted content into strict structured JSON with an auto-fixing parser.
Appends the extracted invoice fields and Google Drive links to a Google Sheets tab named for the current month, then closes the Airtop browser session.

Setup
Add credentials for Airtop, OpenAI, Google Sheets, and Google Drive.
Update the Google Sheets document ID and ensure the source tab contains columns named “Invoice URL ” (including the trailing space) and “Date” formatted like “DD Mon YYYY” (en-GB).
Set your Airtop browser profile name and make sure that profile is already logged into Amazon so the invoice pages can load.
Set the Google Drive target drive/shared drive ID and create/find monthly folders named in the format YYYY-MM so the workflow can file invoices into the current month’s folder.
Ensure your destination Google Sheet has (or can accept) the output columns used when appending to the month-named tab (for example Company Name, Invoice Number, taxes, totals, PDF URL, and Drive Link).

Nodes Used (8)

AI Agent
@n8n/n8n-nodes-langchain.agent
Airtop
n8n-nodes-base.airtop
Auto-fixing Output Parser
@n8n/n8n-nodes-langchain.outputParserAutofixing
Code
n8n-nodes-base.code
Google Drive
n8n-nodes-base.googleDrive
Google Sheets
n8n-nodes-base.googleSheets
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured