Create CTD dossier folders and AI-drafted assignment emails with Google Workspace and Gemini
Ready for 3.0What this workflow does
This AI workflow has 33 nodes and runs on Google Sheets events (row added) (plus 1 other trigger). Along the way it connects Google Sheets, Google Drive, Gmail and Google Gemini Chat Model.
How it runs
Trigger: On Google Sheets events (row added) (plus 1 other trigger).
- Get all registrations (Google Sheets): uses Google Sheets
- Set reminder settings (Edit Fields (Set)): sets 2 fields: reminderThresholdDays, completedStatus
- Find duplicate registrations (Code): runs custom JavaScript code
- Get tracking rows (Google Sheets): uses Google Sheets
- Check if duplicate found (If): checks a condition and branches into true / false
- Filter: keeps only the items that match a condition
- Delete duplicate rows (Google Sheets): delete
- Set dossier settings (Edit Fields (Set)): sets 10 fields: productName, reviewerEmail, senderName…
- Calculate days remaining (Code): runs custom JavaScript code
- Create root folder (Google Drive): work with folder
…plus 17 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Gemini + Google Sheets templates (819) · Other Google Drive + Google Sheets templates (720)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (16)
- Google Sheets Trigger
n8n-nodes-base.googleSheetsTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Google Drive
n8n-nodes-base.googleDrive - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Stop and Error
n8n-nodes-base.stopAndError - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Filter
n8n-nodes-base.filter
From the author
Quick overview This workflow watches a Google Sheets intake form for new CTD dossier requests, creates a structured folder set in Google Drive, uses Google Gemini to draft module assignment emails for human approval in Gmail, logs assignments to a tracking…