---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/diagram-generator/use-cases/build-sequence-diagrams/openclaw
---
# How to Build Sequence Diagrams with OpenClaw

OpenClaw generates sequence diagrams from structured interaction descriptions, producing consistently formatted output suitable for technical documentation systems. Process multiple service interaction definitions to create complete API documentation diagram sets with uniform styling.

## Setup

openclaw mcp add toolrouter -- npx -y toolrouter-mcp

## Steps

1. Connect ToolRouter: openclaw mcp add toolrouter -- npx -y toolrouter-mcp
2. Ask OpenClaw: "Create a sequence diagram" and describe the participant interactions
3. OpenClaw generates the diagram with lifelines, messages, and responses
4. Download and include in your technical documentation

## Example Prompt

```
Build a sequence diagram for real-time messaging: user A sends message to WebSocket server, server stores in database, server pushes to user B via WebSocket, user B sends read receipt back.
```

## Tips

- Distinguish between synchronous and asynchronous messages for clarity
- Include activation bars to show when each participant is actively processing
