惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Schneier on Security
The Register - Security
The Register - Security
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The GitHub Blog
The GitHub Blog
博客园 - 司徒正美
罗磊的独立博客
U
Unit 42
S
SegmentFault 最新的问题
Y
Y Combinator Blog
博客园_首页
Hugging Face - Blog
Hugging Face - Blog
J
Java Code Geeks
Schneier on Security
Schneier on Security
Know Your Adversary
Know Your Adversary
C
Check Point Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Simon Willison's Weblog
Simon Willison's Weblog
V
Vulnerabilities – Threatpost
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志
The Hacker News
The Hacker News
博客园 - 叶小钗
C
Cybersecurity and Infrastructure Security Agency CISA
Spread Privacy
Spread Privacy
L
LINUX DO - 热门话题
T
The Exploit Database - CXSecurity.com
P
Palo Alto Networks Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Latest news
Latest news
L
Lohrmann on Cybersecurity
A
About on SuperTechFans
L
LangChain Blog
Stack Overflow Blog
Stack Overflow Blog
S
Securelist
A
Arctic Wolf
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Threatpost
Scott Helme
Scott Helme
博客园 - 聂微东
博客园 - 【当耐特】
T
Tenable Blog
I
Intezer
D
DataBreaches.Net
B
Blog RSS Feed
Security Latest
Security Latest
C
Cisco Blogs
T
Tor Project blog
N
Netflix TechBlog - Medium

Inside Nutrient

A guide to the invisible work behind documents Introducing Nutrient Documents for Salesforce: Native document generation and signing Document AI vs. traditional OCR: Choosing between OCR, AI, and hybrid pipelines PDF SDK compliance and security evaluation checklist for enterprise teams (2026) Invariant Corp replaces paper processes with Nutrient Workflow and scales without limits What is process mapping? A complete guide Nutrient vs. Conga Composer for Salesforce document generation (2026) Document routing: How to automate document distribution The CTO’s AI playbook: Why accountability architecture beats orchestration Compliance workflow automation: Why built-in compliance is table stakes Workflow diagrams: Examples, symbols, and how to build one that actually runs Digital forms: Replace paper forms with automated workflows Approval workflow software: How to automate approvals Why document-centric automation is different The CEO’s AI playbook: Why decision architecture beats model selection Nutrient SDK product updates for Q1 2026 PDF redaction verification: How to prove sensitive data is permanently removed What is a VPAT? The complete guide to accessibility conformance reports What is PDF/UA? The accessible PDF standard explained Salesforce eSignatures: Generate, sign, and track documents in one flow Online document viewer: Options, tradeoffs, and how to embed one Document viewer for web apps: React, Vue, Angular (2026) Best document viewers in 2026: A buyer’s guide How to edit a PDF in Python: Add text, images, and annotations Nutrient advances Workflow platform with agentic AI for enterprise-grade speed and consistency in document-heavy operations How to create a Salesforce quote template from opportunity data The business case for accessibility: Five ways it drives enterprise value Python PDF library comparison (2026): 7 libraries for developers Why your AI agent hallucinates PDF table data PDF.js limitations: When to upgrade to a commercial PDF SDK How Subject scaled 5× with Nutrient’s PDF SDK without rebuilding its document layer I replaced our sales training with an AI coach that runs in Slack — here’s what broke Redirecting to: https://securitybuzz.com/cybersecurity-news/why-enterprise-permissions-are-ais-most-dangerous-inheritance/ Nutrient .NET SDK vs. iText Core: Complete comparison for .NET developers DocuVieware: Support’s most frequently asked setup questions Introducing Nutrient Workflow How to convert PDF to Word in C# (.NET) When email and spreadsheets stop working: Work order approval workflows for field teams on the move Compliance with confidence: Why document-centric automation is the foundation of your mission Nutrient expands AI Assistant, automating multistep document workflows inside any application What is document generation? A developer’s guide to PDF generation Document Converter data flow and how real-time watermarks skip the queue PDF/UA compliance guide: Requirements, standards, and best practices Computers still can’t understand you How Athena Intelligence built AI agents for regulated enterprises with Nutrient’s document infrastructure How to convert HTML to PDF (2026): 4 methods from browser print to SDK How to build a document extraction pipeline with Nutrient Vision API OCR vs. intelligent document processing: Choosing the right document extraction engine Beyond OCR: How document intelligence eliminates manual processing in regulated industries Nutrient vs. IronPDF: Complete comparison for .NET developers Nutrient vs. Aspose.PDF: Complete comparison for .NET developers Redirecting to: https://fortune.com/2026/02/19/openclaw-who-is-peter-steinberger-openai-sam-altman-anthropic-moltbook/ Lufthansa Systems uses Nutrient to deliver reliable, scalable PDF rendering for pilots worldwide Nutrient vs. Syncfusion: Complete comparison for .NET developers React’s useTransition: The hook you’re probably using wrong First City Monument Bank streamlines banking processes with Nutrient Workflow Redirecting to: https://www.sdcexec.com/warehousing/automation/article/22957364/nutrient-workflow-automation-the-missing-link-in-supply-chain-efficiency The complete guide to digital signatures: PAdES, CAdES, and XAdES explained Nutrient Python SDK: Production-grade document processing for Python Introducing agentic document editing for web applications with AI Assistant Nutrient vs. QuestPDF: Complete comparison for .NET developers How we fixed the GdPicture license expiration (and what to do if you’re affected) Red team security testing with agentic AI The future of healthcare document automation Best healthcare workflow software compared Nutrient SDK product updates for Q4 2025 How Harvey scaled legal document workflows 50 percent MoM without rebuilding infrastructure HIPAA-compliant document management in hospitals How we optimized rendering performance while handling thousands of annotations in React — Part 2 Automated PII removal with Nutrient API Redirecting to: https://www.devopsdigest.com/2026-low-code-no-code-predictions Redirecting to: https://www.kmworld.com/Articles/Editorial/ViewPoints/Leaders-predict-AI-to-continue-permeating-all-aspects-of-KM-in-2026-172594.aspx What are deep agents and how do they solve complex problems? Whipping up document magic: Your easy-bake recipe for Vue and Nutrient Web SDK 🧁 What I’ve learned about product iteration planning while building SDKs Passwordless document signing: Three-layer security guide New zip folder functionality streamlines file management in Document Automation Server The keyboard shortcuts playbook: Taking control of keyboard events in Nutrient Web SDK From experienced engineer to AI beginner: My unexpected journey AI-assisted manual testing: Handling Safari’s PDF rendering and UI quirks How to keep a 20-year-old SDK up to date How we optimized rendering performance while handling thousands of annotations in React — Part 1 Nutrient announces new executive hires to accelerate next phase of growth High performance UI using web workers Automate document conversion at scale with Python and Nutrient DCS From curiosity to PLG (and AI): My journey to understanding product-led growth Prost to progress: One year as Nutrient Pigeon usage at Nutrient: Bridging native SDKs to Flutter Modernizing CI build servers: How to migrate from Chef to Ansible Unix man pages: AI-friendly documentation since 1971 Consistent hashing for even load distribution Best AI redaction APIs: Complete comparison guide for 2025 Why AI document redaction matters for modern security From coding to coordinating: How AI transformed my workflow What is intelligent document processing (IDP)? A complete guide Enterprise PDF SDKs: Best PSPDFKit (now Nutrient) alternatives Nutrient SDK product updates for Q3 2025 GdPicture support best practices Redacting sensitive data with Nutrient AI redaction API How AI is transforming the customer experience at Nutrient: From instant answers to intelligent support
Introducing Document Authoring AI: Structured LLM editing for embedded document editors
Pavel Bogachevskyi · 2026-06-12 · via Inside Nutrient

Table of contents

    Introducing Document Authoring AI: Structured LLM editing for embedded document editors

    TL;DR

    • Document Authoring AI is the new AI editing capability in Nutrient Document Authoring SDK. Same SDK, same license, opt-in package.
    • It closes the gap between a large language model (LLM), which works with text, and a document editor, which works with typed, identified elements. Most teams currently bridge that gap themselves — as a one-off — for their own use case.
    • Two integration paths: agentic tools for open-ended editing through chat, and workflows for bounded one-shot tasks like proofreading or translation. Workflows ship faster if you’re picking one.
    • The model never edits the document directly. Every AI write runs through the editor’s transaction API and lands in the standard tracked-changes UI a human already knows how to use. The AI can attach a comment to each edit explaining why.
    • Framework-neutral. Adapters for Vercel AI SDK(opens in a new tab) and LangChain(opens in a new tab) ship in the package; a JSON export covers Python, Go, Ruby, and any other non-TypeScript backend. You choose the model and hold the keys.

    The hard part of adding AI editing to a document editor isn’t the LLM. It’s everything between the LLM and the document.

    This is the post about that gap and the new AI capability in Nutrient Document Authoring SDK that closes it. Document Authoring AI is the integration layer between large language models and the Nutrient Document Authoring SDK editor: structured read tools, validated writes, and tracked-changes review in one library. It ships now, with the SDK, under the same license.

    If you’ve embedded a document editor in a SaaS product and your roadmap now says “add AI editing,” this post is for you.

    What’s actually hard about AI document editing

    LLMs work with text. Document editors work with structured elements — typed paragraphs, headings, tables, lists — each with an identity, a position, and relationships to the elements around them. When you ask an LLM to “shorten the launch summary paragraph,” the model doesn’t know which paragraph that is, can’t reference it by ID, and can’t write back to a specific element. It can only return more text.

    Bridging that gap is where the engineering work lives. To get from “make the risk level bold” to a real document edit, your code has to:

    • Give the LLM a structured view of the document so it can locate the right element.
    • Translate the LLM’s response into a typed edit operation against the editor’s API.
    • Validate that operation before it touches the document, so a confused model can’t produce malformed state.
    • Surface every change to a human reviewer before it sticks.

    Most teams that ship AI editing inside a document editor build all of that themselves — as a one-off — for their specific use case. The result is usually fragile in predictable ways: Prompt engineering keeps the model close to a happy path, the diff UI is rough, and the validation layer is a fence around a known set of edits rather than the editor’s actual transaction API.

    Document Authoring AI is the version of that work done as a maintained part of the SDK, designed to hold up at production volume.

    What ships in the box

    Three things ship, all opt-in by installing @nutrient-sdk/document-authoring-ai on top of an existing Document Authoring editor:

    1. Structured document tools the model can call to read and edit the document by ID rather than by text position.
    2. A validation boundary that runs every write through the same transaction API your application code uses. Edits that would break document structure are rejected before they apply.
    3. A review surface built on the editor’s existing tracked-changes UI. AI edits land as tracked changes a reviewer accepts or rejects, with an optional comment from the AI explaining why it made each edit.

    The execution split is the same in every integration: Your server talks to the model, your browser talks to the document. The toolkit gives you framework-neutral tool definitions on the server side and an editor-bound execution boundary on the browser side. The model never gets to mutate the document directly — it can ask for an edit, and the browser decides whether to honor the request based on the current editor mode and your app’s policy.

    Document Authoring AI gives you two integration paths. They share the same execution model and the same review surface; the difference is who’s driving the task.

    Agentic tools, for open-ended editing

    This is the chat-style path. The user types something like “find the launch summary and make it shorter” or “add a table with the next three milestones.” The model picks a tool, the editor runs it, the result goes back into the conversation, and the loop continues until the model is done.

    On the server, you expose the toolkit’s tool definitions through your AI framework. The browser receives each tool call, validates it against the toolkit’s schema, applies your editor mode policy, and runs the operation against the live editor.

    The read toolsread_document, search_elements, read_element — let the model navigate the document by structure rather than character offset. The write toolsadd_paragraphs, replace_paragraph, replace_text, add_table, replace_table, delete_block, format_text, format_list — target elements by ID. Every write tool call also accepts an optional reviewComment string that the browser surfaces as a threaded comment anchored to the changed text.

    The agentic tools guide has the full details.

    Workflows, for bounded tasks

    If your app already knows the task — proofread the document, translate it into Spanish, run it against your house style guide — workflows are the lower-effort path. There’s no chat loop. You read the document, send the snapshot to the model with a structured-output schema, get back a validated set of edits, and apply them in one batch.

    Two workflows ship built in:

    • Proofreading fixes spelling, grammar, punctuation, capitalization, and duplicated words. It deliberately won’t rewrite for style, shorten the document, or touch formatting. Keeping the diff predictable is what makes it safe to apply as tracked changes.
    • Translation runs between English, German, French, and Spanish. Document structure, paragraph order, tables, names, numbers, dates, and formatting intent stay intact. Only the text changes.

    Custom workflows use the same shape: Define a system prompt, define a default task, and the editor handles the read, validation, and apply steps. The workflows guide has the full API.

    If you’re picking one path to start with, workflows ship faster. They have fewer moving parts and no tool loop to manage. Both paths can live in the same app once you’ve got one running.

    Review without building a diff UI

    Every AI write follows the editor’s current mode:

    • Edit mode — Writes apply immediately.
    • Review mode — Writes land as tracked changes a reviewer accepts or rejects in the standard tracked-changes UI.
    • View mode — Writes are blocked. The model gets back a tool error and can prompt the user to switch modes.

    This matters because building a custom AI diff surface is the kind of scoping item that doesn’t show up until late in the project, and once it does, it stays in the maintenance budget forever. Document Authoring AI plugs the AI into the same review surface your human collaborators already use, so the answer to “where can my users see what the AI did” is: in the place they already look.

    The reasoning-comments feature is the part most worth flagging. When you enable comment creation, the toolkit attaches the model’s reviewComment text as a threaded comment anchored to the changed paragraph or table. In Review mode, the comment explains a proposed change; in Edit mode, it explains an applied one. Either way, the audit trail isn’t just “this changed” — it’s “this changed, because of this.”

    For workflows that need the AI’s reasoning surfaced — legal, clinical, regulated content — that’s the difference between a usable record and a defensible one.

    The review and approval guide has the full mode and review policy.

    Bring your own model: Framework adapters and backend options

    Document Authoring AI has no opinion about your model provider. You pick the LLM, you hold the API keys, you write the prompts. The toolkit owns the document interface and stays out of everything else.

    Three integration surfaces ship today:

    • Vercel AI SDKtoVercelAiTools() converts the toolkit’s tool definitions into a Vercel AI SDK toolset you pass to streamText. For workflows, toVercelAiWorkflowOutputSchema() returns a schema you pass through Output.object().
    • LangChaintoLangChainTools() returns LangChain-shape tool definitions you bind with model.bindTools(). Workflows use model.withStructuredOutput().
    • Non-TypeScript backendsnpx @nutrient-sdk/document-authoring-ai export-tools writes the prompt guide, tool definitions, input/output schemas, and capability metadata to a JSON file any backend can read — Python, Go, Ruby, LangGraph, or anything else that speaks JSON. The backend orchestrates the model; the browser session that owns the live editor still owns document execution.

    There is no MCP server, no REST execution endpoint, no managed agent service. The browser is the document execution layer. Everything else is your stack.

    What’s actually new here, in one paragraph

    Embedded AI in document editors isn’t new. What’s specific to this release is the combination of structured tools, schema-validated execution, and tracked-changes review, in a framework-neutral library that ships with the SDK. The AI sees structure rather than text. The editor’s transaction API enforces validity rather than the model’s prompt. The review surface is the standard tracked-changes UI rather than a custom diff. Each of those is a build vs. buy decision most teams make on their own; the value of having them in one library is the time you don’t spend reconciling them later.

    Try it

    • Start with workflows if you want to ship one bounded AI task fast.
    • Move to agentic tools when you need open-ended editing.
    • For non-TypeScript backends, the JSON export path is the entry point.

    Or open the AI editor demo(opens in a new tab) and try a prompt. The full feature surface is in the AI toolkit guides.

    FAQ

    Agentic tools are for open-ended editing where the user describes what they want in plain language (“shorten the launch summary”) and the model picks tools, applies them, and iterates until the task is done. Workflows are for bounded tasks the app already knows about — proofread the document, translate it, run a custom house style check. Workflows skip the chat loop entirely: The model returns a structured set of edits and the editor applies them in one batch. Both paths share the same execution model and the same tracked-changes review surface. Workflows ship faster if you’re picking one to start with.

    Two reasons. First, the tracked-changes UI is something your users already know — they don’t have to learn a new review surface for AI-generated changes. Second, building a custom AI diff surface is the kind of scoping item that doesn’t show up until late in a project and stays in the maintenance budget forever. Document Authoring AI uses the editor’s existing tracked-changes UI, so the answer to “where can my users see what the AI did” is: in the place they already look. AI changes can also carry a threaded comment explaining the model’s reasoning, anchored to the changed text in the same comment view a human reviewer would use.

    Same pattern, different scope. Claude for Word(opens in a new tab) — Anthropic’s Word add-in, released in public beta in April 2026 — popularized the model of AI edits landing as tracked changes in Word’s native review pane: the original text visible as a deletion, the new text as an insertion, with the AI able to reply to comment threads explaining what changed. That pattern is the right one. The constraint is scope: Claude for Word only works inside Microsoft Word, only with Anthropic’s Claude models, only for users already in the Microsoft ecosystem. Document Authoring AI delivers the same review model inside your own embedded editor, with the model you choose, for your users.

    Yes. The toolkit exposes a JSON export — run npx @nutrient-sdk/document-authoring-ai export-tools — that writes tool definitions, input/output schemas, the prompt guide, and capability metadata to a backend-agnostic JSON file. Your server-side orchestration (Python, Go, Ruby, LangGraph — anything that speaks JSON) talks to the model; the browser session that owns the live editor still owns document execution. The execution split — server talks to the model, browser talks to the document — is the same, regardless of backend language.

    Yes. Proofreading and translation are built in, and a third workflow — Template Builder — ships as a worked example showing how to build a custom workflow as a single function call. Custom workflows use the same shape: Define a system prompt, define a default task, and the editor handles the read, validation, and apply steps. Common uses include compliance checks, contract placeholder filling, and house style enforcement.

    Explore related topics

    Try for free Ready to get started?

    Related SDK articles

    Explore more