Library / Documents, PDF & OCR
Documents, PDF & OCR
Extract Gmail PDF Invoices with LlamaParse and OpenAI
When an invoice email with a PDF arrives in Gmail, LlamaParse and OpenAI extract the data and append it to a reconciliation sheet in Google Sheets.
What it does
## Try Me Out! This workflow does the following: * Waits for email invoices with PDF attachments. * Uses the LlamaParse service to convert the invoice PDF into a markdown file. * Uses a LLM to extract invoice data from the Markdown file. * Exports the extracted data to a Google Sheet. ### Follow along with the blog here {{ $env.WEBHOOK_URL }} ### Good to know * You'll need to create the label "invoice synced" in gmail before using this workflow. ### Need Help? Join the [Discord]({{ $env.WEBHOOK_URL }} or ask in the [Forum]({{ $env.WEBHOOK_URL }} Happy Hacking!
The steps
- OpenAI Model
- Structured Output Parser
- Upload to LlamaParse
- Receiving Invoices
- Append to Reconciliation Sheet
- Get Processing Status
- Wait to stay within service limits
- Is Job Ready?
- Add "invoice synced" Label
- Get Parsed Invoice Data
- Map Output
- Apply Data Extraction Rules
- Should Process Email?
- Split Out Labels
47 steps in total.
Similar automations
Finance, Invoices & AccountingExtract Invoice Data with LlamaParse and OpenAI17 stepsDocuments, PDF & OCRExtract Invoice Data from Emails with LlamaParse and OpenAI47 stepsFinance, Invoices & AccountingExtract Invoice Data from Email with LlamaParse and OpenAI17 stepsDocuments, PDF & OCRParse Documents with LlamaParse and OpenAI from Gmail77 steps