Templates / Send daily Azure IoT Hub fleet health reports with OpenAI and Gmail

Send daily Azure IoT Hub fleet health reports with OpenAI and Gmail

Ready for 3.0

by Saravanan Ganesan · 0 views · created 2026-08-18 · DevOps, AI Summarization

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 15 nodes and runs on a schedule (cron 0 9 * * *). Along the way it connects Gmail and OpenAI.

How it runs

Trigger: On a schedule (cron 0 9 * * *).

  1. Fleet Config (Edit Fields (Set)): sets or maps fields
  2. Generate SAS Token (Code): runs custom JavaScript code
  3. Query All Devices (HTTP Request): calls an HTTP API (POST)
  4. Classify Fleet (Code): runs custom JavaScript code
  5. Email — Run Failed (Gmail): uses Gmail
  6. Read Previous Run (Data table): get
  7. Compute Deltas (Code): runs custom JavaScript code
  8. AI Summary (OpenAI): uses OpenAI
  9. Build Report (Code): runs custom JavaScript code
  10. Route by Severity (Switch): routes items into 3 branches

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

Services it uses

GmailOpenAI

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 (8)

From the author

Quick overview This workflow runs daily at 9:00 AM to query your Azure IoT Hub device registry, classify fleet health (online, offline, stale, disabled), generate an HTML executive summary with OpenAI, and email the report through Gmail. How it works 1. Runs…

Excerpt from Saravanan Ganesan'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.