Send AI website audits with GPT-4.1 and Gmail as a lead magnet

Go to Workflow
0 views
Built by Stefan Joulien Stefan Joulien
Created on June 12, 2026

Description

How it works

A prospect submits a form with their email and website URL
The workflow fetches and cleans the website HTML, extracting key business signals
An Analyst Agent reads the content and produces a structured JSON diagnostic (business type, offers, pain points, funnels, copy kit)
A Writer Agent converts the diagnostic into a personalised email with 10 actionable improvements, written automatically in the lead's language
A branded HTML email is assembled and sent via Gmail with numbered improvement cards, a booking CTA and a professional footer

Set up steps

Connect your OpenAI API credentials to both AI model nodes (~2 min)
Connect your Gmail account to the Send Email node (~1 min)
Open the Build Email HTML node and fill in the 6 constants at the top: your name, email, cal.com booking link, Instagram URL, LinkedIn URL and logo image URL (~3 min)
Activate the workflow and share the form URL with your leads

Nodes Used (6)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Gmail
n8n-nodes-base.gmail
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured