Draft roof supplement letters from insurance estimates with Gmail, OpenAI, Google Sheets and Docs
Ready for 3.0What this workflow does
This AI workflow has 39 nodes and runs on Gmail events (plus 3 other triggers). Along the way it connects Gmail, Google Sheets, OpenAI Chat Model and Google Docs.
How it runs
Trigger: On Gmail events (plus 3 other triggers).
- Your settings (Edit Fields (Set)): sets or maps fields
- Read your settings (Code): runs custom JavaScript code
- What started this? (Switch): routes items into branches
- Is it an estimate? (Code): runs custom JavaScript code
- Read the upload (Code): runs custom JavaScript code
- Read the claims (Google Sheets): uses Google Sheets
- Create the spreadsheet (Google Sheets): uses Google Sheets
- Worth reading? (If): checks a condition and branches into true / false
- Extract the PDF text (Extract from File): extracts data from a file
- Find quiet supplements (Code): runs custom JavaScript code
…plus 21 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Estimate arrives by email).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (16)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - n8n Form Trigger
n8n-nodes-base.formTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - If
n8n-nodes-base.if - Extract from File
n8n-nodes-base.extractFromFile - Google Sheets
n8n-nodes-base.googleSheets - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Docs
n8n-nodes-base.googleDocs - Gmail
n8n-nodes-base.gmail - Split Out
n8n-nodes-base.splitOut
From the author
Quick overview Adjuster estimate PDFs arrive by Gmail or a form. OpenAI reads every line item and the roof facts, code checks them against your own scope rules, and the missing items become a supplement letter in Google Docs and a Gmail draft to the adjuster.…