Skip to content

Mailboxes

Thorsten Sommer edited this page Nov 17, 2026 · 2 revisions

Deutsch: Postfächer

Mailboxes let the AI answer from your e-mails. Ask, for example, "Which mails about the project offer are still unread?", "What did we agree on with the print shop in March?", or "How can I improve my draft to the travel office?" The AI searches your mails, reads the ones that fit, and lists them below its answer.

AI Studio doesn't ask your mail server anew for each question. It keeps a local index of your mails on your computer and synchronizes it with the server in the background. The AI therefore finds mails by their meaning as well as by their words, and it answers quickly.

Requires AI Studio v26.10.1 or newer. Mailboxes are a prototype: a work in progress, so expect bugs and missing features. The AI only reads your mails. It doesn't send, move, delete, or flag any.

Switching mailboxes on

  1. Open "Settings" → "App Options".
  2. Under "Preview feature visibility", choose "Show also prototype features: these are works in progress; expect bugs and missing features".
  3. Under "Select preview features", choose both "RAG: Preview of our RAG implementation where you can refer your files or integrate enterprise data within your company" and "Mailboxes: Let the AI search and read your e-mails, kept in a local index on your computer".

Mailboxes build on the data sources, so they need both features. The navigation bar then shows "Data sources", and you can add mailboxes there.

What you need

  • An embedding provider. It turns your mails into numbers that AI Studio can search. Set one up in "Settings" → "Configure Embedding Providers"; see Providers and Models. With an embedding provider in the cloud, every mail in the chosen folder and period goes to that provider, together with the text of its attachments, and embedding can cost money. AI Studio asks you to confirm this. An embedding provider on your own computer, for example, with ollama, keeps your mails with you.
  • A mailbox with IMAP access, and its username and password. Many providers want a step from you first, such as switching IMAP on in your webmail or creating an app password. When you add a mailbox, AI Studio tells you what your provider requires.

Microsoft 365 and Outlook.com don't work yet: they no longer accept a password over IMAP, only a sign-in with Microsoft. A Microsoft Exchange Server of your organization works once your IT department has enabled IMAP for it.

Adding a mailbox

Open "Settings" → "Configure Data Sources", or the gear icon on the "Data sources" page. Click "Add Data Source" and choose "Mailbox (IMAP)". Without an embedding provider, the entry reads "Mailbox (IMAP), requires an embedding provider" and can't be chosen. When your organization doesn't allow new mailboxes, it shows a lock.

Then work through the dialog from top to bottom.

Name and provider

  • "Data Source Name": at most 40 characters. The AI sees this name, so choose one that tells what the mailbox is for.
  • "Provider": choose your mail provider, and AI Studio fills in the server settings for you. The list starts with "Another provider", where you enter the settings yourself. Then follow the mail servers of your organization, marked with a building, if your IT department has set up any. Last come well-known providers.

For a mail server of your organization, a box tells you how to sign in and may link its instructions. For a well-known provider, it tells you what the provider requires, what to enter as the username, and links the instructions of the provider:

Provider Before you start
Gmail, iCloud Mail Create an app password. Your usual password doesn't work.
GMX, WEB.DE Enable IMAP in the settings of your webmail. With two-factor authentication, also create an app password.
mailbox.org With two-factor authentication, create an app password.
IONOS, STRATO, Hetzner (konsoleH), Posteo Nothing.
Microsoft Exchange Server Your IT department enables IMAP for the server and for your mailbox. Ask them for the address of the server.

Server

Once AI Studio has filled in the server settings, they wait behind "Show Server Details", and the sign-in follows right away. With "Another provider", enter them yourself:

  • "IMAP server host", for example, imap.example.org.
  • "Port" and "Encryption": "TLS from the start (usually port 993)" or "STARTTLS (usually port 143)". AI Studio never connects without encryption.

Your organization may allow mailboxes only on its own mail servers. Then you choose one of them, and the server settings can't be changed.

Sign-in

  1. Enter your "Username" and your "Password". AI Studio keeps the password in the credential store of your operating system, under the name of the mailbox.
  2. Click "Test connection & load folders".

AI Studio adds a mailbox only after a successful test. When you later change the server settings or the password, it asks for a new test.

Folder

After the test, the dialog shows the folders of your mailbox:

  • "Whole mailbox", the default: AI Studio indexes every folder apart from the trash and the junk folder.
  • A folder: AI Studio indexes this folder together with its subfolders, and the AI reads only from there. This keeps, for example, the mails of a project apart from the rest. The trash and the junk folder can't be chosen.

Under "New folder", you can create a folder for this. AI Studio creates it on the server right away, inside the selected folder or at the top level of the mailbox.

With a folder, "Include sent mails and drafts?" decides whether your sent mails and your drafts come along. It's on by default. AI Studio recognizes these two folders by the mark your mail server gives them. Without a folder, they belong to the whole mailbox anyway.

Period and attachments

  • "Period": "The last 3 months", "The last 6 months", "The last 12 months", the default, "The last 24 months", or "All mails". AI Studio indexes the newest mails first. Flagged mails and drafts are always indexed, however old they are.
  • "Index the text of attachments?": on by default. AI Studio then reads the text of attached documents: the same types as in a local folder, such as PDF, Word, Excel, PowerPoint, text files, and source code. Of other attachments, such as images, it keeps only the names.
  • "Largest attachment to index, in MB": 10 MB by default, up to 2,048 MB. Of a larger attachment, only the name is indexed.

Embedding and confidence

  • "Embedding": the embedding provider. With one in the cloud, confirm that your mails may go to it.
  • "Required provider confidence level": you have to choose one. Only providers with at least this level see the content of your mails, both the provider of the chat and the embedding provider. The levels range from "Very Low" to "High". See Provider Confidence.
  • "Where a chat may send data after reading mails": mails come from strangers and may contain instructions meant for the AI. This setting decides where a chat may still send data once it has read from this mailbox. The default is "Only services configured in AI Studio": such a chat doesn't search the web, and it reads no web pages apart from those of the services configured in AI Studio, such as your Confluence wiki. See Where a chat may send data. Your organization may demand a stricter level.

Expert settings

"Show Expert Settings" offers:

  • "Token limit" and "Token overlap": how AI Studio cuts your mails into pieces before embedding them. By default, a piece may be as long as the embedding provider takes at once.
  • "How many mails do you want at most per search?": 10 by default, and at least 10.

Click "Add" at the end. AI Studio starts to synchronize the mailbox right away.

Changing, renaming, and deleting a mailbox

The table of your data sources lists each mailbox with the buttons "Edit" and "Delete".

  • Once AI Studio has indexed mails of a mailbox, its server, its username, and its folder can't be changed anymore. Another account or folder holds other mails, so add another mailbox for it.
  • Everything else can be changed. A new embedding provider, a new token limit or overlap, and changed attachment settings make AI Studio index all mails again. It asks you first, since this takes a while and costs money with an embedding provider in the cloud.
  • A changed period, or the switch for sent mails and drafts, takes effect right away: AI Studio synchronizes the mailbox once you save.
  • When you rename a mailbox, its password stays. AI Studio stores it under the new name and deletes the old entry.
  • "Delete" removes the index of the mailbox and its stored password from AI Studio. Your mails stay on the server as they are.

Where to go next

Clone this wiki locally