Quick Overview
This workflow collects a landing page URL via an n8n form, fetches the page HTML and HTTP response headers, uses OpenAI (GPT-4.1) to audit client-side security issues and header configuration, generates an HTML/PDF security report via Gotenberg, and emails the results using Microsoft Outlook.
How it works
- Receives a landing page URL submitted through an n8n form.
- Uses an HTTP request to retrieve the page HTML and the full HTTP response headers (following redirects).
- Sends the response headers to OpenAI (GPT-4.1) to assess security header, cookie, and content security misconfigurations.
- Sends the page HTML/content to OpenAI (GPT-4.1) to identify client-side vulnerabilities, information leakage, and weaknesses.
- Merges and aggregates the audit outputs, extracts and scores key security headers, and computes summary metrics like header grade and warning counts.
- Uses OpenAI (GPT-4.1) to generate platform-specific remediation steps for WordPress, GoDaddy Hosting, Hostinger Hosting, and Squarespace.
- Builds a branded HTML report, converts it to a PDF via a Gotenberg HTTP endpoint, and emails the PDF (and summary HTML) through Microsoft Outlook.
Setup
- Add OpenAI credentials for the GPT-4.1 chat model used to analyze headers, content, and to generate fix instructions.
- Configure the Gotenberg PDF service endpoint URL and HTTP Basic Auth credentials used by the PDF generation request.
- Add Microsoft Outlook credentials and set the recipient email address for delivering the report.
- Review the branding placeholders (company name, website, phone, email) and update them in the report-generation code before sending reports to customers.