- Home
- Skills
- Workflow Automation
- Scheduled AI Report with n8n
Scheduled AI Report with n8n
by AMIN REDA
Build an n8n workflow that reads recurring emails, extracts structured data with AI, compares with the last period, and emails a styled HTML report.
Free
About this skill
Turn a pile of recurring emails or records into a weekly (or daily) analytical report that sends itself.
- Schedule. Schedule Trigger with an explicit timezone. Compute the period window (for example last 7 full days) in a Code node and pass
period_startandperiod_endforward. - Fetch items. Get emails or rows inside the window using the source's search or filter. Apply a subject, label or folder filter. Handle the empty case: if nothing is found, send a short "no items this period" note instead of failing.
- Extract structured fields. Loop over items, or batch them, with an AI step that returns JSON per item, for example
type,severity (low|medium|high|critical),location,root_cause,status,date. Validate against an enum list and mark unknown values asunspecified, never guess. - Aggregate. In a Code node compute counts by type, severity and location, open versus closed, and top repeated root causes.
- Compare with the previous period. Fetch the prior period's stored summary (a Sheet row or the previous report) or re-run the same fetch for the earlier window using the agent's tools. Compute deltas and flag meaningful increases.
- Generate the narrative. Give the AI the aggregates, the deltas and a short list of notable items (not raw private data), and ask for: executive summary, risk alerts, and 3 to 5 concrete recommendations. Tell it to use only the numbers provided.
- Render HTML. Build the email as simple inline-styled HTML: header with period, KPI row, small tables, risk alert box, recommendations. Keep it readable on mobile and in Outlook (tables, inline CSS, no scripts).
- Send and store. Email the report, then save this period's aggregates for next time's comparison.
- Failure path. Error Trigger sends an alert to the owner if any step fails, so a missing report is never silent.
Designs the workflow, prompts and report template; it does not connect to your mailbox or deploy anything.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 15 days ago
- Free with an Agensi account
- Accounts
- n8n
Outlook
orGmail
An LLM API key
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.