Skip to content
FlowHubFluxonLab
B
AI Automationfree

Invoice data extraction with LlamaParse and OpenAI

by Jimleukadapted from n8n official workflow galleryUpdated Aug 2026
RequiresBBasic LLM ChainGmailGmailGoogle SheetsGoogle SheetsHTTP RequestHTTP RequestOpenAI ModelOpenAI ModelStructured Output ParserStructured Output Parser
Share Post Share
OpenAI ModelOPStructured Output ParserStructured Outp…HRUpload to LlamaParseUpload to Llama…Receiving InvoicesReceiving Invoi…Append to Reconciliation SheetAppend to Recon…HRGet Processing StatusGet Processing …WaWait to stay within service limitsWait to stay wi…SwIs Job Ready?Add "invoice synced" LabelAdd "invoice sy…HRGet Parsed Invoice DataGet Parsed Invo…SeMap OutputCLApply Data Extraction RulesApply Data Extr…IfShould Process Email?Should Process …SOSplit Out LabelsGet Labels NamesAgCombine Label NamesCombine Label N…MeEmail with Label NamesEmail with Labe…123456789101112131415161718
1/5
STEPS · 18
Starts on a Gmail event

This n8n workflow automates the process of parsing and extracting data from PDF invoices. With this workflow, accounts and finance people can realise huge time and cost savings in their busy schedules. Read the Blog: https://blog.n8n.io/how-to-extract-data-from-pdf-to-excel-spreadsheet-advance-parsing-with-n8n-io-and-llamaparse/ How it works This workflow will watch an email inbox for incoming invoices from suppliers It will download the attached PDFs and processing them through a third party service called LlamaParse. LlamaParse is specifically designed to handle and convert complex PDF data structures such as tables to markdown. Markdown is easily to process for LLM models and so the data extraction by our AI agent is more accurate and reliable. The workflow exports the extracted data from the AI agent to Google Sheets once the job complete. Requirements The criteria of the email trigger must be configured to capture emails with attachments. The gmail label "invoice synced" must be created before using this workflow. A LlamaIndex.ai account to use the LlamaParse service. An OpenAI account to use GPT for AI work.

Tags

n8nreference-onlychain-llmgmailgoogle-sheetslm-open-aioutput-parser-structured
Connects
BBasic LLM ChaingmailGmailsheetsGoogle SheetsWHTTP RequestopenaimodelOpenAI ModelstructuredoutputparserStructured Output Parser
CategoryAI Automation
Triggermanual
Complexityadvanced
Nodes17
AddedJul 9, 2024

Related workflows

See all AI Automation
BCgmail
free

Monitor Japanese business partners for registry changes with gBizINFO and Gemini

Quick Overview This workflow runs weekly to check Japanese business partners listed in Google Sheets against the gBizINFO corporate registry API, uses Google Gemini to assess the risk impact of detected changes, updates the stored partner snapshot, and escalates findings to Slack and Gmail based on materiality. How it works Runs every week on a schedule. Reads the partner list (including corporate numbers and last-known name/address) from Google Sheets. Queries the gBizINFO corporate registry API for each partner and posts a Slack message if the lookup fails. Compares the latest registry data to the stored snapshot to detect name, address, or closure/dissolution changes and continues only when changes are found. Sends the detected changes to Google Gemini to classify materiality (high/medium/low) with a short summary and recommended action, and posts a Slack message if the assessment fails. Updates the Google Sheets partner snapshot with the latest registry details so the change is recorded. Routes by materiality to notify Slack (medium/other), and for high materiality also posts a Slack alert and creates a Gmail draft requesting a credit review. Setup Create a Google Sheets spread

by Oka Hironobu
BCgmail
free

Match Japanese jGrants subsidies to your company with Gemini, Slack and Gmail

Quick Overview This workflow runs weekly to search the public jGrants API for open Japanese subsidies, scores each subsidy’s fit for your company using Google Gemini, logs results to Google Sheets, and notifies a Slack channel (and drafts a Gmail kickoff email) for strong matches. How it works Runs weekly on a schedule and loads your company profile details (industry, headcount, prefecture, investment plan, and search keyword). Calls the public jGrants subsidies API to retrieve currently accepting programs sorted by newest first, and posts to Slack if the search fails. Processes each returned subsidy individually and asks Google Gemini to produce a fit score, verdict (strong/possible/no), reasons, next steps, and a short summary. Normalizes the Gemini response into consistent fields, and posts to Slack if scoring fails for a subsidy. Upserts each scored subsidy into a Google Sheets tracker (keyed by subsidy ID) to avoid duplicates across weekly runs. Routes results by verdict: sends a detailed Slack alert and creates a Gmail draft for strong matches, posts a lightweight Slack message for possible matches, and flags unclear verdicts in Slack. Setup Add credentials for Google Gemini

by Oka Hironobu
BCgmail
free

Monitor overtime risk against Japanese labour caps with Gemini, Sheets, Slack & Gmail

Quick Overview This workflow runs weekly to read attendance overtime from Google Sheets, totals it per employee and month, uses Google Gemini to classify risk against Japanese labour-law limits, writes results back to Sheets, and escalates high-risk cases via Slack and a Gmail draft. How it works Runs every week on a schedule. Loads configured Japanese overtime limits and fetches raw attendance rows from a Google Sheets “Attendance” worksheet. Aggregates overtime hours per employee per month. Sends each employee-month total to Google Gemini, which returns a structured risk level (over/approaching/ok) plus a short summary and recommended manager actions. Stores or updates the assessment in a Google Sheets “Overtime Status” worksheet keyed by employee and month. Posts to Slack when overtime is over the cap (and drafts a manager notice in Gmail), posts an early-warning Slack message when approaching the cap, and flags unclear or failed assessments to Slack for manual review. Setup Add credentials for Google Sheets OAuth, Google Gemini (PaLM) API, Slack OAuth2, and Gmail OAuth2. Create a Google Sheets spreadsheet with an “Attendance” sheet containing Employee (or Name), Month (or Date)

by Oka Hironobu