Creating a new AI diagram

How to create an AI diagram

  1. In the canvas, open the insert menu (or press /).
  2. Select Diagram as Code then AI Diagram (or press ⌘/Ctrl+J).
  3. Enter prompt using natural language or code snippet.
  4. (Optional) Select diagram type.
  5. Click "Generate".

Selecting a diagram type

Users can optionally select a diagram type manually. If not selected, Eraser AI will automatically choose the most suitable diagram type for the provided input.

The possible diagram types the same as what is available in diagram-as-code:

  • Sequence Diagrams
  • Entity Relationship Diagrams
  • Cloud Architecture Diagrams
  • Flow Charts