
Email-to-Booklet: Parse, Personalize, and Merge Legal PDFs with n8n + PDF.co
6 MIN READ
5 MIN READ
This workflow monitors an email inbox for invoice attachments, extracts structured invoice data with PDF.co’s AI Invoice Parser, and creates an Airtable record.
The workflow is:
Email Trigger → PDF.co Upload File → AI Invoice Parser → Airtable
Prepare:
The JSON workflow uses the PDF.co community node. Install it before importing the blueprint:
n8n-nodes-pdfco.After importing, select your email, PDF.co, and Airtable credentials. Installation details are available on the PDF.co node package page.
You can also build the workflow manually using the following steps.
Add Email Trigger (IMAP) and connect your email account.
Configure the node:
INBOX["UNSEEN", ["SUBJECT", "Sales Invoice"]]Send a test email with one PDF invoice attached. Confirm that the trigger returns the file as binary data, typically under attachment_0.
Add PDF.co API and select Upload File.
Configure the node:
attachment_0invoice.pdfThe node uploads the attachment and returns a secure URL for the next step.
Add another PDF.co API node and select AI Invoice Parser.
In the source URL field, map the URL from the upload node:
={{ $json.url }}
The parser returns structured data such as:
Prepare an Airtable table with columns such as:
Add Airtable and choose Create a Record.
Select the base and table, then map the parser output:
={{ $json.body.customer.billTo.name }}={{ $json.body.customer.billTo.contactInformation.email }}={{ $json.body.vendor.name }}={{ $json.body.vendor.contactInformation.email }}={{ $json.body.invoice.invoiceDate }}={{ $json.body.invoice.invoiceNo }}={{ $json.body.paymentDetails.dueDate }}={{ $json.body.paymentDetails.total }}Send another invoice PDF to the monitored inbox and run the workflow.
Confirm that PDF.co extracts the invoice data and that a corresponding record appears in Airtable. Once the test succeeds, activate the workflow.
You’ve successfully automated invoice processing. Your workflow now:
This setup scales easily—from startup use cases to enterprise-level automation.
Built something cool with this workflow? Share it with us @pdfdotco

6 MIN READ

6 MIN READ

6 MIN READ

6 MIN READ
Create an account, get an API key and test a request.