Multi doc agent workflows in Word

alansaber1 pts0 comments

Multi doc agent workflows in Word | Lexifina<br>FeaturesSecurityPricingBlogSign in

Blog/Product/Multi doc agent workflows

Blog/Product/Multi doc agent workflows

Multi doc agent workflows in Word<br>Alan Yahya·June 18, 2026·5 min read

Most integrated agent systems, like Claude for Word, are scoped to a single document. Our users often work across multiple word documents at once, so we felt it was important to make it as convenient to move between documents as possible.<br>To do so, the system keeps four concepts separate:<br>Agent Session – the ongoing conversation and execution history.<br>Active Document – the document currently open in Word.<br>Turn Document – the document the current prompt is working on.<br>Document Version – a saved version of the document created after approved changes are applied.

Keeping these identities separate prevents mistakes when users move between documents.<br>For example, a user can:<br>Start a conversation in one document.<br>Open a citation that points to another document.<br>Return to the original document.<br>Apply changes only to the correct source document.

Background Agent Execution<br>When a user submits a request from Word, the add-in immediately returns control to the user instead of waiting for the agent to finish.<br>The process works as follows:<br>The add-in creates a run record.<br>It subscribes to the live event stream.<br>It sends the request to the backend.<br>The backend creates a persistent turn and starts execution.

The request includes:<br>Current document state<br>Selected document identity<br>Session identity<br>Tool permissions<br>User prompt

For a new conversation, the session becomes linked to the current document. For an existing conversation, the session keeps its original document while the request specifies which document is currently active.<br>Tool Access Control<br>Agents only receive tools that are explicitly allowed by the selected profile and tool policy.<br>For example:<br>A user may allow web search.<br>The same user may block access to other documents.

Disabled tools are completely removed from the agent's available capabilities rather than being treated as optional instructions.<br>Users control these permissions through the Word add-in's agent settings. The selected profile and permissions are reused in future sessions until changed.

Durable State<br>All activity is written to persistent storage while the run is executing.<br>This allows the session to be reconstructed even if:<br>The task pane reloads<br>Word switches documents<br>The client misses events

The live stream improves responsiveness, but the stored session history remains the authoritative source of truth.<br>Finalization<br>When execution finishes:<br>The backend stores the final result.<br>Active run information is cleared.<br>A finalized-turn event is emitted.<br>The add-in reloads the session from backend state.

The review queue is populated only from this finalized backend state, ensuring that partial streaming updates are never treated as the final result. This is all synchronised with our version control system, for full records of the agent activity as well as the document diff.

Previous<br>Keep up with Lexifina<br>Next

document agent word session user multi

Related Articles