Why this pattern
A shared knowledge base must answer four questions a personal folder does not:- Who can read a given file, and who can change it?
- Which version is current?
- Which content is approved for AI, and which is draft or stale?
- Can an answer cite the source document?
Build the knowledge base
1
Keep the repository in Box
Store the source files in Box folders. Do not grant an AI system access to the entire enterprise by default. Start with the smallest set of folders that supports the use case.
2
Separate staging from approved content
New or updated files land in a staging area. Only reviewed content moves into the folders you add to the hub. Metadata such as owner, domain, and approval status tracks review state. See and, when values live inside the document, .
3
Publish approved files to a hub
Create a hub with the , then add the approved folders or files as . Invite people or groups with . Hub access does not replace file permissions. A collaborator still cannot see a file they are not allowed to open.
4
Query the hub with Box AI Ask
Enable AI on the hub (
is_ai_enabled). See . Then call and pass the hub as an item with "type": "hubs". Box searches the hub index and returns answers grounded in documents the requesting identity can access. Enable citations so the response points back to source files. See .Permissions
Box Hubs and Box AI do not have their own permission system. They inherit waterfall permissions, collaborations, and scopes from the authenticated user or application.- Connecting an agent or calling Ask does not expose every file in the enterprise.
- If a user has no access to a file in Box, Box AI does not include that file in their answer.
- Use a dedicated service account only when that account is an intentional, audited identity with collaborations on the approved content. Do not use a service account to bypass user permissions.
When to use a vector database instead
Use hubs + Ask when the content is already in Box and you need permission-aware answers. Build your own RAG pipeline only when you need a retrieval engine Box AI does not provide, an index that mixes Box with other sources, or custom chunking and ranking. If you export content, your pipeline must enforce Box permissions and stay current as files, versions, and collaborations change. See .Worked examples
Build your company brain
A shared knowledge layer for people and agents. Includes folders, Box AI review, governance metadata, hubs, and Ask.
Sales RFP answer bank
Provision a hub, add curated RFP content, embed the hub, and answer sales questions with Box AI.
