The categories
Each message is classified into one of five categories; the orthogonaltodo flag comes on top (next section). All six values are accepted by the search_emails keywords filter:
| Value | What lands here |
|---|---|
direct | Personal emails from individuals and direct conversations |
receipt | Order confirmations, shipping updates, delivery notifications, purchase receipts |
newsletter | Regular updates, news digests, curated content |
notification | Security alerts, terms updates, service notifications |
promotional | Marketing emails, sales pitches, discount offers |
todo | Messages flagged as requiring action — see below |
$label:receipt and so on). In tool results they appear on the tags: line; in webmail they show as labels and are searchable.
To-do detection
Orthogonally to its category, each message is checked for whether it needs explicit action from you — a deadline, a payment, a form, a confirmation. Those messages get thetodo keyword on top of their category, which makes “what needs my attention?” a one-call query for an agent:
Tool call — search_emails
Summaries and the Morning Brief
Each processed message also gets a short generated summary. Once a day, the Morning Brief email delivers your open to-dos and the categories you opted into — in the language you choose — so the default way to consume a busy inbox is one email, not fifty. You configure the brief (categories, language) in the Langmail app. If you choose the clean-inbox style, handled messages are auto-archived after classification, keeping the inbox itself down to what matters.Connected Gmail accounts
You can connect one or more Gmail accounts to the same Langmail user. Their mail is synced in — live updates plus historical backfill — and processed by the same pipeline. State flows back too: a to-do appears in Gmail as aTodo label, and archiving in Langmail archives in Gmail, whether the change came from an agent, MCP, or webmail. Mirroring is on by default and can be disabled per account.
Agents see one unified mailbox: synced Gmail messages and native
@langmail.me mail are searched by the same tools with the same filters.