Create custom PDF documents from templates with Gemini & Google Drive
Documents & extraction workflow for n8n with 30 active steps. Starts with Chat Trigger, Execute Workflow Trigger. Uses Google Gemini. Integrations include Google Gemini, Google Drive.
What it does
30 active nodes · Starts with Chat Trigger, Execute Workflow Trigger.
Steps in the template include:
- Google Gemini Chat Model (Google Gemini Chat Model)
- GetMetaData (http Request Tool)
- When chat message received (Chat Trigger)
- DocAgent (AI Agent)
Nodes and integrations
- Google Gemini Chat Model ×3
- http Request Tool
- Chat Trigger
- AI Agent
- Call n8n Workflow Tool
- Postgres Chat Memory
- HTTP Request ×4
- Execute Workflow Trigger
- If ×3
- Structured Output Parser
- Edit Fields (Set) ×8
- Switch
- Google Drive
- Basic LLM Chain ×2
- Code
See the author’s step names
- Google Gemini Chat Model (Google Gemini Chat Model)
- GetMetaData (http Request Tool)
- When chat message received (Chat Trigger)
- DocAgent (AI Agent)
- DocProcess (Call n8n Workflow Tool)
- Postgres Chat Memory (Postgres Chat Memory)
- Template List (HTTP Request)
- When Executed by Another Workflow (Execute Workflow Trigger)
- If (If)
- Google Gemini Chat Model1 (Google Gemini Chat Model)
- Structured Output Parser (Structured Output Parser)
- Edit Fields (Edit Fields (Set))
- If1 (If)
- Other Errors (Edit Fields (Set))
- Switch (Switch)
- CopyTemplate (Google Drive) — copy
- FillDocument (HTTP Request)
- Google Gemini Chat Model2 (Google Gemini Chat Model)
- User Choice Matching Error (Edit Fields (Set))
- User Choice Match Correct (Edit Fields (Set))
- User Choice Match Check (Basic LLM Chain)
- GetMetaData2 (HTTP Request)
- Format Control (Basic LLM Chain)
- Formatting Correction (Code)
- Cop. Document ID Matching Error (Edit Fields (Set))
- if (If)
- Generate Download Link (HTTP Request)
- Download Link Format (Edit Fields (Set))
- Incomplete Information Error (Edit Fields (Set))
- Template Technical Error (Edit Fields (Set))
Accounts and credentials
- Google Gemini access
- Google Drive
- PostgreSQL
- Google Docs
Credential types in the graph: googlePalmApi, googleDriveOAuth2Api, postgres, googleDocsOAuth2Api
Check the HTTP request steps for any additional service accounts or API keys.
AI models and swaps
Google Gemini · Chat
models/gemini-2.5-pro in Google Gemini Chat Model. Potentially swappable with a compatible n8n chat model node. Match tool calling before testing.
Google Gemini · Chat
models/gemini-2.5-pro in Google Gemini Chat Model1. Potentially swappable with a compatible n8n chat model node. Test the replacement with the next step.
Google Gemini · Chat
models/gemini-2.5-pro in Google Gemini Chat Model2. Potentially swappable with a compatible n8n chat model node. Match structured output before testing.
Inputs and setup options
- When chat message received: public chat is enabled in the template
Resource information
- Credit basis
- Author listed by n8n
- Pricing
- Template access shown on n8n
- License
- Not specified
- Last record update
- Nov 5, 2026
