Skip to content
Create Custom PDF Documents from Templates with Gemini & Google Drive logo

Create Custom PDF Documents from Templates with Gemini & Google Drive

Verified

Generate custom PDFs from Google Docs templates via AI chat.

n8nAI & LLMIntermediate👁 51 views
Open template
Updated 2026-06-15

What this workflow does

This workflow automates conversion of Google Docs contract and form templates into ready-to-sign PDFs by collecting required values through chat and applying conditional logic to avoid errors.

It targets professionals and teams managing repetitive documents such as rentals, sales agreements, or NDAs who need faster approvals and direct PDF delivery.

Who is this for?

Legal teams, sales reps, HR professionals, and small business owners who regularly generate customized contracts or forms from Google Docs templates.

What problem it solves

Manually copying and filling Google Docs contract templates is slow and prone to missed fields or errors. This workflow uses chat input and AI to auto-populate templates and deliver ready-to-sign PDFs.

Live workflow preview

Interactive canvas of every node and connection — scroll and click to explore. Powered by n8n's preview.

Open the template on n8n to import and run it. View source template →

What it automates

Rental agreements

Real estate agents chat tenant details and property info to instantly produce filled lease PDFs stored in Drive.

NDA creation

Sales teams supply client names and project scope via chat to generate tailored non-disclosure PDFs without manual edits.

Sales contract prep

Account managers input deal terms to create customized sales contracts as PDFs ready for e-signature links.

How the workflow works

The 9 nodes in this automation, in order.

  1. 1HTTP RequesthttpRequest
  2. 2Google DrivegoogleDrive
  3. 3Codecode
  4. 4AI Agent@n8n/n8n-nodes-langchain.agent
  5. 5Basic LLM Chain@n8n/n8n-nodes-langchain.chainLlm
  6. 6Structured Output Parser@n8n/n8n-nodes-langchain.outputParserStructured
  7. 7Call n8n Workflow Tool@n8n/n8n-nodes-langchain.toolWorkflow
  8. 8Google Gemini Chat Model@n8n/n8n-nodes-langchain.lmChatGoogleGemini
  9. 9Postgres Chat Memory@n8n/n8n-nodes-langchain.memoryPostgresChat

Apps & integrations used

HTTP RequestGoogle DriveAI AgentBasic LLM ChainStructured Output ParserCall n8n Workflow ToolGoogle Gemini Chat ModelPostgres Chat Memory

How to set up Create Custom PDF Documents from Templates with Gemini & Google Drive

  1. 1Import the workflow JSON into your self-hosted n8n instance
  2. 2Add Google Drive credentials and select the folder containing your Docs templates
  3. 3Connect Google Gemini Chat Model with your API key
  4. 4Set up Postgres Chat Memory credentials for conversation history
  5. 5Configure the AI Agent and Structured Output Parser nodes with your template fields
  6. 6Activate the workflow and test via the chat trigger

How to customize this workflow

  • Swap Google Gemini for another supported LLM in the Chat Model node
  • Change the trigger from chat to a webhook or scheduled node
  • Add an HTTP Request step to send the PDF link to Slack or email
  • Extend the Structured Output Parser to handle additional conditional clauses

Create Custom PDF Documents from Templates with Gemini & Google Drive: pros & cons

Pros

  • +Chat-driven interface removes manual template editing
  • +Lists required fields to reduce omissions
  • +Direct PDF output via Google Drive
  • +Uses existing Docs templates without reformatting

Cons

  • Community nodes require self-hosted n8n only
  • Accuracy depends on template structure and AI output
  • Initial setup of Postgres memory and field mapping needed
Did you find this helpful?

Frequently asked questions

It converts Google Docs templates into filled PDFs using AI chat input and stores them in Google Drive.

User reviews

Verified reviews from the community shape this listing's rating.

Loading reviews…

Sign in to review

Promote Create Custom PDF Documents from Templates with Gemini & Google Drive

Add this badge to your website, or share the tool.

DFeatured on DhanasviCreate Custom PDF Documents from Templates with Gemini & Google Drive 0