Templates / Send Wazuh security alerts as Gemini-enriched email reports and notifications

Send Wazuh security alerts as Gemini-enriched email reports and notifications

Ready for 3.0

by Alberto Flores ✓ · 59 views · created 2026-08-12

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 30 nodes and runs manually, when you click “Execute workflow” (plus 3 other triggers). Along the way it connects Google Gemini Chat Model.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 3 other triggers).

  1. Use manual reporting mode (Edit Fields (Set)): sets 1 field: runMode
  2. Use immediate notification mode (Edit Fields (Set)): sets 1 field: runMode
  3. Use weekly reporting mode (Edit Fields (Set)): sets 1 field: runMode
  4. Use monthly reporting mode (Edit Fields (Set)): sets 1 field: runMode
  5. Configure alert intelligence workflow (Edit Fields (Set)): sets 14 fields: organizationName, organizationKey, wazuhIndexerUrl…
  6. Load enabled delivery profiles (Data table): get
  7. Prepare bounded Wazuh alert query (Code): runs custom JavaScript code
  8. Query Wazuh alert evidence (HTTP Request): calls an HTTP API (POST)
  9. Build deterministic security context (Code): runs custom JavaScript code
  10. Continue only when delivery is needed (If): checks a condition and branches into true / false

…plus 13 more steps. See the full node list below.

Services it uses

Google Gemini Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (12)

From the author

Quick Overview This workflow queries Wazuh Indexer on a schedule or manually, summarizes alert activity, uses Google Gemini to generate structured security insights, and sends role-based HTML email reports or immediate alert notifications via SMTP, optionally…

Excerpt from Alberto Flores's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.