Skip to content

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).

  • 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.

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.

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).

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

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.

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.

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.

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.

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).

More: Knowledge and Chat.