Create quote drafts from customer emails with OpenAI, Gmail and Sheets
Ready for 3.0What this workflow does
This AI workflow has 32 nodes and runs on Gmail events (plus 2 other triggers). Along the way it connects Gmail, Google Sheets and OpenAI Chat Model.
How it runs
Trigger: On Gmail events (plus 2 other triggers).
- Quote settings (Edit Fields (Set)): sets 31 fields: business_name, sender_name, currency…
- Describe the failure (Code): runs custom JavaScript code
- Digest settings (Edit Fields (Set)): sets 4 fields: digest_email, lookback_days, review_window_days…
- Read price list (Google Sheets): uses Google Sheets
- Email failure alert (Gmail): uses Gmail
- Read quotes for digest (Google Sheets): uses Google Sheets
- Read quote register (Google Sheets): uses Google Sheets
- Build daily to-do list (Code): runs custom JavaScript code
- Prepare and sort emails (Code): runs custom JavaScript code
- Anything to report? (If): checks a condition and branches into true / false
…plus 15 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) (New customer email).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (12)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - Gmail
n8n-nodes-base.gmail - Error Trigger
n8n-nodes-base.errorTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview Local service businesses lose time typing the same quote replies. This workflow reads new Gmail inquiries, extracts what the customer wants and prepares a priced reply from your Google Sheets price list as a Gmail draft. Nothing is sent…