Send a daily Microsoft 365 update digest with OpenAI GPT-4o-mini via email

Go to Workflow
0 views
Built by Oscar Oscar
Created on July 29, 2026

Description

Quick overview
This workflow runs daily at 07:00 to pull the latest Microsoft 365, Security & Compliance, and Teams blog RSS posts, uses OpenAI (gpt-4o-mini) to triage and format a prioritized HTML digest, and sends the results to your team via SMTP email.

How it works
Runs every day at 07:00 on a schedule.
Fetches RSS XML from three Microsoft Tech Community feeds (Microsoft 365 Blog, Security & Compliance, and Teams/Microsoft Teams Blog) in parallel.
Parses the RSS items, keeps only posts from the last 24 hours, and deduplicates updates by title across all feeds.
If no new items are found, sends a “no new updates” email via SMTP.
If new items are found, aggregates them into a single formatted list for analysis.
Sends the aggregated updates to the OpenAI Chat Completions API (gpt-4o-mini) to assign priority/category/action-required and generate an inline-CSS HTML email body.
Emails the generated HTML digest to the configured recipients via SMTP.

Setup
Create an OpenAI API key and add an HTTP Header Auth credential that sets Authorization: Bearer for the OpenAI request.
Add an SMTP credential for the email-sending nodes.
Update the fromEmail and toEmail fields in both email actions to match your sender and recipient addresses.
Review and update the three Microsoft RSS feed URLs if Microsoft changes the Tech Community RSS endpoints.
Adjust the cron expression if you want the digest to run at a different time than 07:00.

Nodes Used (3)

Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest
Send Email
n8n-nodes-base.emailSend