AI Features and BYOK
How Navis Docs AI features work, which provider keys are needed, and how BYOK is managed.
What Navis Docs AI does
Navis Docs uses AI to help teams find answers in their own procedures and to speed up procedure creation. The AI chat inside each team answers questions using that team's published procedure content.
Behind the scenes, procedures are split into chunks and embedded with OpenAI text-embedding-3-small. When a user asks a question, Navis Docs performs semantic search over those chunks and sends the most relevant context to the chat model. This retrieval-augmented generation workflow is commonly called RAG.
Provider roles
Navis Docs uses different AI providers for different jobs. This keeps search and answer generation separate.
- OpenAI: used for procedure embeddings with
text-embedding-3-small - Anthropic: used for AI chat and AI-assisted procedure import with
claude-haiku
Embeddings make procedure content searchable by meaning. Anthropic powers the conversational responses and import assistance that turn uploaded or pasted material into usable procedure drafts.
Bring your own key
Organization owners and admins can provide AI API keys in organization settings. This is the bring-your-own-key, or BYOK, model. It lets each organization control the key used for its AI features.
Stored keys are encrypted at rest using AI_KEY_ENCRYPTION_SECRET. Navis Docs can check whether a key exists, but it does not expose the raw value after it has been saved.
Which key enables which feature
The required key depends on the feature you want to use.
- Anthropic key: enables AI chat and AI-assisted procedure import
- OpenAI key: can be stored in organization settings, but embeddings currently use the server environment key
If AI chat or procedure import is unavailable, check that the organization has an Anthropic key configured or that the self-hosted environment provides one.
Cloud and self-hosted deployments
On Navis Docs cloud, each organization must provide its own Anthropic key before AI chat and AI-assisted import can be used. Owners and admins manage that key from organization settings.
In self-hosted deployments, operators can set ANTHROPIC_API_KEY in the environment instead. When the server environment provides the key, users do not need to configure BYOK inside the organization. For deployment setup, see Getting Started with Self Hosting.
Managing saved keys
Owners and admins can remove AI keys at any time from organization settings. Removing a key disables the features that depend on it until a valid key is added again or supplied by the self-hosted environment.
The key status shown in the app comes from getAiKeyStatus. It confirms whether a key is present and usable for configuration checks, but it never returns the secret key value to the browser.
Suggested setup workflow
1. Decide how keys will be supplied
Cloud organizations should use BYOK in organization settings. Self-hosters can choose between organization-provided keys and environment-level keys depending on how they want to manage secrets.
2. Add the Anthropic key
Add an Anthropic key first if you want AI chat or AI-assisted procedure import. These are the user-facing AI features most teams enable.
3. Confirm AI availability
Open a team with published procedures and try the AI chat. Good answers depend on clear, published procedure content because the chat searches the team's procedure chunks before responding.
4. Rotate or remove keys when needed
If a key is rotated at the provider, update it in Navis Docs. If your organization stops using AI features, remove the saved key from organization settings.