Draft client-approved email replies with OpenAI and email
Ready for 3.0What this workflow does
This AI workflow has 51 nodes and runs when an HTTP POST request hits its webhook URL (plus 2 other triggers). Along the way it connects OpenAI Chat Model.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 2 other triggers).
- Settings (Edit Fields (Set)): sets 10 fields: company_name, sender, owner_email…
- Load waiting requests (Data table): get
- Digest settings (Edit Fields (Set)): sets 2 fields: owner_email, sender
- Validate request (Code): runs custom JavaScript code
- Summarise waiting requests (Code): runs custom JavaScript code
- Reject: status unavailable (Respond to Webhook): sends the response back to the webhook caller
- Load waiting requests for digest (Data table): get
- Valid request? (If): checks a condition and branches into true / false
- Return waiting requests (Respond to Webhook): sends the response back to the webhook caller
- Build the digest (Code): runs custom JavaScript code
…plus 37 more steps. See the full node list below.
Services it uses
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 (13)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Data table
n8n-nodes-base.dataTable - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Crypto
n8n-nodes-base.crypto - Send Email
n8n-nodes-base.emailSend - Wait
n8n-nodes-base.wait - Switch
n8n-nodes-base.switch - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview For agencies and freelancers who let an AI agent draft replies for clients but need the client's yes before anything is sent. The approver needs no n8n account. Drafts are fingerprinted, and only the approved text is sent. How it works 1.…