InboxNest
  • ai agents
  • api
  • support email

Email for AI agents: how to give an AI agent its own inbox

By InboxNest 7 min read

A cream envelope, navy headphones, and an orange cup on a wooden desk

You have an AI agent that can research a question, call an API, and finish a task on its own. Now you want people to email it. Give it an address, let it read what arrives, and have it answer.

A model does not come with an inbox. It cannot receive mail at support@yourapp.com, or send a reply from your domain, until you connect it to something that handles email. You can build that yourself, or use a service built for agents. InboxNest is one option: branded addresses, a REST API, webhooks, and MCP. The agent can read customer messages, save a draft, or send a reply when you allow it.

Why would an agent need its own address?

Not every conversation happens in a chat window. Customers send support questions by email. Vendors send invoices. People reply hours or days later. Email is good at that kind of delay, and an agent with an address can take part.

You might build an agent that:

  • Prepares answers to support requests.
  • Reads a question and looks up the answer in your docs.
  • Sorts mail by urgency and flags what needs a person.
  • Answers the straightforward questions itself.
  • Watches several products from one inbox.

The last one matters if you run more than one product. support@productone.com and help@producttwo.com can share an agent, while the customer still sees the company they wrote to. They are emailing your business, not a mailbox the agent happens to use.

What the agent needs

Four pieces make the setup work.

1. A real address

People need somewhere to write, such as support@yourapp.com. That takes a domain and a service that accepts mail for it. MX records tell other servers where to deliver it (RFC 5321). The MX checker shows where a domain’s mail is going before you publish the address.

2. A way to read what arrived

Once a message lands, the agent has to retrieve it, including the rest of the thread. A reply from three days ago only makes sense next to what was already said. An HTTP API is simpler than logging into IMAP.

3. A way to hear about new mail

A webhook is cleaner than polling. When mail arrives, the service notifies your application, which then fetches the message.

4. A way to reply

The answer has to leave from the address the customer wrote to, stay in the same conversation, and pass authentication so it is not dropped as spam (RFC 6376). You also decide whether the agent may send on its own or only prepare a draft. A useful setup does both.

Give the agent an inbox with InboxNest

InboxNest runs the addresses, inbound mail, stored conversations, the API, webhooks, and a hosted MCP server. You do not stand up SMTP first.

Step 1: Connect the domain

Create an account and connect the domain. If nothing else receives mail there, point its MX records at InboxNest. If you already use Google Workspace, Microsoft 365, or another provider, keep that and forward only the support address. Direct MX or forwarding is the short version of that choice.

Step 2: Create the address

Add something like support@yourapp.com. One domain can have many addresses, and one account can have many domains, so each product keeps its own brand in a shared inbox.

After the domain is connected, the API can create addresses too: POST /addresses with the domain and the local part. On a domain that uses InboxNest’s MX records, the address is active immediately. On a domain that forwards, the address stays pending until someone adds the matching rule at the existing provider. Domains themselves are added in InboxNest, because the DNS change is a person’s job.

Step 3: Connect the agent to the API

The API is at https://tryinboxnest.com/api/v1/. A key with inbox:read can list unread conversations and open one thread:

GET /conversations?unread=true

GET /conversations/{id}

Leave off mail:send and the agent can read and, with drafts:write, save drafts, without sending. A key can also be limited to some domains, so an agent for one product gets a 404 for the others. The API docs cover authentication, endpoints, and those permissions. Any language that can send HTTP is enough.

Step 4: Subscribe to new mail

Subscribe an endpoint to message.received. When a customer writes, InboxNest POSTs a signed event. The body includes the conversation id, the address it arrived at, the sender, the subject, and a short preview, not the full message. Verify the signature, then load the thread with GET /conversations/{id}. Each event has its own id, so a retry does not have to be processed twice. If your endpoint is down, InboxNest retries for about a day. The webhook docs have the signature format and the event list.

Step 5: Save a draft

A customer writes: “I upgraded yesterday, but my account still shows the old plan.” The webhook fires, the agent loads the conversation, and your application can check the subscription in your own billing system before the model writes. Save the result with POST /drafts. Nothing is sent. You edit or send it. The agent does the repetitive writing, and a person still decides what the customer receives.

Can the agent reply on its own?

Yes, after you have watched the drafts and trust it with a narrow kind of question. Sending stays off for AI integrations until the account owner turns on Allow AI apps to send replies. The key also needs mail:send. While the switch is off, the API refuses to send.

A reply stays on that conversation. The agent cannot swap the recipient or send it from another brand. Each key can send 30 replies an hour and 200 a day, on top of the account’s own limits. Suppressed and bounced addresses are refused, and a run of delivery problems can pause that key while it can still read and draft.

Your application still chooses which messages are safe. Explaining where a feature lives is a reasonable thing to automate. Promising a refund, changing billing, or making a security decision from the email alone is not. Customer text can also contain instructions aimed at the model. Treat it as untrusted data, not as orders. The agent guide is the safety model in one place.

API or MCP?

Use the API when the agent runs on its own. Your server receives the webhook, chooses the data, and decides the action. That can be an LLM call, an agent framework, or ordinary application code.

Use MCP when a person is talking to Claude, ChatGPT, or Claude Code. MCP is the open way for an assistant to call tools in another service (Model Context Protocol specification). InboxNest’s server is https://tryinboxnest.com/mcp. You can ask the assistant to check the inbox, find a thread, or prepare a reply, without writing a separate automation. Email MCP server goes further on that connection.

You can use both. The same addresses and conversations back an assistant you talk to and an agent that runs in the background. One API key works on both, with the same permissions and the same sending switch.

Does every agent need its own inbox?

Not always. A support agent and a billing agent on one product may want different addresses and one place to manage the threads. Several products usually want their own branded addresses, with one agent working across them. Limit each key to the domains it should see. The aim is the access each agent needs, not more mailboxes.

Do you need Gmail or Google Workspace?

No. Gmail is useful when an assistant must read a mailbox you already have. A new support address does not need its own Workspace seat. Create it on a domain you own, or forward that one address from the provider you already use and leave the rest of the mail alone.

What to look for

A notification sender is a different job from an agent that receives support mail and keeps the thread. For the second, look for inbound delivery, the full history, an API, webhooks, and permissions that keep sending under your control. An automated answer does nothing if it never arrives, and you should be able to see what was sent: InboxNest labels those messages “Sent by API,” with the key’s name, and lists the requests in Settings.

Give the agent a real address

Connect the domain, create the addresses, and use the API and webhooks. Start with drafts you approve, then automatic replies for the tasks you trust. The same inbox is on the hosted MCP server if you would rather ask Claude or ChatGPT, and several products can share the account without sharing a From address.

Try InboxNest free

Give every product its own support address and answer them all from one inbox, with replies that always come from the right brand. Start with a 7-day free trial.