Skip to main content

One post tagged with "Looping by Zapier"

View all tags

Invoice OCR in Zapier: Loop Over Every Attachment in a Shared Mailbox with PDF4me AI Document Parser

· 24 min read
SEO and Content Writer

PDF4me AI Document Parser is a Zapier action that reads a document with AI and returns its fields as JSON. Paired with Looping by Zapier, it handles the normal case in accounts payable: one email carrying several invoices, each attachment parsed in its own run.

Every invoice-OCR tool demonstrates the same thing, which is one document going in and clean fields coming out. That is not how invoices arrive. They arrive as an email to a shared inbox, from a supplier who attached three PDFs and wrote "PFA" in the body. The interesting problem is not reading one invoice, it is that a single trigger has to turn into several parses, and most walkthroughs quietly skip it by watching a folder where somebody has already split the files apart. This Zap does not skip it. Three steps, and the middle one is the loop.

The Zap at a glance
1. New Email in Shared Mailbox
Microsoft Outlook, polling every 2 minutes. One email is one supplier sending one or more invoices.
2. Create Loop From Line Items
Looping by Zapier. Turns the attachment list into one iteration per file.
3. AI - Document Parser
PDF4me. Runs your Analyzer against the attachment and returns the fields as JSON.