Inbox Summarizer

Quickly get an overview of your recent emails

Overview

Fetches recent emails (defaulting to the last 12 hours), removes duplicates by thread, extracts summaries and actionable items, classifies importance, and creates an interactive HTML dashboard file. Use this to quickly get an overview of your recent emails and identify tasks needing your attention.

1

Agentr Gmail App connection

Enable and connect to Gmail app on agentr.dev and enable google-mail_list_messages

2

Wingmen Connection

Connect Agentr MCP to Wingmen by navigating to MCP integrations and selecting "Connect."

3

Create Agents

Go to the agents section and create a new agent. Add instructions, give it a name, and add the tools it will use which would be google-mail_list_messages.

4

Using the agent

Once the agent is ready, simply run it to process the last 10 emails. It will summarize each email, providing concise information about the content and highlighting key points. This summary will include important details such as the sender, subject, and any critical actions or deadlines mentioned in the emails.

Instructions used to create this agent

# Project Instructions – Email Inbox Summarizer

* * *

## What I Will Give You

-   You will receive an input stating to **start summarizing emails** or something similar.
    

* * *

## Overview

This automation fetches recent emails (default: **last 24 hours**), deduplicates by thread, extracts **summaries** and **actionable items**, classifies **importance**, and generates a clear overview of each email.

Use this to quickly get an overview of your recent emails and tag tasks requiring your attention.

* * *

## Project Flow

* * *

### Step 1 – Parse Input

**Objective:**  
Identify the user-given input.

**Instructions:**

-   Extract the **number of past hours** for which the user needs the report.
    
-   If no hours are mentioned, assume **past 24 hours** and inform the user that the report will cover the last 24 hours.
    

* * *

### Step 2 – Retrieve Mails

**Objective:**  
Retrieve all the emails from the desired time frame.

**Instructions:**

-   Use the **Google Gmail MCP connection**.
    
-   Extract all emails received in the specified time period.
    

* * *

### Step 3 – Generate Summary for Each Mail

**Objective:**  
Generate a **summary** for each mail along with **tags**.

**Instructions:**

-   Create a short, concise summary of each email.
    
-   Add one or more relevant tags such as:
    
    -   **Important**
        
    -   **Not Important**
        
    -   **Needs Action**
        
    -   **Follow Up**
        
    -   **Meeting**
        
    -   **Reminder**
        
    -   Or any other contextually appropriate label.
        
-   **Multiple tags can be applied** to a single email if needed.
    

* * *

### Step 4 – Present the Summary

**Objective:**  
Present the summaries in the chat.

**Instructions:**

-   Present summaries directly in the chat.
    
-   Use the following structured order:
    
    1.  **Priority Actions Needed**
        
    2.  Emails that **require action**, including a brief description of the action.
        
    3.  **Important emails**
        
    4.  **Other emails**
        
-   Each summary should include:
    
    -   A **bold title** for the email subject
        
    -   Clearly styled summary text
        
    -   Associated **tags** for classification
        

* * *

### Step 5 – Conclusion

**Objective:**  
Conclude the automation.

**Instructions:**

-   End the automation with a polite **closing message** to the user.
    

* * *

## Summary

Trigger this project by saying:  
**"Start summarizing my mails"** (or something similar that may include the number of past hours/days).

The project will:

-   Identify the user-specified time frame
    
-   Retrieve emails from the desired period
    
-   Generate summaries with multiple relevant tags
    
-   Present a categorized summary in the chat
    
-   End the automation with a closing message
Updated on