You are helping me build the following AI agent workflow. ## Goal Network Vulnerability Scanner: Scans network targets with Nmap, enriches findings with NVD CVE data, and emails or Telegrams a password-protected PDF report. ## Specification - What it does: Get a complete security audit for your network targets that identifies open ports and services, enriches findings with CVSS scores from the NVD API, and delivers password-protected PDF reports via email or Telegram. You receive actionable remediation recommendations in professional documents without manual scanning or data collection. - Trigger: On a schedule (Scheduled · daily or Manual · on demand) - Autonomy: Fully hands-off - Expected setup effort: a few focused days - Tools/services involved: - n8n: Workflow orchestration and automation logic - Nmap: Network port scanning and service detection - NVD API: Retrieving CVE details and CVSS scores - Prince XML: Converting HTML reports to password-protected PDFs - Telegram: Delivering scan results via bot notifications ## Known pitfalls, handle each one explicitly in your implementation 1. Nmap scans can be slow or trigger IDS alerts, so configure timing templates like -T4 and add pause nodes between targets. 2. Prince XML requires a valid license key to remove watermarks from generated PDFs, so store this in environment variables securely. 3. Telegram message length limits can truncate long vulnerability descriptions, so split the report content into multiple messages or use document sharing. ## Reference implementation https://n8n.io/workflows/11007 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/automated-network-vulnerability-scanner/ via usecasesforagents.com