# Scheduled AI Report with n8n

> Build an n8n workflow that reads recurring emails, extracts structured data with AI, compares with the last period, and emails a styled HTML report.

Scheduled AI Report with n8n is a free AI agent skill on Agensi by AMIN REDA, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [AMIN REDA](https://www.agensi.io/creators/amin-reda)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0
- Last updated: 2026-11-19
- Security: scan passed (2026-11-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/scheduled-ai-report-with-n8n
- Tags: automation, n8n, reporting

## About this skill

Turn a pile of recurring emails or records into a weekly (or daily) analytical report that sends itself.

1. **Schedule.** Schedule Trigger with an explicit timezone. Compute the period window (for example last 7 full days) in a Code node and pass `period_start` and `period_end` forward.
2. **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.
3. **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 as `unspecified`, never guess.
4. **Aggregate.** In a Code node compute counts by type, severity and location, open versus closed, and top repeated root causes.
5. **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.
6. **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.
7. **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).
8. **Send and store.** Email the report, then save this period's aggregates for next time's comparison.
9. **Failure path.** Error Trigger sends an alert to the owner if any step fails, so a missing report is never silent.

## Requires

- n8n
- Outlook or Gmail
- An LLM API key

## Known limitations

Designs the workflow, prompts and report template; it does not connect to your mailbox or deploy anything.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Scheduled AI Report with n8n skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Scheduled AI Report with n8n do?

Build an n8n workflow that reads recurring emails, extracts structured data with AI, compares with the last period, and emails a styled HTML report.

### Which AI agents support Scheduled AI Report with n8n?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Scheduled AI Report with n8n?

Connect your AI agent to Agensi through MCP, then ask it to use Scheduled AI Report with n8n on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
