π¬ Check cold email compliance and draft Gmail messages with Precleared
β‘ 0 views Β· π¬ Lead Nurturing & AI Sales Agents
Description
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 step.
How it works
- Runs manually to process a batch of leads.
- Loads sender details (country, company info, postal address, opt-out line, and pitch) and prepares lead fields like email, name, company, and address source.
- Sends each lead to the Precleared API to check whether cold-email outreach is permitted and to retrieve any required footer text and a receipt ID.
- Creates a Gmail draft for leads with the verdict
ok_to_email, including the required footer details and saving the compliance rule and receipt ID. - Routes all other leads to a βhold backβ output that includes the compliance verdict, the reason, any suggested next step (such as getting an API key or buying a pack), and the receipt ID when available.
Setup
- Update the sender details in the workflow (sender country, your name, company, postal address, opt-out line, and pitch).
- (Optional) Add a Precleared API key by configuring the HTTP request to send an
Authorization: Bearer ...header if you need more than the free daily checks. - Connect your Gmail account in the Gmail Draft action and confirm the target mailbox.
- Replace the sample leads with your own lead source (for example Google Sheets, Airtable, HubSpot, or a webhook) and map your lead fields to
email,first_name,company, andaddress_source.
π Nodes Used
HTTP Request, Gmail
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File