Folder Automation: Let Rules Sort the Agent's Mail Nylas Agent Accounts, currently in beta, support server-side mail rules that sort, tag, and discard email before webhooks fire, reducing LLM inference costs by routing messages to custom folders. Rules match on sender fields with operators like 'is' or 'contains' and can assign to folders, mark as read, archive, trash, or block. This infrastructure-level filtering ensures agents only process relevant messages, with rules organized by priority and grouped by workspace. How many of your email agent's LLM calls are spent classifying newsletters? If your architecture is "webhook fires, model decides," the honest answer is: all of them. Every mailer-daemon notice, every drip campaign, every "we've updated our privacy policy" gets a full inference pass just to conclude ignore this . You're paying reasoning prices for routing work. There's an older, cheaper tool for routing work: mail rules. Nylas Agent Accounts https://developer.nylas.com/docs/v3/agent-accounts/ — API-controlled hosted mailboxes, currently in beta — support server-side rules that sort, tag, and discard mail before your webhook fires, so the agent only reasons over what's left. Every Agent Account ships with six system folders — inbox , sent , drafts , trash , junk , archive — and you can create custom ones alongside them system folder names are reserved : curl --request POST \ --url "https://api.us.nylas.com/v3/grants/