21 November 2026 · Practical AI builds
How do I build a simple AI assistant for my team's shared documents?
By the end of this you will have one private web page where your team can type a question like "where is the latest price list?" or "what is our refund process?" and get a short answer with a link to the document it came from. It suits small teams who keep their files in a shared drive and keep asking each other where things are.
I learn my automation tips in the AI Profit Boardroom. Have a look here. Affiliate link.
What you need
- Your shared documents in one place, such as a shared drive folder or a synced folder on a server.
- Admin access to that drive, so you can give the assistant a read-only account.
- A small server or VPS to run the assistant, or a hosted tool that does the same job.
- An AI model through an API. Most hosted models charge per use, so set a spending limit first. You can also run a model yourself, but it needs more memory and care.
- A sync tool such as rclone (free, open source) and a text converter such as pdftotext or pandoc.
- Some comfort with the command line, or Claude Code on the server to help with the setup.
Before you build anything, check your current office suite. Google Workspace and Microsoft 365 both offer AI assistants that can search your own files on some plans. If yours does, that may be all you need. What is included depends on the plan, so check what you pay for.
Step by step
- Choose which folders the assistant may read. Leave out anything personal or sensitive, such as HR, payroll, contracts and customer records.
- Make a read-only account or access key for those folders only. Then the assistant can never change or delete a file.
- Copy the chosen folders to the server on a schedule. A single cron line running rclone every hour is enough for most teams.
- Convert each file to plain text. PDFs and Word files need converting. Spreadsheets work best exported as CSV.
- Split the text into short passages and build a search index that understands meaning (an embedding index). Store the file name, folder path and last-modified date with every passage.
- When someone asks a question, find the few passages that match best and send only those to the AI model along with the question.
- Give the model strict instructions: answer only from the passages given, name the document and link to it, show the date it was last changed, and say "I could not find that" rather than guess.
- Put the chat page behind a login so only your team can use it.
- Test it with twenty real questions your team has asked in the past month, and check every answer against the source.
- Rebuild the index after each sync, so changed files are updated and deleted ones disappear.
Here is an example of the hourly copy. The exclude line is a second safety net in case a sensitive folder ends up in the shared area.
# crontab -e (runs at the top of every hour)
0 * * * * rclone sync teamdrive:Shared /srv/appname/docs --exclude "HR/**" && /srv/appname/reindex.sh >> /srv/appname/sync.log 2>&1If you have not built the question and answer part before, my guide on building a chatbot that answers from your own files goes through it in more detail. The guide on putting a simple password in front of a private web tool covers the login.
What good looks like
Someone asks where the holiday booking form is and gets a one-line answer, a link to the right file and the date it was last updated. Ask about something that is not in the documents and it says it could not find it, without making anything up. After a few weeks, people check the assistant before they message a colleague, and when it is wrong they can see why, because the source is shown.
Watch out for
The biggest risk is access. The assistant can show anyone anything it has read, so a file shared too widely by mistake becomes visible to the whole team. Keep the folder list short and check it every few months. The second risk is stale or duplicate files. If three versions of the price list exist, the assistant may quote the wrong one. Archive old versions outside the synced folders, and remember that AI can still misread a document. For anything that matters, such as prices, policies or legal wording, people should open the linked file and check before acting on it.
Questions people ask
Can it respect who is allowed to see which files?
A simple build cannot. Everyone who can log in sees answers from every indexed folder, so only index what the whole team may read. Per-person permissions can be done, but they make the build a lot more complex.
Will it keep up when documents change?
Yes, as long as the sync and the rebuild run on a schedule. With an hourly sync, an answer can be up to an hour behind. Showing the last-modified date tells people how fresh the answer is.
In short, you copy a safe set of shared folders to a server, index them, and put a private chat page in front that answers only from those files and always shows its source. Keep the folder list tight and keep a person checking anything important.
Want more automation tips? The AI Profit Boardroom on Skool is where I get mine. Have a look here. Affiliate link.