Nutrient AI Assistant
In-viewer document-AI feature for Nutrient client SDKs (Web, iOS, Android, React Native) backed by a Docker service. Users chat with the open document for Q&A, summarisation, translation, redaction, and form filling; from Q1 2026 onward an agents layer plans and executes multi-step edits autonomously under policy-defined approval gates.
Documentation
Single-fetch LLM-curated dumps — prefer these over the human-shaped docs site for API/guide look-ups:
- API reference: https://www.nutrient.io/api/ai-assistant/llms.txt
- Guides: https://www.nutrient.io/guides/ai-assistant/llms.txt
- Cross-product index (other Nutrient SDKs): https://www.nutrient.io/llms.txt
Key Concepts
- Architecture: a Docker container (
pspdfkit/ai-assistant, also atpublic.ecr.aws/pspdfkit/ai-assistant) plus a PostgreSQL database with thepgvectorextension, plus credentials for an LLM provider (OpenAI / Azure OpenAI / AWS Bedrock / self-hosted OpenAI-compatible). The legacypspdfkit/ai-document-assistantimage is the pre-rebrand name; new deployments usepspdfkit/ai-assistant. - Client integration: existing Nutrient SDKs (Web / iOS / Android / React Native) — nothing extra to install; configure an
aiAssistantblock (Web) or anAIAssistantConfigurationonPDFConfiguration(iOS / Android / React Native), and add theai-assistanttoolbar item (Web) oraiAssistantButtonItem(mobile). - Current names: toolbar item
ai-assistant; Web config blockaiAssistant. The legacyai-document-assistant/aiDocumentAssistantkeys predate the rebrand — current docs and examples use the new names. - Required env vars on the backend:
ACTIVATION_KEY,API_AUTH_TOKEN,JWT_PUBLIC_KEY, plus one LLM-provider credential (OPENAI_API_KEY/AZURE_API_KEY/BEDROCK_ACCESS_KEY_ID+BEDROCK_SECRET_ACCESS_KEY). - Two-JWT pattern: when the client SDK is paired with Nutrient Document Engine, the browser sends one JWT to the engine (
authPayload.jwt) and a different JWT to AI Assistant (aiAssistant.jwt). They're signed with different keys, scoped differently, and shouldn't be reused. - Standalone vs paired: AI Assistant does not require Nutrient Document Engine. Standalone (WASM-only Web SDK) and paired (server-backed against Document Engine for collaborative storage, Nutrient Instant) are both first-class.