Skip to main content

Generate PDF business proposals with Google Gemini and PDF Generator API

Workflow preview

Workflow preview
100%
Generate PDF business proposals with Google Gemini and PDF Generator API preview
Open on n8n.io

1. Workflow Overview

AI Powered Automated Proposal & Lead Management System This advanced n8n workflow automates the transition from "Raw Lead" to "Sent Proposal." By integrating Email Verification, Large Language Mode...

Best for

  • Lead Nurturing automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatgooglegemini, @pdfgeneratorapi/n8n-nodes-pdf-generator-api.pdfgeneratorapi, n8n-nodes-base.gmail, n8n-nodes-base.webhook, n8n-nodes-base.stickynote, n8n-nodes-base.respondtowebhook, n8n-nodes-base.googlesheets, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Marián Današ.

Original n8n.io source

1.1 Workflow description

Title
Generate PDF business proposals with Google Gemini and PDF Generator API
Workflow name
Generate PDF business proposals with Google Gemini and PDF Generator API

AI-Powered Automated Proposal & Lead Management System

This advanced n8n workflow automates the transition from "Raw Lead" to "Sent Proposal." By integrating Email Verification, Large Language Models (LLMs), and Document Automation, it eliminates manual data entry and ensures that every proposal sent is personalized, professional, and delivered to a verified address.

🛠️ How It Works

1. Data Intake & Validation

The workflow is triggered via a Webhook. Before any processing occurs, the data passes through the Hunter node, which performs a real-time email verification check.

Smart Error Handling: An If Node evaluates the verification result. If the email is invalid or "risky," the workflow redirects to a Respond to Webhook node, providing immediate feedback to the source and preventing wasted API credits on downstream nodes.

2. The AI Agent Layer

Once validated, the data reaches the Set Fields node to be mapped for the AI.

Custom Prompt Logic: The AI Agent node, powered by Google Gemini, contains a sophisticated custom prompt. This prompt acts as a "template engine," instructing the AI to take specific input variables (like client name, project scope, and budget) and output a clean, professional HTML structure. This allows for dynamic content generation that adapts to the unique context of every lead.

3. Professional PDF Generation

Instead of sending a plain text email, the workflow passes the AI-generated HTML to the PDF Generator API. This tool renders the code into a high-quality, brand-consistent PDF document ready for client viewing.

4. Automated Delivery & CRM Logging

Gmail Integration: The final PDF is automatically attached and sent to the verified email address with a personalized message.

Google Sheets Logging: To ensure full visibility, the workflow appends a row to a Google Sheet, tracking the date, client details, and the status of the sent proposal.

📋 Requirements

To run this workflow, you will need active accounts and API credentials for the following services:

n8n Instance: (Self-hosted or Cloud).

Hunter.io API: For the email verification node.

Google Gemini API: To power the AI Agent and custom prompt.

PDF Generator API: To convert the AI's HTML output into documents.

Google Workspace Account: Required for the Gmail (Sending) and Google Sheets (Logging) nodes.

⚙️ How to Set Up

Follow these steps to get the workflow operational:

  • Import the Workflow: Download the JSON file and paste it into your n8n canvas.

  • Configure Credentials:

  • Connect your Hunter API key.

  • Set up your Google Gemini credentials (via Google Cloud Console).

  • Add your PDF Generator API key.

  • Authenticate your Google Account (OAuth2) for Gmail and Google Sheets.

  • Customize the AI Prompt: Open the AI Agent node. Under the "System Message" or "Prompt" section, adjust the HTML template to match your brand's style and the specific fields you want to include in your proposal.

  • Map your Google Sheet: Open the Append row in sheet node and select the specific spreadsheet and worksheet where you want to log your leads.

  • Test the Flow: Use the Webhook simulator (Example DATA) to send a test payload and verify that the PDF is generated and the email is sent correctly.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 2 - Convert HTML content to PDF

Type / Role
@pdfgeneratorapi/n8n-nodes-pdf-generator-api.pdfGeneratorApi - pdfGeneratorApi
Config choices
Version 1

Block 3 - Send the proposal to the customer

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 4 - Webhook simulator

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 5 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Respond to Webhook

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.5

Block 9 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Append row in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 11 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Is Email Valid?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 13 - Generate Proposal Content

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 14 - Prepare Agent Inputs

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Verify Email Address

Type / Role
n8n-nodes-base.hunter - hunter
Config choices
Version 1

Block 16 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generate PDF business proposals with Google Gemini and PDF Generator API
Complexity advanced
Nodes 16
Categories Lead Nurturing, Multimodal AI
Author Marián Današ
Published 12 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10769/10769.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate PDF business proposals with Google Gemini and PDF Generator API do?

AI Powered Automated Proposal & Lead Management System This advanced n8n workflow automates the transition from "Raw Lead" to "Sent Proposal." By integrating Email Verification, Large Language Mode...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Nurturing, Multimodal AI use case.