Templates / Generate Google Drive invoice PDFs from plain text with OpenAI and PDFCrowd

Generate Google Drive invoice PDFs from plain text with OpenAI and PDFCrowd

Ready for 3.0

by Incrementors ✓ · 16 views · created 2026-09-07 · Invoice Processing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 12 nodes and runs when another workflow calls it. Along the way it connects OpenAI Chat Model, Google Drive and Google Sheets. It also calls api.pdfcrowd.com over HTTP.

How it runs

Trigger: When another workflow calls it.

  1. Read the invoice details (AI Agent): runs an AI agent, with model: Chat model; output parser: Output Parser - Invoice fields
  2. Build the invoice fields (Edit Fields (Set)): sets 21 fields: CompanyTRN, Invoice Date, Invoice Number…
  3. Build the invoice HTML (Code): runs custom JavaScript code
  4. Convert HTML to PDF (HTTP Request): calls api.pdfcrowd.com (POST)
  5. Upload the PDF to Drive (Google Drive): uses Google Drive
  6. Clear the input tab (Google Sheets): clear
  7. Clear the output tab (Google Sheets): clear
  8. Return the file link (Edit Fields (Set)): sets 1 field: View URLs

Services it uses

OpenAI Chat ModelGoogle DriveGoogle Sheets

HTTP calls to: api.pdfcrowd.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

Quick overview This sub-workflow accepts plain-text invoice details, uses OpenAI to extract and normalize invoice fields, renders a styled HTML invoice to PDF via PDFCrowd, uploads the PDF to Google Drive, and returns a shareable Drive link while clearing…

Excerpt from Incrementors's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.