---
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/generate-flowcharts/chatgpt
---
# How to Generate Flowcharts with ChatGPT

ChatGPT creates flowcharts while thinking critically about your process. It spots missing steps, suggests error handling branches you may not have considered, and can optimize the flow based on common patterns. The result is a flowchart that documents not just what you described but what your process actually needs.

## Setup

{"mcpServers":{"toolrouter":{"command":"npx","args":["-y","toolrouter-mcp"]}}}

## Steps

1. Configure ToolRouter in ChatGPT
2. Ask: "Generate a flowchart for this process" and describe each step and decision
3. ChatGPT creates the flowchart with standard symbols and clear flow
4. Request: "Add an error handling branch for when the payment fails"

## Example Prompt

```
Create a flowchart for an order processing workflow: receive order, validate payment, if payment fails notify customer, if payment succeeds check inventory, if in stock ship order, if out of stock backorder and notify customer.
```

## Tips

- ChatGPT can suggest missing steps or edge cases you may not have considered
- Ask for the flowchart in different orientations -- top-to-bottom or left-to-right
