Generate website security audit PDFs with ScrapingBee, Claude, Gotenberg and Outlook

Go to Workflow
0 views
Built by AI Solutions AI Solutions
Created on August 11, 2026

Description

Quick overview
This workflow accepts a website URL via an n8n form, scrapes the page with ScrapingBee, and uses Anthropic Claude to audit HTTP security headers and client-side vulnerabilities. It then generates a branded HTML report, converts it to a PDF with Gotenberg, and emails it via Microsoft Outlook.

How it works
Receives a website URL when a user submits the n8n form.
Scrapes the target page with the ScrapingBee API and normalizes the returned HTML and response headers.
Uses Anthropic Claude to audit the HTTP response headers for security configuration issues and to analyze the page HTML for client-side security vulnerabilities.
Merges and aggregates the audit outputs, then calculates header presence, a header-hygiene grade, and summary metrics for the report.
Uses Anthropic Claude to generate platform-specific fix instructions (WordPress, GoDaddy Hosting, Hostinger Hosting, and Squarespace) based on the audit findings.
Builds a branded HTML report and email summary, converts the HTML to a PDF via the Gotenberg API, and sends the PDF as an attachment through Microsoft Outlook.

Setup
Add your ScrapingBee API key and ensure the ScrapingBee request settings match your needs (for example, JavaScript rendering and timeouts).
Create Anthropic (Claude) credentials and select a model for each Claude/agent step used for header analysis, vulnerability analysis, and remediation guidance.
Provide a reachable Gotenberg service URL, configure HTTP Basic Auth credentials if required, and update the PDF output filename/header settings as needed.
Connect Microsoft Outlook credentials with permission to send mail, then set the recipient address (and optionally customize the subject and HTML email body).

Requirements
Self-hosted n8n (community nodes/LangChain required)
ScrapingBee API credentials
Anthropic (Claude) API credentials
Gotenberg service URL and authentication
Microsoft Outlook account with OAuth2 access

Customization
Add or remove AI audit types in the LangChain agent nodes
Update branding/visuals in the "Build HTML Report" code node
Change the output destination by modifying the "Email Report via Outlook" node
Adjust how headers/content are processed in their respective code nodes
Replace ScrapingBee with any compatible scraping service in the "Fetch Website Content" node

Additional info
For support, contact [email protected] (AI Solutions, Inc.)

Nodes Used (5)

AI Agent
@n8n/n8n-nodes-langchain.agent
Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic
Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest
Microsoft Outlook
n8n-nodes-base.microsoftOutlook