Evaluation guide
Self-hosted AI agents for Microsoft 365: what stays where
Published by Pengui AI · Clear Tech
Most company work lives in Microsoft 365: mail and calendars in Outlook, documents in SharePoint and OneDrive, numbers in Excel, conversations in Teams. An agent that can read and prepare work there saves real time — but only if you know which data it touches, with whose permissions and where it ends up. This guide walks through how self-hosted agents connect to Microsoft 365 with Pengui, and what to check before you start.
What self-hosted means here
With Pengui, the platform — the workspace, the agents' configuration, conversations, memory and the Console's activity records — runs in your cloud or data center. Microsoft 365 keeps being Microsoft 365: your mail, files and spreadsheets stay where they are, and the agent works with them through connectors when a request needs it.
Self-hosting is a boundary for the platform, not a promise that nothing ever crosses a network. The model you choose processes the text the agent sends it, and each connected service sees the requests made to it. That is why the model choice and the connector permissions matter as much as where the platform runs.
How the pieces connect
A request that touches Microsoft 365 goes through the same steps every time:
- 1A person asks an agent for something — in the Pengui workspace or in a private Teams chat.
- 2The person has linked their Microsoft 365 account, so the connector works with their own sign-in and permissions, not with a shared account that can see everything.
- 3The agent reads what the task needs: a folder in SharePoint, a sheet in Excel, the person's calendar, a thread in Outlook.
- 4It sends the relevant text to the model you configured and prepares the result: a summary, a draft, an updated table, a proposed meeting.
- 5Before sending or changing anything in Microsoft 365, the agent asks. Where your team requires approval for an action, the person approves or rejects it in the chat.
- 6The result appears in the conversation, and the activity is visible in the Console.
What stays where
Microsoft 365 content stays in Microsoft 365; the agent reads it on demand with the person's permissions. Conversations, agent configuration, memory and activity records live in your Pengui deployment, in your infrastructure. The model provider receives the text included in each request — so if that matters, choose a provider and region you've approved, or a compatible endpoint you host yourself.
Generated files and drafts are stored where the action puts them: a draft in the person's Outlook, a new file in a SharePoint folder they can write to, or an attachment in the conversation. Write these destinations down for your pilot, so reviewers know where to look.
Typical tasks across Outlook, SharePoint and Excel
Preparing a meeting: read the invitation and related emails, pull the latest document from SharePoint and produce a one-page brief. Answering from policies: search an approved SharePoint library and answer with the source. Reporting: read last month's Excel, compare it with this month and explain what changed. Following up: draft a reply in Outlook for the person to review and send.
These tasks combine well with scheduled work. A Monday-morning summary of the week's calendar and open threads, delivered to the person's chat, is often the first thing teams keep using after a pilot.
Asking before acting
Reading is useful; acting is where trust is earned. The agent asks before sending or changing anything, and you can require approval on specific actions — sending mail, creating or editing files, updating a spreadsheet. Start with drafts: let the agent prepare emails and documents for people to send themselves, then enable direct actions where the team is comfortable.
What to check before you start
Prepare the pilot with these points:
- Choose two or three tasks, and list the mailboxes, libraries and workbooks each one needs.
- Confirm that the people in the pilot already have the right access in Microsoft 365 — the agent will not have more.
- Decide which actions require approval, and which ones stay as drafts for people to send.
- Choose the model provider and region, or a self-hosted endpoint, and record what text it receives.
- Agree where the platform runs, who operates it, and how backups and retention work for conversations and memory.
- Test with a person who should not see a document, and confirm the agent can't read it for them.
- Name the reviewer who checks the Console activity during the first weeks.
Where to go next
If you are weighing self-hosting in general, the guide on self-hosted enterprise AI covers storage, model processing and operating responsibilities in more depth. To see it working with your own Microsoft 365, the 30-day free trial runs in your cloud and includes the Teams connection and a ready team to try.