# AI email agent: triage the inbox and draft every reply

An AI email agent earns its place when you open your inbox to a short list instead of a long one: the handful of messages that need you, each with a reply already drafted, and a count of everything you can ignore.

This is the Inbox Manager bot. It reads new mail through the Gmail or Outlook connection, sorts it, and saves drafts. It learns from your corrections: tell it a sender belongs in low priority and it saves the rule to memory.

Updated November 23, 2026.

## What it does

- Sorts new mail into reply needed, for your information, and low priority
- Drafts short replies in your voice and leaves blanks where only you know the answer
- Puts complaints and deadlines first
- Saves sorting rules from your corrections

## Worked example

Maya runs operations at a coffee roaster. Fourteen emails arrived between 8:00 and 10:30: customers, suppliers, colleagues and the usual notifications.

### Instructions

```text
You triage the user's email so they only read what matters.

- Sort new mail into: reply needed, for your information, and low priority.
- For anything that needs a reply, write a short draft in the user's voice.
- Never send, delete or archive email unless the user asks for that message.
- Learn from corrections: when the user says something was sorted wrong, save the rule to memory.
```

### Prompt

```text
Triage the email that came in since 8:00 (below, as the email app would return it). Draft replies for anything that needs one. I'm Maya, head of ops at Northwind Coffee.

1. From: Priya Shah <priya@harbor-design.co> | 08:14 | Subject: Friday review
Hi Maya, something came up Friday morning. Could we move the packaging review to the afternoon? 2 or 3pm both work for me.

2. From: billing@cloudhost.example | 08:20 | Subject: Your card ending 4412 expires on Nov 30
Update your payment method to avoid service interruption.

3. From: Sam Ortega <sam@ortega-roasters.com> | 08:31 | Subject: Wholesale order #2291
Hi Maya, can you confirm the 40kg of Huila arrives before Dec 5? We have a holiday blend run that week. If not, we'll need 20kg of anything similar to bridge.

4. From: newsletter@specialtycoffee.example | 08:40 | Subject: This week in coffee: harvest outlook

5. From: no-reply@calendar.example | 08:45 | Subject: Updated invitation: Ops weekly (Tue 10:00 -> Tue 10:30)

6. From: Leah Kim <leah@northwindcoffee.com> | 09:02 | Subject: Q4 numbers for the board deck
Maya, I need the Q4 ops numbers (on-time delivery, waste %, cost per kg) by noon Thursday for the board deck. Can you send them or tell me who should?

7. From: deals@officesupply.example | 09:10 | Subject: 30% off paper cups this week

8. From: Tomas Riedel <tomas@riedel-logistics.de> | 09:22 | Subject: Rate change from January
Hello Maya, from January 1 our pallet rate to your Leeds site rises from EUR 84 to EUR 91. Happy to discuss a 12-month commitment at EUR 87. Let me know by Dec 10.

9. From: GitHub <noreply@github.com> | 09:30 | Subject: [northwind/site] 3 new commits

10. From: Hannah Reed <hannah@northwindcoffee.com> | 09:41 | Subject: FYI roaster maintenance
Just so you know, Roaster 2 is down for maintenance Wed 6-10am. Production plan already adjusted, nothing needed from you.

11. From: events@expo.example | 09:50 | Subject: Last chance: early bird tickets

12. From: Dev Patel <dev@brightcafe.co.uk> | 10:05 | Subject: Complaint: last two deliveries late
Maya, our last two deliveries arrived after 11am, after our morning rush. This is the second time this month. What's going on, and can you guarantee before-9am delivery?

13. From: no-reply@bank.example | 10:12 | Subject: Your statement is ready

14. From: Ines Duarte <ines@northwindcoffee.com> | 10:20 | Subject: Interview panel Thursday?
Could you sit on the panel for the logistics coordinator role, Thu 3-4pm? Totally fine to say no.
```

### Apps it uses

- [Gmail](https://rakazo.com/integrations/gmail/): reads new mail, applies labels and saves drafts
- [Outlook](https://rakazo.com/integrations/outlook/): the same with folders, categories and draft replies
- [Google Calendar](https://rakazo.com/integrations/googlecalendar/): checks a time before it offers one

### Output (Claude Sonnet 5.5, unedited)

Hi Maya, here's the triage of the 14 emails. I haven't sent, archived or deleted anything.

## Reply needed

**1. Priya Shah: Friday review** (08:14)
> Hi Priya, no problem. 3pm on Friday works for me. I'll move the invite. Thanks for letting me know. Maya

I picked 3pm, so change it if 2pm suits you better. I haven't checked your calendar.

**3. Sam Ortega: Wholesale order #2291** (08:31). This is time-sensitive.
> Hi Sam, thanks for flagging the Dec 5 deadline. I'm checking the Huila arrival date with the team and will confirm by [day]. If it can't make it, I'll send you 20kg of a similar coffee to bridge. Maya

You need to confirm the Huila ETA before you send this.

**6. Leah Kim: Q4 numbers** (09:02). Due by noon Thursday, Nov 26.
> Hi Leah, I'll get you on-time delivery, waste % and cost per kg by noon Thursday. [Or: [name] will send them.] Maya

Decide whether you'll send the numbers yourself or hand it to someone.

**8. Tomas Riedel: Leeds rate change** (09:22). Reply by Dec 10.
> Hi Tomas, thanks for the heads-up on the January rate. We're interested in the 12-month commitment. Could you send the terms in writing? I'd like to see if we can get closer to EUR 84. I'll confirm by Dec 10. Maya

This commits you to nothing, but you may want to check volumes first. The commitment would be EUR 87 against EUR 91, which is roughly 4.4% less.

**12. Dev Patel: Late deliveries complaint** (10:05). This is a customer complaint, so I'd answer it first.
> Hi Dev, I'm sorry about the two late deliveries. I know they missed your morning rush. I'm looking into what happened and will come back to you by [day] with the cause and a fix. I'd rather give you a delivery window I can keep than promise before-9am before I've checked it. Maya

I left out a guarantee on purpose. Tell me if you want to offer one.

**14. Ines Duarte: Interview panel** (10:20). She needs a yes or no for Thursday 3-4pm.
> Hi Ines, yes, happy to join Thursday 3-4pm. Maya

I can write a decline instead if you prefer. Thursday is also the day Leah's numbers are due.

## For your information
- **2. CloudHost billing:** your card ending 4412 expires Nov 30. Update it before then to avoid an interruption. Worth doing soon, but no reply is needed. I haven't opened the link in the email.
- **5. Calendar:** Ops weekly on Tuesday moved from 10:00 to 10:30.
- **10. Hannah Reed:** Roaster 2 is down Wednesday 6-10am. The production plan is already adjusted and she needs nothing from you.
- **13. Bank statement:** it's ready to view.
- **9. GitHub:** 3 new commits on northwind/site.

## Low priority
- **4.** Specialty coffee newsletter
- **7.** Paper cups, 30% off
- **11.** Expo early-bird tickets

Which drafts should I tweak, and what should I fill in for the items marked [ ]? I'll note any sorting corrections for next time.

### Cost per run

| Model | Tokens in | Tokens out | Cost per run | Time |
| --- | --- | --- | --- | --- |
| Claude Sonnet 5.5 | 16,187 | 1,157 | $0.052 | 10s |
| GPT-6.2 Sol | 8,365 | 689 | $0.024 | 13s |
| GPT-6 Luna | 9,006 | 1,256 | $0.002 | 13s |

Measured on November 23, 2026 (Claude Sonnet 5.5 the day before) on Rakazo 0.14.0 through OpenRouter, with no model-side caching, at each provider's list price. The data an app connection would return was pasted into the prompt, so a live run adds the tool calls that fetch it, and costs more the more it reads. Rakazo adds the bot's instructions, tools and memory (about 9,000 to 16,000 tokens, depending on the model) to every run.

## Run it on a schedule

> Every weekday at 8:00 and 15:00, triage my new email and draft replies. Don't send anything.

- Claude Sonnet 5.5: about $2.29 a month in model usage, weekdays at 8:00 and 15:00.
- GPT-6.2 Sol: about $1.04 a month in model usage, weekdays at 8:00 and 15:00.
- GPT-6 Luna: about $0.07 a month in model usage, weekdays at 8:00 and 15:00.

## What it won't do without you

- Never sends, deletes or archives a message unless you ask for that one
- Doesn't guess facts it can't check: it leaves a [blank] and tells you
- Doesn't open links in billing emails

## If you only want email help

If all you want is an assistant that lives in your inbox, with no other bots or tools, [Inbox Zero](https://www.getinboxzero.com/?utm_source=rakazo&utm_medium=website&utm_campaign=use-cases) is built for exactly that, by the same company. Rakazo's email agent is for when email is one of several jobs: it can also read your calendar, update your CRM or hand a thread to your account manager bot.

## Set it up

1. Create a bot and paste the instructions above, or ask any bot to set one up for this job.
2. Connect the apps it needs from chat ("connect my Gmail") or from **Integrations**.
3. Send the prompt once and correct what it gets wrong; it saves your rules to memory.
4. Ask it to turn the prompt into a routine on a schedule.

## FAQ

### Does the AI email agent send emails on its own?

No. It saves drafts. Sending is an action that asks for approval in **Ask** and **Auto** modes, and the bot's instructions also tell it never to send unless you ask for a specific message.

### Does it work with Gmail and Outlook?

Yes, through Rakazo's Gmail and Outlook connections. They differ in how mail gets organized: Gmail uses labels, Outlook uses folders, categories and server-side rules. See the [Gmail page](https://rakazo.com/use-cases/ai-email-agent-gmail/) and the [Outlook page](https://rakazo.com/use-cases/ai-email-agent-outlook/).

### How much does it cost to triage email with AI?

The measured run below cost a few cents per triage. Twice a day on weekdays is about 44 runs a month. You pay your model provider directly, or use Rakazo credits at the provider's price.

## More use cases

- [AI email agent for Gmail](https://rakazo.com/use-cases/ai-email-agent-gmail/): Labels, drafts and threads: how the email agent works in Gmail.
- [AI email agent for Outlook](https://rakazo.com/use-cases/ai-email-agent-outlook/): Folders, categories and server rules: the email agent in Outlook.
- [AI chief of staff](https://rakazo.com/use-cases/ai-executive-assistant/): A Monday briefing that leads with the decisions only you can make.
- [All use cases](https://rakazo.com/use-cases/)
