Ask ChatGPT for Sankey data, then check it in a table
An AI assistant is a quick way to get the shape of a Sankey diagram: the stages, the categories, rough amounts from a report you pasted in. It is a poor way to get numbers that add up. So ask it for the table, paste the table into SankeyCharts.app, and let the diagram show you where the sums are off.
Ask for the flows as a table
A prompt that works: "List the flows for a Sankey diagram of [your topic] as a table with three columns, Source, Target and Amount, one flow per row. Use the same name every time a node appears. Put the unit in the Amount header."
Using the same name each time matters: "Revenue" and "Total revenue" are two nodes to a diagram, however obvious it is to a reader that they mean the same thing.
Paste it in
Select the table in the chat, header row included, copy it, and paste it into the first empty row of the sheet in SankeyCharts.app. The header tells the sheet which column is which, every name becomes one node, and the bands are sized by amount. If the table arrives in a single column, ask for the same table as CSV, save it as flows.csv and use File, then Import from Excel or CSV.
Let the balance check do the proofreading
This is the step that matters. Every node's inflow is compared with its outflow, and a node that takes in more than it passes on, or passes on more than it takes in, is flagged on its row with the difference. Language models are fluent and often a little wrong with sums; a 4,000 that splits into parts adding up to 4,150 is easy to miss in a chat and impossible to miss on a flagged row.
Fix the numbers in the sheet, not in the chat: the diagram redraws as you type. When a difference is real, such as money left unspent, add a node for it so the diagram says so.
Frequently asked questions
Can ChatGPT make a Sankey diagram?
It can write the data, as a source, target, amount table, or code for a charting library. For an editable diagram that checks its own sums, paste the table into a Sankey maker such as SankeyCharts.app.
Why do the AI's numbers not add up?
Language models produce plausible numbers, not checked ones. SankeyCharts.app compares each node's inflow with its outflow and flags the difference, so you can fix it before the diagram is shared.
Try it on your own numbers
The editor is free and opens with a starter Sankey diagram. One row per flow, typed or pasted, and the diagram draws itself. No signup required.
Create Your Sankey Diagram Free