{"product_id":"n8n-workflow-generate-invoice-pdfs-to-google-drive","title":"n8n Workflow: Generate Invoice PDFs to Google Drive","description":"\u003ch3\u003eTurn invoice text into shareable PDF files in Google Drive—fully automated with n8n\u003c\/h3\u003e\n\u003cp\u003eThis n8n sub-workflow takes plain-text invoice details, uses OpenAI to extract and normalize the invoice data, generates a styled A4 PDF via PDFCrowd, uploads it to a specified Google Drive folder, and returns a shareable Drive link—then clears working sheets so you can run again immediately.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives invoice details\u003c\/strong\u003e from a parent workflow.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExtracts structured invoice fields\u003c\/strong\u003e using OpenAI from the free-form text. It uses a structured output parser that can retry and auto-fix malformed JSON.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAdds company metadata and invoice date\u003c\/strong\u003e, mapping extracted values into the exact fields required by the invoice template.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuilds a styled HTML invoice\u003c\/strong\u003e document from the structured fields.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates a PDF with PDFCrowd\u003c\/strong\u003e by sending the HTML to the PDFCrowd API and producing an \u003cstrong\u003eA4 PDF\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUploads the PDF to Google Drive\u003c\/strong\u003e in your chosen folder and returns a \u003cstrong\u003eview URL\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePrepares for the next run\u003c\/strong\u003e by clearing rows in the \u003cstrong\u003e“Invoice Input”\u003c\/strong\u003e and \u003cstrong\u003e“Invoice Output”\u003c\/strong\u003e tabs in Google Sheets.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eConvert emailed or pasted invoice text into consistent PDFs and store them automatically in Google Drive.\u003c\/li\u003e\n  \u003cli\u003eSpeed up back-office operations by generating invoice documents without manual formatting.\u003c\/li\u003e\n  \u003cli\u003eCentralize invoice PDFs per customer\/project using a Drive folder workflow.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOpenAI\u003c\/strong\u003e: parses and structures invoice data with retry\/repair for malformed JSON.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePDFCrowd\u003c\/strong\u003e: renders the styled HTML invoice into an A4 PDF.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Drive\u003c\/strong\u003e: uploads the generated PDF to \u003cstrong\u003eYOUR_DRIVE_FOLDER_ID\u003c\/strong\u003e and returns a link.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e: clears \u003cstrong\u003e“Invoice Input”\u003c\/strong\u003e and \u003cstrong\u003e“Invoice Output”\u003c\/strong\u003e tabs using \u003cstrong\u003eYOUR_GOOGLE_SHEET_ID\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes used\u003c\/strong\u003e: set, code, sticky note, Google Drive, HTTP Request, Google Sheets.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003ePerfect for n8n workflow automation engineers and SaaS operators who need reliable, repeatable invoice PDF generation with Google Drive storage.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45974303310003,"sku":"N8N-19305","price":7.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/pWZWuwqpk3QStay6gDsIp_ErBQNj9i.png?v=1788771915","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-generate-invoice-pdfs-to-google-drive","provider":"N8N Commerce","version":"1.0","type":"link"}