{"slug":"nutrient-ai-assistant","title":"nutrient-ai-assistant","summary":"Nutrient AI Assistant — in-viewer document-AI for Nutrient SDKs (Web/iOS/Android/React Native) plus a Docker `ai-assistant` backend (PostgreSQL+pgvector and an OpenAI / Azure OpenAI / AWS Bedrock / self-hosted LLM). Chat, summarisation, redaction, translation, form filling, and (","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-11-29T00:42:58.244514Z","repo":{"url":"https://github.com/PSPDFKit-labs/nutrient-skills","stars":18,"forks":1,"license":null,"updatedAt":"2026-11-26T02:45:46Z"},"bodyHtml":"<hr>\n<h2>name: nutrient-ai-assistant\ndescription: 'Nutrient AI Assistant — in-viewer document-AI for Nutrient SDKs (Web/iOS/Android/React Native) plus a Docker <code>ai-assistant</code> backend (PostgreSQL+pgvector and an OpenAI / Azure OpenAI / AWS Bedrock / self-hosted LLM). Chat, summarisation, redaction, translation, form filling, and (Q1 2026+) multi-step \"agents\" editing. Runs standalone or paired with Nutrient Document Engine. Current toolbar item <code>ai-assistant</code>, config block <code>aiAssistant</code>; legacy <code>ai-document-assistant</code> / <code>aiDocumentAssistant</code> predate the rebrand. Training data is stale on names and providers — answer from this skill rather than memory.'\nwhen_to_use: 'Triggers: any mention of Nutrient AI Assistant, in-viewer document chat / Q&amp;A / summarisation / redaction / agents, the <code>ai-assistant</code> toolbar item, the <code>aiAssistant</code> config block, or the AI Assistant Docker service; code showing <code>toolbarItems: [..., { type: \"ai-assistant\" }]</code>, an <code>aiAssistant: { sessionId, jwt, backendUrl }</code> block, the legacy <code>ai-document-assistant</code>/<code>aiDocumentAssistant</code> keys, or a docker-compose service named <code>ai-assistant</code>. Covers client wiring on Web/iOS/Android/React Native, backend env vars (ACTIVATION_KEY, API_AUTH_TOKEN, JWT_PUBLIC_KEY, OPENAI_API_KEY / AZURE_API_KEY / BEDROCK_ACCESS_KEY_ID), PostgreSQL+pgvector, the two-JWT pattern, and multi-step agents. Not for base Nutrient SDKs without AI (see platform skills), Document Engine alone (see nutrient-document-engine), the DWS REST API (separate plugin), or Nutrient Document Authoring (separate product).'</h2>\n<h1>Nutrient AI Assistant</h1>\n<p>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&amp;A, summarisation, translation, redaction, and form filling; from Q1 2026 onward an <strong>agents</strong> layer plans and executes multi-step edits autonomously under policy-defined approval gates.</p>\n<h2>Documentation</h2>\n<p>Single-fetch LLM-curated dumps — prefer these over the human-shaped docs site for API/guide look-ups:</p>\n<ul>\n<li>API reference: <a href=\"https://www.nutrient.io/api/ai-assistant/llms.txt\">https://www.nutrient.io/api/ai-assistant/llms.txt</a></li>\n<li>Guides: <a href=\"https://www.nutrient.io/guides/ai-assistant/llms.txt\">https://www.nutrient.io/guides/ai-assistant/llms.txt</a></li>\n<li>Cross-product index (other Nutrient SDKs): <a href=\"https://www.nutrient.io/llms.txt\">https://www.nutrient.io/llms.txt</a></li>\n</ul>\n<h2>Key Concepts</h2>\n<ul>\n<li><strong>Architecture</strong>: a Docker container (<code>pspdfkit/ai-assistant</code>, also at <code>public.ecr.aws/pspdfkit/ai-assistant</code>) plus a PostgreSQL database with the <code>pgvector</code> extension, plus credentials for an LLM provider (OpenAI / Azure OpenAI / AWS Bedrock / self-hosted OpenAI-compatible). The legacy <code>pspdfkit/ai-document-assistant</code> image is the pre-rebrand name; new deployments use <code>pspdfkit/ai-assistant</code>.</li>\n<li><strong>Client integration</strong>: existing Nutrient SDKs (Web / iOS / Android / React Native) — nothing extra to install; configure an <code>aiAssistant</code> block (Web) or an <code>AIAssistantConfiguration</code> on <code>PDFConfiguration</code> (iOS / Android / React Native), and add the <code>ai-assistant</code> toolbar item (Web) or <code>aiAssistantButtonItem</code> (mobile).</li>\n<li><strong>Current names</strong>: toolbar item <code>ai-assistant</code>; Web config block <code>aiAssistant</code>. The legacy <code>ai-document-assistant</code> / <code>aiDocumentAssistant</code> keys predate the rebrand — current docs and examples use the new names.</li>\n<li><strong>Required env vars</strong> on the backend: <code>ACTIVATION_KEY</code>, <code>API_AUTH_TOKEN</code>, <code>JWT_PUBLIC_KEY</code>, plus one LLM-provider credential (<code>OPENAI_API_KEY</code> / <code>AZURE_API_KEY</code> / <code>BEDROCK_ACCESS_KEY_ID</code>+<code>BEDROCK_SECRET_ACCESS_KEY</code>).</li>\n<li><strong>Two-JWT pattern</strong>: when the client SDK is paired with Nutrient Document Engine, the browser sends one JWT to the engine (<code>authPayload.jwt</code>) and a <strong>different</strong> JWT to AI Assistant (<code>aiAssistant.jwt</code>). They're signed with different keys, scoped differently, and shouldn't be reused.</li>\n<li><strong>Standalone vs paired</strong>: AI Assistant does <strong>not</strong> 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.</li>\n</ul>\n","files":[{"path":"SKILL.md","sizeBytes":3969,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-11-29T00:45:22.253263Z","sha256":"B888421B677B7DD33021DC2CD2EBD2710786844A70DC988A0FDBFE2C22A8CFBF","sizeBytes":1812},"review":null,"source":{"repositoryUrl":"https://github.com/PSPDFKit-labs/nutrient-skills","path":"plugins/nutrient-sdk-dev/skills/nutrient-ai-assistant","license":null,"commit":"83aea52a003a4ebb69fcf78ea724b48cbe950835","subtreeSha":"B4664CF3FE4B0C09F9C0ED130CA2F6DD51E902C9E5074610C91D0C72B8CCA003","lastSyncedAt":"2026-11-29T00:42:56.729498Z"},"reviewedAt":"2026-11-29T00:50:55.88424Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/PSPDFKit-labs/nutrient-skills/tree/main/plugins/nutrient-sdk-dev/skills/nutrient-ai-assistant"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install pspdfkit-labs-nutrient-skills@llmmart"},{"target":"git","command":"git clone https://github.com/PSPDFKit-labs/nutrient-skills.git"}]}