Most companies have a shared mailbox: customer requests, supplier notices, invoices and support issues all land in the same place, and someone has to read every message, work out what it is, how urgent it is, and who should handle it.
In this tutorial we automate the first read . An AI agent analyses each incoming email and produces a structured, validated triage result for a person to review.
The scope is deliberately small: no CRM, no ERP, no automatic replies. The agent gets no tools at all, so it cannot change company data or send anything. It reads, and it writes JSON.
We'll use ARA , an open-source agent runtime for Java 21: plain interfaces and records, no Spring, no reflection, no annotation magic.
Setup
The event API used here ( AraEvent , EventTrigger , EventBroker ) is on ARA's main branch, version 1.0.4-SNAPSHOT .…