SquarePact Word Add-In Connects to OpenClaw Gateway for Agentic Document Editing

SquarePact, a third-party Word add-in (not affiliated with OpenClaw), has added a feature that connects directly to your own OpenClaw gateway over WebSocket. This lets your AI agent edit the document you have open in Word.
How It Works
- The add-in connects to your gateway over WebSocket.
- Edits never apply automatically. The agent proposes an edit, which appears as a card in the add-in; you approve or dismiss it.
- Before applying an approved edit, the add-in rechecks that the current document content still matches what the agent saw. If the document has changed, the edit fails instead of applying to the wrong location — no stale edit surprises.
Key Technical Learnings
Tool Declaration via Message Text
OpenClaw provides no way to declare tools in the chat client. SquarePact works around this by describing the tools in the message text on every turn, then parsing the agent's reply for tool calls. Smaller local models sometimes produce malformed JSON in tool calls, so the add-in sends a retry message restating the required format, capped at 2 retries per turn.
Conversation History on Gateway
OpenClaw keeps conversation history server-side. SquarePact never sends history — each turn is just the tool contract plus the new message. Reopening an old chat reattaches to the same session, which dramatically simplified the client.
Word Bullet Normalization
Word's default bullet characters use Symbol font private-use Unicode, which reads back as empty text. The agent kept reporting broken bullets that were actually fine until SquarePact normalized them before sending to the agent.
Setup and Availability
Setup guide: squarepact.com/openclaw-setup
Site: squarepact.com
The developers are asking the community what other document editing capabilities they'd want their agent to perform that this integration doesn't yet support.
📖 Read the full source: r/openclaw
👀 See Also

ConnectSafely AI MCP Server Links LinkedIn to Claude for Direct Control
ConnectSafely AI provides an MCP server that connects LinkedIn directly to Claude, allowing users to send messages, search for people, check profile visitors, and track conversations through prompts without switching tabs.

md-viewer: A Live-Reloading Markdown Viewer for Claude Code Workflows
md-viewer is a lightweight Rust tool that provides live-reloading markdown viewing for files generated by Claude Code. It runs independently of editors, supports Mermaid diagrams, and installs via AUR, Snap, or Cargo.

cc+ Desktop App for Claude Code: Multi-Session Management and Fleet Orchestration
cc+ is an open-source desktop application for Claude Code built on the Claude Agent SDK, available for macOS and Linux. It provides multi-session tabs, live activity tree visualization, security scoring, workflow enforcement, and fleet orchestration capabilities.

Claude Code Rebuilt a SaaS Onboarding Flow in 6 Hours vs Developer's 3-Week Quote, Boosting Activation 13 Points
A SaaS founder used Claude Code to rebuild their entire onboarding flow (signup → profile → first invoice → dashboard tutorial) in 6 hours, replacing a developer's $4,500, 3-week estimate. Activation rate improved 13 points from 35% to 48%.