{"product_id":"n8n-workflow-gemini-sales-proposal-pdf-gmail-draft","title":"n8n Workflow: Gemini Sales Proposal PDF + Gmail Draft","description":"\u003ch3\u003eTurn form submissions into a branded sales proposal PDF—then draft the Gmail for you\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow collects prospect details from an n8n form, uses \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e to generate structured sales proposal content, renders it into a branded \u003cstrong\u003eA4 PDF\u003c\/strong\u003e via \u003cstrong\u003eAPITemplate.io\u003c\/strong\u003e, and creates a \u003cstrong\u003epre-addressed Gmail draft\u003c\/strong\u003e with the PDF attached. If PDF rendering fails, it automatically emails you an error so you can troubleshoot and rerun.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives a form submission\u003c\/strong\u003e containing company details, situation, proposed services, pricing, timeline, and optional brand colors.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates proposal content with Google Gemini\u003c\/strong\u003e as structured JSON that matches a predefined schema.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates and finalizes the proposal\u003c\/strong\u003e (including fallback brand colors when needed) and merges the content into a fixed-layout HTML proposal template.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRenders the HTML into a branded A4 PDF\u003c\/strong\u003e using the \u003cstrong\u003eAPITemplate.io API\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates a Gmail draft\u003c\/strong\u003e addressed to the prospect with a prewritten message and the PDF attached.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eError handling:\u003c\/strong\u003e if PDF generation fails, it emails the agency address so you can quickly diagnose the issue and rerun.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAgencies or SaaS teams that want \u003cstrong\u003einstant proposal generation\u003c\/strong\u003e from inbound lead forms.\u003c\/li\u003e\n  \u003cli\u003eSales operations teams needing consistent, schema-based proposals without manual formatting.\u003c\/li\u003e\n  \u003cli\u003eTeams sending proposals by email while ensuring every message includes the latest \u003cstrong\u003eGemini-generated PDF\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Gemini integration\u003c\/strong\u003e to produce structured proposal JSON (schema-aligned).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAPITemplate.io\u003c\/strong\u003e to convert the finalized HTML proposal into an A4 PDF (API key provided via HTTP header \u003ccode\u003eX-API-KEY\u003c\/code\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGmail OAuth\u003c\/strong\u003e to create drafts, using the prospect email from the form as the recipient.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\u003c\/strong\u003e include Code, Gmail, Form Trigger, HTTP Request, and LLM-related components.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eBuild smarter sales automation with n8n\u003c\/strong\u003e—from lead intake to proposal PDF and a ready-to-send Gmail draft.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46063645163699,"sku":"N8N-19725","price":77.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/2PGNAcM7g0_TABOSc3dzf_75WvIeQt.png?v=1789808674","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-gemini-sales-proposal-pdf-gmail-draft","provider":"N8N Commerce","version":"1.0","type":"link"}