Generate branded PDF sales proposals with Gemini, APITemplate.io and Gmail
Ready for 3.0What this workflow does
This AI workflow has 15 nodes and runs when someone submits an n8n form (“Sales Proposal Generator”). Along the way it connects Google Gemini Chat Model and Gmail. It also calls rest.apitemplate.io over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Sales Proposal Generator”).
- Your Business Profile (Edit Fields (Set)): sets 7 fields: agency_name, agency_email, agency_phone…
- Has Website? (If): checks a condition and branches into true / false
- Fetch Prospect Website (HTTP Request): calls an HTTP API
- Read Prospect Website (Code): runs custom JavaScript code
- Draft Proposal (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini; output parser: Output Format
- Prices Complete? (If): checks a condition and branches into true / false
- Build HTML (Code): runs custom JavaScript code
- Ask For Missing Prices (Gmail): uses Gmail
- Post to PDF API (HTTP Request): calls rest.apitemplate.io (POST)
- Name Proposal File (Code): runs custom JavaScript code
…plus 2 more steps. See the full node list below.
Services it uses
HTTP calls to: rest.apitemplate.io
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)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow collects prospect details via an n8n form, uses Google Gemini to draft a structured sales proposal, renders it into a branded PDF using APITemplate.io, and creates a pre-addressed Gmail draft with the PDF attached (or emails you…