---
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/create-architecture-diagrams/openclaw
---
# How to Create Architecture Diagrams with OpenClaw

OpenClaw produces architecture diagrams from structured system descriptions, handling complex multi-service topologies with consistent layout conventions. It excels at generating diagram sets for documentation suites where every service needs the same visual treatment and style.

## 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 an architecture diagram" and describe your system components
3. OpenClaw generates the diagram with proper layout and connections
4. Download and use in your documentation

## Example Prompt

```
Generate an architecture diagram: mobile app connects to a GraphQL API, which uses Redis for caching and PostgreSQL for persistence. A background worker processes jobs from a Redis queue.
```

## Tips

- Include infrastructure boundaries like VPCs, regions, or Kubernetes clusters for clarity
- Regenerate the diagram as your architecture evolves instead of manually updating
