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

✍️ OpenClawRadar📅 Published: July 4, 2026🔗 Source
SquarePact Word Add-In Connects to OpenClaw Gateway for Agentic Document Editing
Ad

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

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

Ad

👀 See Also