Import diagram
import_diagramTurn an existing diagram or automation into editable Wavelength flows, with no AI call. Pass the source as text: a Mermaid flowchart, draw.io or diagrams.net XML (plain or compressed), an SVG (for example an SVG diagram you drew earlier in this chat), an n8n workflow JSON, a Zapier export (zapfile.json or a Zap JSON export), or a dbt manifest.json (whole project lineage, up to 250 nodes). Shapes or steps become nodes, connectors become edges with their labels, diamonds, IF and Switch nodes, Filters and Paths become decisions. An automation file with several workflows creates one flow per workflow (up to 25). Exact positions and colors are not kept; the flow is laid out again in process order. Returns the new flow id (or a list of imported flows), detected format, node and edge counts, and a link to open each.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional title. Defaults to the first node label. | |
| format | No | Optional. Detected from the content when omitted. | |
| content | Yes | The source text: Mermaid, draw.io XML, SVG markup, n8n workflow JSON, Zapier export JSON, or dbt manifest.json. | |
| team_id | No | Optional team id to assign the flow to. | |
| direction | No | Optional layout direction. Default vertical. | |
| folder_id | No | Optional folder id to create the flow in. |