Hébergement VPS n8n | Automatisation sécurisée et évolutive
Formation n8n en Français : Automatisation & Agents IA
This workflow turns a single landing page URL into a full Conversion Rate Optimization (CRO) audit: it scrapes the page's HTML, captures a live screenshot, sends both to an AI agent for a text + visual analysis, then returns a scored breakdown (6 categories out of 10), a friendly "roast", and a list of highly specific recommendations. The report is emailed to the visitor as HTML and every audit is logged to Google Sheets so you can track pages over time.
This is an improved rebuild of the classic "Conversion Rate Optimizer" (o1 model) template. Improvements: (1) screenshot + vision-model analysis in addition to raw HTML text analysis, (2) a strict structured/scored JSON output instead of free text, auto-formatted into an HTML report, (3) historical tracking in Google Sheets, (4) a centralized Configuration node.
flowchart TD
A["Landing Page URL Input (Form Trigger)"] --> B["Configuration"]
B --> C["Scrape Landing Page HTML"]
C --> D["Capture Landing Page Screenshot"]
D --> E["Analyze Screenshot With Vision"]
E --> F["Prepare Agent Input"]
F --> G["Generate CRO Audit (AI Agent)"]
G --> H["Prepare Report Data"]
H --> I["Convert Report to HTML"]
I --> J["Log Audit to Google Sheets"]
J --> K{"Should Email Report?"}
K -->|true| L["Send CRO Report by Email"]
K -->|false| M["End"]
| Credential | Type | Used by | How to get it |
|---|---|---|---|
| OpenAI account | openAiApi | Analyze Screenshot With Vision, OpenAI Chat Model, Fixer Model | platform.openai.com → API keys → Create new secret key. Paste it into a new n8n credential of type "OpenAi". |
| Gmail account | gmailOAuth2 | Send CRO Report by Email | In n8n, create a new "Gmail OAuth2" credential and follow the OAuth connection flow (Google sign-in popup). |
| Google Sheets account | googleSheetsOAuth2Api | Log Audit to Google Sheets | In n8n, create a new "Google Sheets OAuth2" credential and follow the OAuth connection flow. |
<aside> 💡
No extra API key is needed for the screenshot step — it uses the free thum.io service. For higher volume or to remove the watermark, swap the URL in "Capture Landing Page Screenshot" for a paid screenshot API (ScreenshotOne, Urlbox, etc.).
</aside>