Templates / Create custom PDF documents from templates with Gemini & Google Drive

Create custom PDF documents from templates with Gemini & Google Drive

Ready for 3.0

by Ozgur Karateke · 11,265 views · created 2025-07-09 · Document Extraction, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 30 nodes and runs when a chat message arrives (plus 1 other trigger). Along the way it connects Google Gemini Chat Model, HTTP Request, Postgres Chat Memory and Google Drive. It also calls script.google.com and googleapis.com over HTTP.

How it runs

Trigger: When a chat message arrives (plus 1 other trigger).

  1. DocAgent (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; 2 tools (DocProcess, GetMetaData); memory: Postgres Chat Memory
  2. User Choice Match Check (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Structured Output Parser
  3. If: checks a condition and branches into true / false
  4. User Choice Match Correct (Edit Fields (Set)): sets 1 field: output.user_choice_id
  5. User Choice Matching Error (Edit Fields (Set)): sets 1 field: pdf_id
  6. GetMetaData (HTTP Request): calls script.google.com
  7. Edit Fields (Edit Fields (Set)): sets or maps fields
  8. Format Control (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
  9. Formatting Correction (Code): runs custom JavaScript code
  10. CopyTemplate (Google Drive): copy

…plus 11 more steps. See the full node list below.

Services it uses

Google Gemini Chat ModelHTTP RequestPostgres Chat MemoryGoogle Drive

HTTP calls to: script.google.com, googleapis.com

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 (15)

From the author

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. 1 — What Does It Do / Which Problem Does It Solve? This workflow turns Google Docs-based contract & form templates into ready-to-sign PDFs in minutes—all from…

Excerpt from Ozgur Karateke's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.