Microsoft Word add-in (LEO only)
The LEO Word add-in is part of the LEO product within the Prudai Platform. It lets you use LEO inside Word, with capabilities that are not available in the web app (such as selection context and Word-native suggestions).
What the add-in can do
Section titled “What the add-in can do”- LEO runs in a task pane (iframe) and can:
- use your current selection as context,
- optionally include full document text (with a hard limit),
- insert output into Word,
- add comments anchored to a selection (or exact-match anchor),
- create suggestions (Word-style proposed replacements) if your Word client supports it.
Supported Word clients
Section titled “Supported Word clients”The add-in is validated on:
- Word for Windows and Mac (desktop),
- Word for the web (
word.cloud.microsoft).
The manifest explicitly aligns AppDomains to https, so the cloud Word host loads correctly.
Install (end users)
Section titled “Install (end users)”The add-in is usually distributed by IT/admin. Three distribution paths:
- Microsoft AppSource / Partner Center — published listing for broad rollout;
- central Microsoft 365 deployment by your admin (recommended for organizations);
- manual manifest (
.xml) sideloaded in Office for pilots or staging.
Ask your admin:
- which manifest or marketplace listing to use,
- which app URL corresponds to your environment (prod/staging).
Manifest (what’s inside)
Section titled “Manifest (what’s inside)”The manifest points to the task pane host page:
- local (example):
https://localhost:3002/word-addin/taskpane.html - production (example):
https://app.prudai.com/word-addin/taskpane.html
Sign-in inside Word
Section titled “Sign-in inside Word”Important: the task pane runs in an iframe. Many SSO providers block login inside iframes. Therefore:
- login is initiated via an Office dialog window,
- after success, the embedded task pane syncs the session (“check-sso”),
- tokens are kept in-memory inside the task pane; this avoids the Edge login loop that appeared once Edge tightened third-party cookie handling inside iframes.
If you run into issues: see Troubleshooting & support.
Using selection and document context
Section titled “Using selection and document context”Selection context
Section titled “Selection context”The add-in sends your current selection text to LEO. Example prompts:
- “Rewrite this paragraph in a formal style.”
- “Convert this into a risk/mitigation bullet list.”
Technical detail:
- selection is refreshed periodically (to handle missed Word selection events),
- the host avoids sending identical selection text repeatedly.
Include full document (toggle)
Section titled “Include full document (toggle)”There is a toggle to include full document context. This is intended for small/medium documents and has a hard limit.
Known limits:
- hard maximum size for document text (current implementation: ~600,000 characters),
- document text is used as ephemeral context and should not be persisted in chat history.
Getting output back into Word
Section titled “Getting output back into Word”From an assistant answer you can:
- export to Word (.docx), or
- in add-in context often choose “Insert into Word”.
Tip: ask for clean structure (headings, numbering) to make Word output easier to edit.
Word review (comments and suggestions)
Section titled “Word review (comments and suggestions)”If you enable “Word suggestions” under Knowledge, LEO can produce review-friendly output meant to land as:
- comments, or
- suggestions/annotations.
Annotations are written back to the specific Word selection you had, not just appended to the end of the document. The anchor matcher tolerates small whitespace and punctuation differences.
Limitations to expect:
- not all Word clients support all review APIs,
- anchoring can be strict (exact match, sometimes within a single paragraph).