# Weekly Deals

> Transform Gmail and Outlook promotional emails into a structured weekly savings calendar with verified offer tracking.

Weekly Deals is a free AI agent skill on Agensi by FlyPig23, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [FlyPig23](https://www.agensi.io/creators/flypig23)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-09
- Security: scan passed (2026-10-09); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/weekly-deals
- Tags: automation, python, gmail-api, outlook, productivity

## About this skill

Manual tracking of promotional emails is a time-sink that often results in missed deadlines and clutter. DealWeek automates the extraction of coupons, discounts, and travel offers from Gmail and Outlook, turning a messy inbox into a structured savings calendar.

### What it does
- **Inbox Processing** scans Gmail or Outlook for promotional content using JEV classification to filter out noise.
- **Fact Extraction** pulls promo codes, redemption deadlines, and material restrictions into structured data.
- **Duplicate Grouping** identifies repeated marketing campaigns to prevent calendar clutter while preserving unique offers.
- **Savings Validation** flags offers that require a minimum spend above the user's typical habits or have conflicting terms.
- **Calendar Generation** renders a self-contained HTML or JSON weekly view organized by category and expiration status.

### How it works
1. **Status Check** runs `weekly-deals status` to verify Python environment, mail permissions, and JEV API configuration.
2. **Mail Ingest** fetches messages from authorized providers and exports them as `.eml` files for normalization.
3. **Scan and Dedupe** processes the local files to classify content and group repeating promotions using the configured budget.
4. **Calendar Render** generates the final `savings` report or HTML calendar to review upcoming deadlines and verified offers.

### Frameworks & tools
Built for Python 3.11+. Interfaces with Gmail API and Microsoft Graph/Outlook connectors. Uses JEV for classification and deduplication, with local storage for normalized email bodies and extraction drafts.

### Why this beats prompting it yourself
Generic prompts often hallucinate deadlines or ignore fine-print restrictions hidden in footnotes. This tool uses deterministic validation to ensure every extracted claim is backed by a verbatim quote from the source text.

### Use cases
- **Grocery Budgeting** by extracting weekly food and dining offers into a meal planner.
- **Travel Tracking** to monitor expiration dates for airline and hotel promo codes.
- **Subscription Management** by flagging "needs confirmation" terms for recurring services.

### Known limitations
Requires Python 3.11+. Does not support Outlook `.msg` files directly. Cannot read terms embedded in images if `has_unparsed_visuals` is flagged. Extraction is primarily optimized for food and dining.

## Requires

- Python

## 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 Weekly Deals 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

### How does this skill help manage promotional email clutter?

This skill automates the extraction of promo codes and deadlines from your Gmail or Outlook inbox, organizing them into a structured, noise-free savings calendar so you never miss a discount.

### What platforms and technical environments are required to run this skill?

The skill requires a Python 3.11+ environment and authenticated access to the Gmail API or Microsoft Graph; it is designed to integrate with AI agents capable of executing local Python scripts.

### How does the extraction accuracy compare to simply asking an LLM to summarize my emails?

Unlike basic prompts, this skill uses deterministic validation to cross-reference extracted dates and terms against the source text, significantly reducing the risk of hallucinated deadlines.

### Are there specific types of offers or file formats that the skill cannot process?

Currently, the skill is optimized for food, dining, and travel promotions; it cannot process offers embedded purely in images or read Outlook .msg files directly.

### What exactly is included in the download package for this skill?

The purchase includes the full Python source code for the skill, JEV classification configurations, and the documentation needed to connect your mail providers and generate the calendar reports.

---

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.
