Dev.to
7/13/2026

Require human approval before your agent sends email
Short summary
A guide to building a human approval queue for AI email agents using the Nylas Drafts API. Instead of letting agents send directly, they create drafts in the mailbox's Drafts folder; a human reviews and approves, and the approved draft is sent byte-for-byte unchanged. This ensures what the reviewer saw is exactly what went out, leveraging email infrastructure rather than reinventing a buffer queue.
- •Agents draft instead of send, using the mailbox's native Drafts folder as an approval queue
- •Sending an approved draft is a single atomic API call — no reassembly or regeneration race conditions
- •Approval state lives in your database since Agent Accounts don't support custom metadata; Nylas stores the message, your app stores the verdict
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



