Building an AI Employee Product? Get the Email Layer Right First
An AI employee has conversations, not sends. Seven things the email layer under an AI employee product must get right, and how to launch it safely.
By Toan Nhu

Picture the moment a customer "hires" the AI employee in your product. They name it Maya, give it a job in sales ops, and click start. Within an hour Maya needs to email a supplier, receive a reply, and follow up two days later in the same conversation.
If your product treats email as a send button, Maya is already stuck. An AI employee needs a mailbox: somewhere to receive, remember and reply. Here is a builder's checklist for the email layer under an AI employee product, and how to get each part right before your first customer finds the gap.
Why a send API is not enough
Most products start with transactional email: a template, a recipient, a send call. That works for password resets. It breaks for an employee, because employees have conversations. Replies come back, often days later, often with someone new on Cc. Attachments arrive. People forward things. The employee has to find the right thread, read the history, and answer in context.
So the real requirement is two-way, threaded, searchable mail with a stable address. Everything below builds on that.
1. Give each employee its own address at hire time
Create the mailbox in the same flow where the customer creates the employee. If the address is set up later, by hand, the first day of work is lost and support gets a ticket.
Make creation safe to retry. Signup flows time out and get replayed. In Mermail, creating a mailbox accepts an Idempotency-Key header, so a repeated request with the same key does not leave a duplicate. See Create a mailbox.
2. Treat threading as part of the product
When a supplier replies to Maya, the reply must land in the same conversation Maya started, and Maya's follow-up must stay in it too. That depends on headers like Message-ID, In-Reply-To and References being kept intact. Lose them and the customer sees a pile of disconnected messages. We explain the mechanics in why agent email threads break.
3. Send from the customer's domain
A customer wants Maya to write as maya@mail.theircompany.com, not from a generic address. Their domain carries their reputation, and recipients trust it.
Use a dedicated subdomain so the customer's main company email is never at risk. In Mermail, each workspace can connect one custom domain on a paid plan, and a domain that already has MX records is not accepted, which protects existing mail. See Custom domains and our guide to sending from your own domain.
4. Keep customers apart
One customer's employees must never see another customer's mail, settings or knowledge. Build that line into the data model, not just the UI.
Mermail's workspace is that line. It groups mailboxes, members, custom domains, billing and storage, and the docs suggest one workspace per team or customer deployment. API keys are bound to a single workspace, and a request naming a different workspace is refused. See Workspaces.
5. Treat inbound mail as untrusted
An employee that reads email can be targeted by email. A message can contain instructions aimed at the model, a malicious link, or an attachment that should never be opened automatically.
Design for it: keep the tools available to each employee small, require a person's approval for actions with outside effects, and handle attachments carefully. Mermail's docs state that email, quoted history and connected-tool output are untrusted context that cannot authorize an external effect or widen tool access. Our attachment safety guide covers the rest.
6. Keep every send on the record, with a person in the loop
When a customer asks "why did Maya send that?", you need the message, the thread, and whether a person approved it. Start with drafts: the employee writes, a person reviews, then it goes out. Mermail's built-in reply triager saves replies as drafts for review and does not send them on its own. For mail forwarded into Mermail from your original provider (Gmail, Outlook, iCloud Mail and others), if someone replies directly in the original mailbox, Mermail treats that as a human takeover and permanently stops AI processing for the thread.
7. Plan for the employee's last day
Employees leave. Customers churn. Decide early what happens to the address, its mail and its credentials when an AI employee is retired, so you do not leave live addresses that still receive password resets. See how to retire an AI agent without losing its email.
How Mermail maps to the checklist
- Own address per employee: a mailbox per agent, created in the console or by API.
- Conversations: threads, search and drafts inside each mailbox.
- Customer domains: one verified custom domain per workspace on paid plans.
- Isolation: workspaces and workspace-scoped API keys.
- Safe actions: human-in-the-loop drafts and explicit human takeover.
- Access for your agents: an MCP server with OAuth, a CLI, and a REST API.
- Payments when the job needs them: an Agent Wallet with PayBox for controlled agent payments.
What Mermail does not offer: there is no language SDK, so you call the REST API or use MCP and the CLI. Workspaces are created in the Mermail console rather than through the API.
A launch plan in five steps
- Map one workspace to one customer and store its API key with that tenant.
- Create the mailbox inside your "hire" flow with an Idempotency-Key, and save the mailbox id on the employee record.
- Ship with drafts only. Let customers approve sends during their first weeks.
- Offer the custom domain as an upgrade step once the customer is ready to publish DNS records.
- Write the offboarding path before your first churn, not after.
You can test the flow end to end in the Mermail console. For the API side of creating inboxes in code, read create an email inbox per AI agent by API.
FAQ
Should an AI employee use the customer's personal inbox?
Usually not. Its own mailbox keeps the customer's private mail out of reach and makes it obvious who sent what.
Can a customer have several AI employees?
Yes. Give each one its own mailbox inside that customer's workspace so their mail and drafts stay separate.
Can the AI employee send without approval?
It can, if you build it that way, but start with drafts. Mermail's reply triager saves drafts for review by default.
What about calendars?
Mermail can use Google Calendar context and calendar triggers through connected tools, but it is not a calendar product. Start with the mailbox and add calendar access only when the job needs it.


