The answer is scoped access, not exports. Create a separate service account or OAuth app per client, have the client grant it read access to only the folders, channels, and Notion pages that matter, then run a sync job that checks those sources on a schedule and writes each client's context into its own isolated store. Your agent queries that store. It never touches your personal login, and nobody exports anything by hand again.
I learned this the boring way. For most of 2025 I had a folder called client_exports that was 40 gigabytes of duplicated PDFs and CSVs, and every Monday morning I would sit there dragging files around like it was 2004. My AI was busy, not useful. It had plenty of documents and no idea what had changed since Friday.
Why does re-exporting files break your AI agent's context?
Because the export is a photograph, and your client's business is a living thing.
The moment you export a Drive folder to a zip file, you have created a second copy of reality that starts decaying immediately. Someone renames a doc. A Slack thread resolves a decision you asked about last week. A Notion page gets archived. Your agent keeps answering from the old photograph, confidently, which is worse than not answering at all.
There is a second cost that took me longer to see. Re-exporting is manual, so it happens when you remember, which means it happens rarely, which means your agent's knowledge is always a little stale, which means you stop trusting it, which means you stop using it. That is the actual failure mode. Not a technical bug. A trust collapse.
What's becoming clearer to me is that context is not a file you hand over. It is a relationship you maintain. The founders I know who get real work out of agents are not the ones with the biggest document dumps. They are the ones with the freshest small context.
How should you scope access so the client keeps control?
Give the agent its own identity, and make the client the one who grants it.
This is the part people skip, and it is the whole point. You do not want your agent logging in as you. You want a distinct service account, agent@yourdomain.iam.gserviceaccount.com or the equivalent, that exists only to read specific things. Then the client shares only the folder or channel with that address.
On Google Drive, the client shares the exact client folder with the service account's email as Viewer. Not the whole Drive. Not their personal account. One folder, one permission, revocable in ten seconds and visible in their sharing settings forever after. If they have a subfolder for contracts the agent should not see, they simply do not grant it.
On Slack, you build a small internal app with channels:history and channels:read scopes, install it to the client workspace with admin approval, and then the client invites the bot into two or three channels. The bot cannot read what it was not invited into. That is the entire permission model, and it is one the client already understands because it is how they treat new hires.
On Notion, you create an internal integration, and the client explicitly connects specific pages or a whole database to it through the Notion sharing menu. Unconnected pages are invisible. Notion is actually the easiest of the three because the sharing gesture is so literal.
The pattern is identical across all three tools: separate identity, explicit grant, narrow scope, revocable by the client without your involvement. That is what client context permissions for AI agents should look like, and it is also the easiest security conversation you will ever have. You are not asking them to trust you. You are asking them to share a folder with a robot you both can see.
How do you keep a live sync without re-exporting anything?
Stop thinking in files and start thinking in deltas.
A sync job runs on a schedule, hourly or nightly depending on how fast the client's work moves. It does three things per source.
First, it asks what changed. Google Drive has a changes feed and per-file modified timestamps. Slack has channel history with a cursor, so you only pull messages after the last one you saw. Notion databases support filtering by last edited time. All three let you ask "what is new since I last looked" instead of "give me everything."
Second, it normalizes. A Google Doc gets pulled as plain text or markdown through the Drive export endpoint. Slack threads get flattened into a transcript with author and timestamp preserved, because who said it matters as much as what was said. Notion pages get walked block by block. Everything lands in one format so your agent is not doing three different dances.
Third, it writes into a per-client store with metadata attached: source, path, last modified, and who can see it. If a doc gets deleted or unshared, the sync deletes it from the store too. That deletion step is the one everyone forgets and it is the one that saves you. Stale context that lingers is how agents end up referencing a contract that got cancelled in March.
The first full sync takes a while. Every sync after that is small and cheap. I sync six client workspaces overnight and the whole thing costs me a few dollars a month in API calls.
What does the storage layer actually need to do?
It needs to be per client, filterable, and honest about where every sentence came from.
I keep one vector store per client, not one big store with a client tag. That sounds wasteful and it is not. If the client asks me to delete their data, I drop a namespace and it is gone. If a new person joins my team, I grant them the namespace they need and nothing else. Cross-contamination becomes structurally impossible rather than a thing I have to remember not to do.
Every chunk carries its source path and timestamp. When the agent answers, it can say "from the Q3 pricing doc, updated Tuesday" and I can click through to the original. This is the difference between an agent that sounds right and an agent you can check.
The retrieval layer also needs a freshness bias. If two chunks conflict, the newer one wins. That single rule quietly fixes an enormous number of wrong answers, because in real client work the newest document is almost always the true one.
How do you keep it up to date as clients change things?
Build for revocation and rotation from day one, because both will happen.
Clients leave. People get fired. A folder that was shared in January should not still be readable in June if the engagement ended. So write down, per client, exactly what was granted and when: which service account, which folder IDs, which Slack channel IDs, which Notion page IDs. That document is your offboarding checklist.
Rotation is the other half. Service account keys should be rotated on a schedule and stored somewhere that is not a text file on your laptop. Slack tokens get reinstalled when scopes change. Notion integration access gets re-reviewed whenever the client restructures their wiki, which they will do without telling you.
I also run a weekly check that hits each source and confirms access still works. If a client unshared a folder, I want a failed check and an email, not a silent six-week gap where my agent quietly answers from old context. Silent staleness is the enemy here. Loud breakage is a gift.
All of this is context engineering for founders. Not prompt writing. Not model selection. The plumbing that decides what your agent knows and how recently it knew it. Connect AI agent to client Google Drive once, properly, and you stop doing the Monday drag and drop forever.
FAQ
Do I need a separate service account for every client? Yes. One per client keeps permissions, storage, and deletion clean. Sharing one account across clients means one revocation can break everything and one mistake can leak data between them.
Can the client revoke access without telling me? They can, and they will, which is why the weekly access check matters. When a grant disappears, the sync should fail loudly and drop that source's context rather than serving stale answers.
Is a sync job better than connecting the agent live on every query? For most work, yes. Live querying is slow, rate-limited, and expensive per question. A small nightly delta sync into a per-client store gives you fresher answers with far less latency, and you keep the audit trail.
I wrote the full playbook for this. How to Build Your Own AI Agent Operating System walks you through the exact architecture I use, step by step, including the sync jobs, the per-client storage layout, and the permission setup I just described. You can get it at a.mastermindshq.business/ai-os-book.
