How to Build a Simple Internal Chatbot Over Your Own Documents
how-to dec 1, 2026

How to Build a Simple Internal Chatbot Over Your Own Documents

Three ways a small team can stand up a chatbot that answers from its own documents: a no-code project, Microsoft 365 or Google, or a small RAG pipeline.

/blog/how-to-build-a-simple-internal-chatbot-over-your-own-documents

Header image: three routes from company files to an answer — upload them, use the suite you already pay for, or run the pipeline. Diagram: Ctrl Alt Orion.

You can give your team a chatbot that answers from the handbook, the SOPs, the contracts, and the FAQs in one of three ways. Upload the files into a no-code project such as ChatGPT, Claude, or Gemini Notebook. Turn on the assistant already sitting inside Microsoft 365 or Google Workspace. Or build a small retrieval-augmented generation pipeline and run it yourself. The right one depends on how sensitive the documents are, how many people need access, and how much of the plumbing you want to own.

If you want the idea before the steps, read What Is RAG, and How Would a Small Business Use It?. The short version: store the documents in a searchable index, pull the relevant passages into the prompt for each question, and let the model write from those passages. All three paths below do that. The difference is who maintains the index.

Prices, file caps, and plan names below were checked against the vendors’ own pages on December 1, 2026. Those pages move. Open the linked one before you buy a seat or upload a personnel file.

Path 1: A no-code project

This is the fastest way to something the owner can try this afternoon. It fits one person or a small group, ordinary documents, and a tool that does not have to follow the company’s file permissions on its own.

A no-code project holds three files, a short instruction, and a question whose answer cites one of the files Made-up file names and a made-up mileage rate, to show the shape. The chip under the answer is the citation. Diagram: Ctrl Alt Orion.

Pick the tool, and read the cap

ChatGPT Projects. Projects are included on every qualifying ChatGPT plan, including Free. OpenAI’s help page sets the file cap by plan: 5 files on Free, 25 on Go and Plus, and 40 on Edu, Pro, Business, and Enterprise. Only 10 files can go up in one upload. To pin the behavior, open the project, choose the more-options menu, then Project settings, and write the instructions there. Those instructions apply inside that project and override the account’s global custom instructions.

Projects can be shared. The collaborator cap follows the owner’s plan: 5 on Free, 10 on Plus and Go, and 100 on Pro. Business, Enterprise, and Edu can invite people or a workspace group, up to 100 collaborators, with chat access or edit access. Everyone in the project can use the files in it. The project does not apply a separate permission to each file.

On Free, Plus, and Pro, OpenAI says it may use information from projects to train its models when Improve the model for everyone is turned on. Leave employee records, customer personal data, and financials out of a consumer project.

Claude Projects. Anthropic’s help says projects are available on free accounts, and a free account can create up to five. The expanded knowledge mode — the one that switches on retrieval when the files outgrow the context window, and that Anthropic says can raise capacity by up to 10 times — is on paid plans: Pro, Max, Ultra, Team, and Enterprise. Sharing a classic project with other people in the organization is a Team and Enterprise feature. Anthropic is also rolling out a new version of projects in beta. That version cannot be shared.

Gemini Notebook. Google renamed NotebookLM to Gemini Notebook on July 16, 2026. A free account can add up to 50 sources per notebook. Each source can hold up to 500,000 words, or 200MB for an uploaded file. Google Slides sources stop at 100 slides. Google Sheets sources stop at 100,000 tokens. Paid Google AI plans raise the source cap: 100 on Plus, 300 on Pro, 500 on the Ultra 20 TB plan, and 600 on the Ultra 30 TB plan, on the “all sources except notes” row of Google’s plan table. Workspace editions list their own caps on Google’s work-account page.

Uploads can be Word, plain text, Markdown, PDF, CSV, or PowerPoint, plus Google Docs, Slides, and Sheets, and web URLs. A file imported from Google Drive syncs every few minutes. A file uploaded from a computer stays as it was on the day you uploaded it.

Google’s chat help says Gemini Notebook answers from the notebook’s sources and shows citations you can open. The same notebook behaves differently inside the Gemini app. Google’s comparison says those replies are grounded in the notebook and may also use web search and other tools. For a policy bot, ask the question in Gemini Notebook and read the citation before you treat the sentence as the policy.

Google’s plan page says Gemini Notebook content is not used to train the model unless you send feedback. On a work or school account the handling depends on the edition. Some editions still allow Google to review a conversation when you send feedback. The enterprise-grade column on the work-account page says uploaded files, chats, and model outputs are not reviewed by people and are not used to improve the models. Read the row for the edition you have before personnel files or customer data go in.

Prepare the documents

Text-based PDFs, Word files, and plain text work best. A scanned PDF is a picture of text. If you cannot select the words in the file, the tool cannot read them either. Adobe Acrobat can run OCR on a scan. So can OCRmyPDF:

ocrmypdf input.pdf output.pdf

Then curate. Old drafts, expired policies, and duplicate files make the bot quote two answers to the same question. Forty clean documents beat a folder of four hundred.

Write the instruction, then test it

Use an instruction you would be willing to show the team. This shape works:

Answer only from the files in this project. If the answer is not in those files, say so. Name the file for every claim.

Ask 10 to 15 questions you already know the answer to, including a few the documents do not cover. The failure you are looking for is a confident invention: a policy that sounds internal and is not in the files.

What this path will not do

The files live at the vendor. Data-use terms differ by plan. Consumer ChatGPT can train on project content when that setting is on. Business tiers usually offer stronger controls, and you should read the current page for the plan you actually have. If the documents include employee records, customer personal data, or financials, use Path 2 or Path 3.

A shared project is one pile of files. ChatGPT can share a project, within the collaborator caps above. Claude can share a classic project on Team and Enterprise. Gemini Notebook can share a notebook, and advanced sharing is a paid feature. None of those is a per-person check against the company’s existing folder permissions. If the payroll spreadsheet should stay with two people, it does not belong in a project the whole staff can open.

Freshness is manual, with one exception. ChatGPT’s help says the Google Drive app does not sync files that were added inside a project. Claude project uploads are copies. Gemini Notebook is the exception for Drive files: those sources sync every few minutes. For everything else, someone replaces the file when the policy changes. Put that job on a calendar.

Path 2: Microsoft 365 or Google Workspace

If the company already keeps its files in SharePoint or Drive, the permissions and the current version of each file can come along with the assistant. That is the reason this path is often the right second step, after a no-code trial has proved people will actually ask the questions.

Three paths compared on setup time, control, cost, and fit: a no-code project, Microsoft 365 or Google, and a pipeline you run The dollar amounts and file caps are in the sections above and below, checked December 1, 2026. Diagram: Ctrl Alt Orion.

Microsoft 365 Copilot and a SharePoint agent

Copilot in Microsoft 365 can answer from files the signed-in person can already open in SharePoint, OneDrive, and Teams. Microsoft’s documentation says Copilot respects existing SharePoint and OneDrive permissions, and that it only summarizes or references content that person is already allowed to access. A payroll folder the employee cannot open stays closed. The reverse matters just as much: a file that is shared too widely can show up for anyone who already has access. Fix the sharing before you point an assistant at the library.

You can also build an agent scoped to one library. Microsoft Support still documents this click path:

  1. Open the document library that holds the policies or SOPs.
  2. On the command bar, select Copilot > Create an agent. The agent starts with that library as its scope.
  3. Edit the agent: name, purpose, instructions (“Answer HR policy questions from this library only, and cite the file name”), and the sites, pages, and files it may use.
  4. Share it with the people who should use it, in Teams or the Copilot app.

You need edit permission on the site, plus either a Microsoft 365 Copilot license or pay-as-you-go billing enabled for agents in SharePoint. The support page says the agent answers only from sources the person can already access and that were included on the agent.

That menu is in the middle of a change. Microsoft Learn says that starting in mid-November 2026, new SharePoint and OneDrive agents are created in Microsoft Copilot Agent Builder, and creating one no longer saves a .agent file in the library. Existing .agent files keep answering until the end of March 2027. If your tenant already opens Agent Builder, name the agent there, select the library as a knowledge source, and write the instructions in that builder. Share it with the people, groups, or email addresses who need it, then confirm those people can open the source files. Sharing the agent does not grant access to a file.

On Microsoft’s pricing FAQ, prompts and responses in Microsoft Copilot are not used to train the underlying models. The same answer says the specific controls vary by subscription, and that prompts and responses are logged under your retention policies.

What a seat costs. Microsoft’s US Copilot pricing page shows three business prices, each per user per month, paid yearly:

OfferPrice on the US page
Microsoft 365 Copilot Business, the add-on$18, marked down from $21
Microsoft 365 Business Standard with Copilot$23.50
Microsoft 365 Business Premium with Copilot$32.00

The $23.50 and $32.00 figures are bundles that include Microsoft 365, not a Copilot seat stacked on a plan you already pay for. The add-on is the $18 line. Microsoft’s additional-services terms say that discount runs from July 1, 2026 through December 31, 2026, needs an annual commitment, applies to the first year only, and is only for existing customers on an eligible Microsoft 365 Business plan. The Business plans on the pricing page are described for up to 300 users.

Everyday chat inside the Microsoft 365 apps is included in the license. Microsoft says more advanced experiences — Copilot Cowork, Code, Autopilot, and the Work IQ APIs — are billed on usage, through Copilot Credits. Budget the seat, and look at the usage controls before someone turns those on for the whole company.

A Copilot seat pays off when people ask it questions in a normal week. A seat that gets opened once a quarter is an expensive search box.

Google Workspace

In Drive, Ask Gemini can take specific files as sources: Google Docs, Google Sheets, Google Slides, and PDFs. You can add a file only when you already have permission to view it. After an answer, the Sources list shows which files contributed. Which Workspace editions include Ask Gemini in Drive depends on the plan, so check Google’s current list before you tell the team it is already in the subscription.

For a small shop, the practical Google setup is often the boring one. Keep the policy documents in one Drive folder with clean sharing, and let people ask about those files. Gemini Notebook, above, is the tighter “only these sources” tool when you want a notebook that does not also reach for the web.

When someone updates the handbook in SharePoint, or a Drive file that Gemini Notebook imported, the assistant is pointed at that file rather than at a copy you have to remember to replace. Search and sync are not instant. They are still a different maintenance job from re-uploading a PDF by hand.

advertisement

Path 3: A pipeline you run

Build this when the documents are too sensitive for a consumer chat account, when the bot has to live inside a tool you already run, or when you need a permission rule the vendor products do not offer. Plan on a weekend for a first version if you are comfortable following technical instructions. Otherwise this is a small contractor job, with you still owning the document list.

Documents are chunked and embedded into a vector store; a question retrieves the closest chunks; a nightly job re-embeds what changed Indexing is the top row. A question only runs the middle row. Diagram: Ctrl Alt Orion.

The pipeline

  1. Collect and clean. Get everything into text you can select. Export PDFs, pull wiki pages, convert Word files. Strip running headers, footers, and page numbers so they do not drown the search. Drop expired policies and duplicate drafts before they go into the index.

  2. Chunk. Split documents into passages of roughly 300 to 800 tokens, on heading boundaries rather than mid-sentence. Overlap neighboring chunks by about 10 to 20 percent so an answer that spans a boundary is not cut in half. Keep tables whole.

  3. Embed and store. Each chunk becomes a vector, a list of numbers that stands for what the passage is about, and the vectors go into a store you can search by similarity. Three setups cover the range:

    • Cloudflare AI Search (formerly AutoRAG) is available on all Cloudflare plans. You connect a source, including an R2 bucket or a website, and it indexes that source continuously. A chat completion returns the generated answer together with the source chunks the model used, which is how the interface shows citations. Scanned PDFs can go through its OCR. With OCR enabled, the PDF cap is 10 MiB. PDFs without OCR, and other file formats, are capped at 4 MiB. Plain text and code files are capped at 10 MiB.
    • A managed vector store such as Pinecone or Weaviate, or Postgres with the pgvector extension if a database is already running.
    • One office machine. An embedding model and a vector store on hardware you control, with nothing leaving the network. That is the setup for HR files, contracts, and anything under an NDA.
  4. Retrieve and prompt. Embed the question, take the closest 5 to 10 chunks, and build a prompt like this:

    Answer the question using ONLY the context below.
    Cite the source document for each claim.
    If the context doesn't contain the answer, say "I don't
    have that in the documents."
    
    Context:
    [chunk 1 — source: handbook.pdf, p.4]
    [chunk 2 — source: pto-policy.docx, "Accrual"]
    
    Question: How many PTO days do new hires get?
  5. Put a page in front of it. A single text box on the office network is enough. Streamlit and Gradio are two Python libraries with chat components, and either one can host that page as a short script. The interface should show the citation next to the sentence, so a person can open the file.

The model call is an API request: your app sends the prompt, the model sends an answer, and the bill follows the request. There is no single public price for “a RAG system,” because the store and the model are often different vendors.

Keeping it current

The usual failure is a bot describing last year’s policy with this year’s confidence. A reminder on a calendar will slip. A scheduled job will not. Cron, Windows Task Scheduler, or a Cloudflare Worker on a timer can rescan the folder nightly, re-embed files that changed, and delete chunks for files that were removed. Store a content hash per document so an unchanged file is skipped.

Cloudflare AI Search already re-indexes a connected source. You still curate what is in that source. An expired policy left in the bucket stays in the index until you remove it.

Permissions

This is the weak spot. A single index plus a chat box means anyone who can ask can read everything that was indexed, including a salary-band spreadsheet that happened to be in the folder. Three options, in rising effort:

  • Leave sensitive documents out of the index, and answer those questions the old way.
  • Keep a per-folder access list, and filter the retrieved chunks against the person asking before the prompt is built.
  • Run a separate index per department.

For a five-person shop, leaving the sensitive folders out is usually the right call. For 25 people, with HR and finance in the same building, filter the retrieval or keep those folders out. Do not index them and hope the prompt behaves.

What Cloudflare AI Search costs

Cloudflare’s limits page says billing begins on December 1, 2026. Every account includes, each month:

  • 5 million ingestion tokens
  • 10 GB-month of storage
  • 1,000 semantic queries
  • 1,000 full-text queries

Past those amounts, the published rates are $0.75 per million tokens of base ingestion, an extra $0.50 per million tokens for image processing (OCR counts here), $2.00 per GB-month of storage, $0.75 per 1,000 semantic, vector, or hybrid queries, and $0.10 per 1,000 full-text queries. Embedding and reranking inside AI Search are included in that usage. The model that writes the answer is not. Generation is billed through Workers AI or whichever provider you connect. If the files also sit in your own R2 bucket, that bucket is billed as R2, separate from AI Search storage.

For a handbook and a few dozen SOPs, the included monthly amounts cover a lot of internal questions. The number to watch is the generation bill, because it is outside that allowance.

Test it with the same 20 questions

Whichever path you picked, write 20 questions with known answers and run all of them before anyone else relies on the bot.

A 20-question scorecard: 12 lookups, 4 questions that need two documents, and 4 questions the files do not answer A refusal on a question the documents do not answer is a pass. Diagram: Ctrl Alt Orion.

  • 12 should be straight lookups. “What is the mileage reimbursement rate?”
  • 4 should need two documents. “Can a part-time employee take parental leave?” needs the leave policy and the part-time definition.
  • 4 should be unanswerable from the documents. These catch invention. A bot that says the files do not cover it is doing the job. A test set made only of questions the documents answer will never show you the inventions.

Score each reply: correct, partially correct, wrong, or refused. When one fails, check which stage broke. If the right passage never reached the prompt, fix the chunking or add the document. If the passage was there and the model misread it, tighten the instruction or change the model. Keep the 20 questions in a spreadsheet and run them again after any change to the files, the instructions, or the model. That sheet is the regression test.

Run it again quarterly, and whenever a policy the bot is trusted for gets rewritten.

What this costs

PathSetupOngoing cost, checked Dec 1, 2026Best for
ChatGPT, Claude, or Gemini NotebookAn hour or twoFree tiers exist, with tight caps: 5 files per ChatGPT project on Free, five Claude projects, 50 Gemini Notebook sources. Paid plans raise the caps. Check the current price.One owner, ordinary documents
Microsoft 365 Copilot and a SharePoint agentAbout half a dayAdd-on $18 per user/month paid yearly (list $21), on top of an eligible Business plan, promo through Dec 31, 2026. Standard with Copilot $23.50. Premium with Copilot $32. Advanced features are usage-billed.A team already on Microsoft 365
Google Workspace and GeminiAn hour or twoIncluded with eligible Workspace editions. Check the edition.A team already on Workspace
DIY, Cloudflare AI SearchA weekendIncluded each month: 5 million ingestion tokens, 10 GB-month, 1,000 semantic queries, 1,000 full-text queries. Overage is billed from Dec 1, 2026. The answering model is billed separately.Sensitive documents, or a bot inside your own tool
DIY, fully localA weekend, then hardwareThe machine you already own, plus electricityThe files cannot leave the office

Someone has to own this after launch. Even the no-code path needs a named person who replaces the updated handbook, deletes dead files, and reruns the 20 questions. Assign that person before you share the link. A bot that quotes a retired policy, confidently, is worse than a shared folder.

The chatbot is a convenience layer over the documents. It is not the record. When the answer matters — a PTO dispute, a safety step, a contract clause — the citation should lead a person back to the file, and the file wins.

Start with Path 1 on ten clean documents. If people use it for a month and the citations check out, move the same document set to Path 2 or Path 3 for the whole team.

Sources

21 refs
  1. Projects in ChatGPT — OpenAI Help Centerhelp.openai.com
  2. What are projects? — Claude Help Centersupport.claude.com
  3. NotebookLM is now Gemini Notebook — Google, July 16, 2026blog.google
  4. Gemini Notebook: source types and limitssupport.google.com
  5. Gemini Notebook: plans and source capssupport.google.com
  6. Gemini Notebook with a work or school accountsupport.google.com
  7. Use chat in Gemini Notebooksupport.google.com
  8. Notebooks in Gemini apps, and how grounding differssupport.google.com
  9. Sources in Google Workspace with Gemini — Google Drive Helpsupport.google.com
  10. Create an agent in SharePoint — Microsoft Supportsupport.microsoft.com
  11. Upgrade agents in SharePoint and OneDrive — Microsoft Learnlearn.microsoft.com
  12. Data protection and auditing for Microsoft Copilot — Microsoft Learnlearn.microsoft.com
  13. Microsoft Copilot plans and pricing for businessmicrosoft.com
  14. Microsoft 365 additional services, including the Copilot Business discount termsmicrosoft.com
  15. Cloudflare AI Searchdevelopers.cloudflare.com
  16. Cloudflare AI Search: limits and pricingdevelopers.cloudflare.com
  17. Cloudflare AI Search: show source citationsdevelopers.cloudflare.com
  18. AI Search (formerly AutoRAG) — Cloudflare changelog, September 25, 2025developers.cloudflare.com
  19. Pineconepinecone.io
  20. Weaviateweaviate.io
  21. pgvectorgithub.com

← All articles

comments

loading comments…

^ consulting ⌥ building ⌘ shipping