Check cold email compliance and draft Gmail messages with Precleared
Ready for 3.0What this workflow does
This workflow has 9 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Gmail. It also calls precleared.dev over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Your settings (Edit Fields (Set)): sets 6 fields: sender_country, your_name, your_company…
- Sample leads (Code): runs custom JavaScript code
- Map lead fields (Edit Fields (Set)): sets 4 fields: email, first_name, company…
- Check with Precleared (HTTP Request): calls precleared.dev (POST)
- Allowed to email? (If): checks a condition and branches into true / false
- Write the email (Edit Fields (Set)): sets 5 fields: to, subject, body…
- Hold back (Edit Fields (Set)): sets 5 fields: email, verdict, reason…
- Create Gmail draft (Gmail): work with draft
Services it uses
HTTP calls to: precleared.dev
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 (6)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail
From the author
Quick Overview This workflow checks each lead’s cold-email compliance using the Precleared API and, when allowed, generates a compliant message and saves it as a draft in Gmail, while flagging non-compliant leads with the verdict, reason, and suggested next…