Give an agent its own email address. People email it to start work, and it replies in the thread and sends mail with attachments.
Each of your AI teammates can have its own inbox, with an address like assistant@yourcompany.ongamut.so. Every email thread becomes one conversation with the agent. It replies in the same thread, can email people on its own, and attaches files it made.
This is the agent's own address. It isn't your Gmail or Outlook. To have an agent work in your own mailbox, connect that account to it instead (see Connected accounts).
Before you start
- You need to be an owner of the agent. Only owners can add an inbox or change who can email it.
- The workspace must be connected to a Gamut account. If it isn't, the setup form says Connect Platform to set up email.
Cloud workspaces are already connected. Go straight to setup.
Sign in to your Gamut account: open Settings > Account and click Connect Account. Mail sent while the app is closed waits for the agent and is read once it's back online.
Connect the server to your Gamut account: open Settings > Account and click Connect Account. Email doesn't need a public address or any extra environment variables.
Set up an inbox
Open Email on the agent's home
Open the agent and find the External Integrations card. Click Email (or Add Integration > Email if the agent already has integrations).
Name the sender and the inbox
- Sender name is the name people see in their inbox. It starts as the agent's name.
- Inbox name is the part before the
@. Use letters, numbers, dots, underscores or hyphens, up to 64 characters. The form previews the full address as you type.
Choose who can email the agent
Pick an Email access level (see below). The form lists exactly who the agent will accept mail from.
Click Create inbox
The first inbox in your company also sets up your email domain, which can take a few minutes. When it's ready, send the agent an email to start a conversation.
You can also ask the agent to set up its own inbox. It picks the inbox name and sender name. It can't choose who may email it: its inbox always starts on Agent users + replies, and only an owner can change that.
- You:
Set up an email inbox for yourself so the team can send you invoices.
- Agent:
Done. My inbox is ready. It accepts mail from my users, and replies to emails I send.
EmailConnected- Address
- invoices@yourcompany.ongamut.so
- Sender name
- Invoice Assistant
- Email access
- Agent users + replies
Who can email the agent
Email access controls both who can write to the agent and who it can write to.
| Email access | Who can start a conversation | Who the agent can email |
|---|---|---|
| Agent users only | Verified users and owners of the agent | The same people |
| Agent users + replies (default) | Agent users, plus anyone the agent emailed, when they reply in that thread | Anyone |
| Allowed domains only | Anyone with an address at the domains you list | The same domains |
| Anyone | Anyone | Anyone |
- For Allowed domains only, list exact domains, such as
company.com, team.company.com. Subdomains must be listed separately. - Every mode except Anyone checks that the sender's domain authenticates the message, so spoofed mail is turned away.
- Anyone makes it a public inbox: strangers can start conversations and use the agent's enabled tools. Keep approval requirements on for sensitive actions.
Change access later
Open the inbox from External Integrations. The Email Settings card shows the address, with a copy button, and the current Email access. Change it and click Save email access. Narrowing access applies from the next email onward.
What people see
- Replies in the thread. When the agent finishes a turn, it sends one complete plain-text reply to the sender, in the same thread. It doesn't send its tool steps or reasoning.
- Attachments. Files people attach land in the agent's workspace. Files the agent hands over come back as attachments on its reply.
- Questions. If the agent needs a quick answer, it emails a numbered list of options. Reply with the number, the option, or your own answer. It only does this in threads where just the agent's users would see the reply; elsewhere, the question waits in the app.
Ask the agent to send email
The agent can also start emails: to people, with Cc and Bcc, a subject and attachments, or as a reply in an earlier thread. It suggests recipients from the agent's users and people it has corresponded with. Every recipient is checked against the inbox's Email access before anything goes out.
- You:
Email the Q3 report to dana@company.com and cc me.
- Agent:
Sent from invoices@yourcompany.ongamut.so with the report attached.
Email sentDone- To
- dana@company.com
- Cc
- you@company.com
- Subject
- Q3 report
- Attachment
- q3-report.pdf
Ask it in any session, including a scheduled task, so a weekly report can go out by email on its own.
Conversations in the app
Each email thread is one session with the agent, and it never times out. Open the inbox from External Integrations to see them. Each incoming email shows as a card with its subject, sender and time. Expand it for the full From, To, Cc and Reply-To headers. Quoted earlier messages fold under Quoted history, and Agent input shows exactly what the agent received.
Event Delivery
The inbox page also has an Event Delivery card that says how new mail reaches the agent:
- Through webhooks. Mail that arrives while this agent is offline is read when it's back.
- Over a live connection to the email gateway. Mail that arrives while it's disconnected is read when it reconnects.
Gamut picks the path each time the inbox connects; there's nothing to configure. If it says It switches to webhooks the next time it connects, webhooks have become available and it moves over on its own.