---
title: ToolRouter — Use Case
description: Step-by-step guide for a real-world ToolRouter use case with agent-specific instructions.
url: https://toolrouter.com/tools/diagram-generator/use-cases/build-sequence-diagrams
---
# Build Sequence Diagrams

Sequence diagrams show the conversation between components in a system -- who sends what to whom and in what order. They are the best way to visualize API call chains, authentication flows, webhook sequences, and any interaction where the order of operations matters.

The generate_diagram skill creates sequence diagrams from descriptions of participant interactions. Name the actors and services involved, describe the messages they exchange, and the AI produces a properly formatted sequence diagram with lifelines, arrows, and optional activation boxes. It handles synchronous calls, asynchronous messages, loops, and alternative paths.

Developers use sequence diagrams to design API contracts before writing code, debug complex multi-service interactions, document webhook flows for integration partners, and explain authentication protocols to security reviewers. The visual timeline makes it immediately clear what happens in what order -- something that is hard to communicate in prose or code alone.

**Tool:** [Diagram Generator](https://toolrouter.com/tools/diagram-generator)
**Skills:** generate_diagram

## Agent Guides

- [How to Build Sequence Diagrams with Claude](https://toolrouter.com/tools/diagram-generator/use-cases/build-sequence-diagrams/claude): Guide for Claude
- [How to Build Sequence Diagrams with ChatGPT](https://toolrouter.com/tools/diagram-generator/use-cases/build-sequence-diagrams/chatgpt): Guide for ChatGPT
- [How to Build Sequence Diagrams with Copilot](https://toolrouter.com/tools/diagram-generator/use-cases/build-sequence-diagrams/copilot): Guide for Copilot
- [How to Build Sequence Diagrams with OpenClaw](https://toolrouter.com/tools/diagram-generator/use-cases/build-sequence-diagrams/openclaw): Guide for OpenClaw
