Approve lead reply emails in Slack with Gmail and Google Sheets
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Gmail and Google Sheets. It also calls api.openai.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Config (Edit Fields (Set)): sets 6 fields: slackWebhookUrl, signature, subjectPrefix…
- Build Draft (template) (Code): runs custom JavaScript code
- Optional: AI Draft (OpenAI) (HTTP Request): calls api.openai.com (POST)
- Pick Draft (Edit Fields (Set)): sets 9 fields: name, email, company…
- Post Draft to Slack (HTTP Request): calls an HTTP API (POST)
- Wait: pauses until form
- Approved? (If): checks a condition and branches into true / false
- Final Reply (Edit Fields (Set)): sets 2 fields: finalReply, edited
- Log: Rejected / Expired (Edit Fields (Set)): sets 9 fields: timestamp, receivedAt, name…
- Send Reply (Gmail) (Gmail): uses Gmail
…plus 2 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)
HTTP calls to: api.openai.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 (8)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow receives new lead form submissions via webhook, generates a draft reply (template-based, with an optional OpenAI enhancement), posts the draft to Slack for human approval, then sends the approved reply via Gmail and logs the…