Skip to content

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title EETRE - Enterprise Email Triage & Response Environment
emoji 📧
colorFrom blue
colorTo green
sdk docker
pinned true

EETRE — Enterprise Email Triage & Response Environment

Inbox chaos? Same.
EETRE is an OpenEnv environment that trains an LLM agent to handle enterprise email like a real ops teammate.

It does 4 practical actions:

  • reply
  • escalate
  • archive
  • mark_spam

And yes, escalation can send real Slack alerts.


Why I Built This

I was missing important emails because of volume.
Promotions, spam, notifications, and real incidents were all mixed together.

So I built EETRE to answer one question: Can an agent make correct workflow decisions in a real inbox, not just classify text?


Theme Fit (Hackathon)

  • Theme #1: Multi-Agent Interactions
    • Reasoning Agent -> Decision Agent -> Auditor Agent
  • Theme #3: World Modeling (Professional Tasks)
    • Real mailbox actions via IMAP/SMTP + Slack escalation webhook

What The Agent Sees and Does

Item Details
Agent sees sender, subject, body, priority
Agent can do reply, escalate, archive, mark_spam
Reward based on action correctness, response quality, efficiency
Modes simulated curriculum + live mailbox

Multi-Agent Flow (Simple)

  1. Reasoning Agent reads the email and finds intent/risk.
  2. Decision Agent picks one action.
  3. Auditor Agent blocks unsafe choices (example: replying to suspicious mail).
  4. Environment executes action and returns reward.

Results

Source files: plots/eetre_training_results.png, plots/eetre_reward_curve.png.

Embedded images load from GitHub raw so they work in the GitHub UI and in the Space README without storing PNGs in the Space Git repo (HF rejects large/binary PNG pushes unless you use Git Xet). Push origin first so these URLs resolve, then push the Space using SPACE_PUSH.md (Xet or the no-binary scripts/push_hf_lite.sh).

Training results (SFT / summary)

Reward curve (curriculum / GRPO)

Metric Value
SFT loss reduction 37.5 -> 18.1 (51%)
GRPO reward improvement 0.608 -> 0.833 (37%)
Training steps 96
Avg trained reward 0.836

End-to-end system in action

Problem → system → proof → impact in five steps.

1. Real inbox chaos

Mixed inbox: spam, notifications, and critical mail

Mixed inbox with spam, notifications, and critical emails.

2. Critical incident detected

Production-style email needing attention

Example of a production issue email requiring immediate attention.

3. Intelligent escalation (core feature)

Structured escalation to Slack

The agent escalates critical incidents to Slack with structured context.

4. Context-aware response

Automated reply with substance

Meaningful replies instead of generic auto-responses when a reply is the right action.

5. External validation

Independent benchmark on EETRE

Third-party tool run on this repo for a quick sanity check—not part of EETRE’s training stack.

Context: Nitish Kulkarni (ex–Google ML/AI, building NextToken) emailed in April 2026 with a free preview flow: exploratory analysis, model training, and interactive dashboards in a notebook-style agent. He linked a pre-populated prompt to run on openenv-email-triage-benchmark (the screenshot above is from that run). EETRE itself stays OpenEnv + TRL + your Space; NextToken is optional external validation and a nice “someone else drove the repo in a UI” datapoint for judges.

Step What it signals
Inbox Problem
Incident Trigger
Slack Action
Reply Intelligence
Benchmark Credibility

Quick Check (API)

curl -X POST https://Vetri17-openenv-email-triage-benchmark.hf.space/reset \
  -H "Content-Type: application/json" \
  -d '{"task_id":"medium"}'

Links


One-liner

EETRE turns inbox chaos into actionable workflows — detecting, deciding, and executing in real time like an ops teammate.

About

AI email triage environment with OpenEnv API, tasks, graders, and agent benchmarks.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages