An OpenEnv-compatible environment where an AI agent triages emails by deciding what to do with each one.
Built for the OpenEnv Hackathon – Round 1.
🌍 Environment Description
In a real workplace, people spend hours every day managing email. This environment simulates that task: the agent receives emails one at a time and must choose the correct action for each.
Why email triage?
It's a task every professional does
Actions have clear right/wrong answers
Replies can be evaluated for quality
Scales easily from simple to complex scenarios
🎮 Action Space
Action
Description
reply
Send a reply (must include reply_text)
archive
Save for reference, no action needed
escalate
Forward to management immediately
delete
Permanently delete the email
spam
Mark as spam
json
1{"action_type":"reply","reply_text":"Dear sender, thank you for reaching out..."}2{"action_type":"archive"}3{"action_type":"escalate"}
👁️ Observation Space
Each step returns an observation with these fields:
Field
Type
Description
email_id
string
Unique ID for this email
subject
string
Email subject line
sender
string
Sender email address
body
string
Email body text
success
bool
Whether the last action was valid
done
bool
Whether the episode is finished
reward
float
Score for the last action (0.0–1.0)
message
string
Human-readable feedback
📋 Tasks
Task ID
Difficulty
Emails
Description
easy
⭐ Easy
3
Clearly labelled spam and routine emails
medium
⭐⭐ Medium
4
Mix of replies, escalations, and archives
hard
⭐⭐⭐ Hard
5
Ambiguous emails requiring nuanced judgment
🏆 Reward Function
1.0 — Correct action taken
0.6–1.0 — Correct reply with keyword quality scoring
0.5 — Correct action type (reply) but no reply text provided
0.3 — Partially correct (e.g. escalated instead of replied)