Don't hand your AI agent your personal email. Give it a mailbox of its own.

Reddit r/AI_Agents Tools

Summary

Advises giving AI agents their own managed email inbox with policy guardrails rather than using personal email to avoid prompt injection risks, using Nylas CLI as a solution.

Recurring mistake I keep seeing (and made myself): you build an agent that needs to send/read email, so you paste in your personal email's OAuth token and let it loose. Now a prompt-injected message can make your agent send mail as you, and there's no policy layer between the LLM and your inbox. The cleaner pattern is to give the agent its own managed inbox — a real address, not a borrowed one — plus rules that run before the agent ever reads a message. Full disclosure, I work on the Nylas CLI, so I'm biased. But the "give your agent a human's inbox" anti-pattern predates us and it's the part I'd want people to get right regardless of tool. Here's the approach. One-time setup signs you up, connects an email account, and spins up a free domain for agent accounts: # signup + connect email + free agent-accounts domain nylas init Then provision a dedicated address (no OAuth handshake, no human mailbox) and attach policies: # provision a mailbox the agent owns nylas agent account create [email protected] # add a guardrail that runs before the agent sees mail # e.g. block a sender domain outright nylas agent rule create \ --condition from.domain,is,example.com \ --action block The address can send transactional mail and receive replies, so the agent has a real two-way channel instead of a fire-and-forget SMTP hack. Policies can block / archive / route messages before they hit the model — the part people skip and then get burned by prompt injection. Wire it into an agent through MCP and the model gets email as a tool without you hand-rolling Gmail/Graph API code per provider. How's everyone else scoping inbox access for agents? Separate account + policies, or something else?
Original Article

Similar Articles

gave my agent its own email inbox, things i'd do differently

Reddit r/AI_Agents

A practitioner shares lessons learned from running an AI agent with its own email inbox — dedicated address, own domain for reputation, draft-only mode to guard against prompt injection, signed webhooks, and human-accessible inboxes — after Grok Bot shipped similar functionality.

Separate inbox for every agent?

Reddit r/AI_Agents

作者为每个 AI agent(intake、audit、broker desk、signup 等)分配独立邮箱,甚至为每个任务创建短期的 run-xxxx 邮箱来接收验证码,认为比共用一个 Gmail 更整洁,并询问他人是否有类似的按任务建邮箱的做法。