Skip to content

Workflow Diagrams & Infographics ​

Transform Mermaid syntax or natural language into professional visual diagrams using Go Bananas Pro or OpenAI gpt-image-2.

Which model for diagrams?

  • gemini-pro-image — best for diagrams that need Google Search grounding (live data infographics, real-time stats) or 4K resolution.
  • openai-gpt-image-2 with quality: "high" — best for text-heavy diagrams, dense flowcharts, and infographics with small labels. The four diagrams currently embedded across this doc-site (routing-flow, provider-comparison, request-flow, decision-tree) were all generated with gpt-image-2.
  • gemini-flash-image — fine for quick mock-ups and drafts.

Pass your choice via model_id; both Pro and gpt-image-2 produce production-grade output.

Why Workflow Diagrams? ​

Creating professional diagrams traditionally requires design tools and expertise:

❌ Problem:
- Manual diagram tools (Figma, Lucidchart) require design skills
- Mermaid renders as simple SVGs without visual polish
- Creating infographics needs graphic design knowledge
- Consistent styling across diagrams is time-consuming

With Go Bananas Pro or OpenAI gpt-image-2:

✅ Solution:
- Convert any Mermaid syntax to beautiful visuals
- Describe diagrams in natural language
- Auto-select format (flowchart, infographic, timeline, org chart)
- Apply professional style templates with one command
- Use real-time data with Google Search grounding (Pro)
- Best-in-class small-text rendering for dense flowcharts (gpt-image-2)

Quick Start ​

From Mermaid Syntax ​

Convert this Mermaid diagram to a professional flowchart:

graph TD
    A[User Request] --> B{Valid Input?}
    B -->|Yes| C[Process Data]
    B -->|No| D[Show Error]
    C --> E[Return Result]
    D --> E

Style: Corporate, blue accent colors

From Natural Language ​

Create a flowchart showing the customer onboarding process:
1. User signs up
2. Email verification (decision point)
3. If verified: Profile setup → Welcome dashboard
4. If not verified: Resend email → Timeout check

Use corporate style with blue accent colors.

Data Infographic (with Real-Time Data) ​

Create an infographic comparing the top 5 cloud providers
by market share in 2024. Use current data from search results.
Vertical bar chart with company logos.

Note: Enable enable_grounding: true for real-time data

Supported Diagram Types ​

Full Mermaid Support (13 Types) ​

TypeSyntaxBest For
Flow Diagramgraph TD/LR/BT/RLProcesses, decisions
Flowchartflowchart TDSame as graph
SequencesequenceDiagramAPI flows, interactions
Class DiagramclassDiagramEntity relationships
State DiagramstateDiagram-v2State machines
ER DiagramerDiagramDatabase schemas
Gantt ChartganttProject timelines
Pie ChartpieData distribution
User JourneyjourneyUX flows
Mind MapmindmapIdea organization
TimelinetimelineChronological events
QuadrantquadrantChartPriority matrices
Git GraphgitgraphBranch visualizations

Auto-Selected Output Formats ​

The skill automatically chooses the best visual format:

FormatTriggered ByVisual Style
FlowchartDecision points, sequential stepsBoxes, diamonds, arrows
Process MapMulti-lane workflows, swimlanesHorizontal lanes
InfographicStatistics, comparisons, dataIcons, charts, numbers
TimelineChronological events, phasesHorizontal/vertical milestones
Org ChartHierarchies, team structuresTree layout
Mind MapIdeas, brainstormingRadial branches

Style Templates ​

Choose a visual style for your diagrams:

StyleDescriptionBest For
CorporateClean lines, brand colorsBusiness presentations
MinimalWhitespace, monochromeTechnical documentation
Hand-drawnSketch aestheticWhiteboard brainstorming
BlueprintTechnical, engineeringArchitecture diagrams
RetroVintage 1950s styleCreative presentations
ModernFlat design, bold colorsSocial media, marketing
Dark ModeDark background, light textScreen-friendly
NeonGlowing, high contrastGaming, entertainment
GradientSmooth color transitionsPremium, landing pages

Usage:

Create a flowchart showing user authentication.
Use **hand-drawn** style for a whiteboard aesthetic.

Golden Rules for Visual Diagrams ​

From Google DeepMind's Gemini Pro guide

1. Be Descriptive and Specific ​

Write full sentences, not tags. Describe the complete visual scene.

Bad: flowchart, nodes, arrows, business

Good: "A corporate flowchart with rounded blue rectangles for process steps, orange diamonds for decision points, and green circles for start/end nodes."

2. Explicitly Define Layout ​

Tell the model exactly where things go:

  • "Start node at the top center"
  • "Three vertical columns, left-to-right flow"
  • "Arrange in a 2x3 grid pattern"

3. Use Quoted Text for Labels ​

Ensure exact text appears on nodes:

  • "The start node contains the text 'User Request'"
  • "Decision diamond labeled 'Is Valid?'"

4. Specify Visual Style ​

Be explicit about the aesthetic:

  • "Rendered as if it were a whiteboard sketch"
  • "Professional corporate presentation style"
  • "Modern flat design with soft shadows"

Examples ​

Sequence Diagram ​

Convert this to a visual sequence diagram:

sequenceDiagram
    participant User
    participant API
    participant Database
    User->>API: POST /login
    API->>Database: Query user
    Database-->>API: User data
    API-->>User: JWT token

Style: Modern, with subtle gradients and rounded boxes.

Project Timeline ​

Create a timeline for our product launch:
- Phase 1: Research (Jan-Feb)
- Phase 2: Development (Mar-May)
- Phase 3: Beta Testing (Jun-Jul)
- Phase 4: Launch (Aug)
- Phase 5: Growth (Sep-Dec)

Horizontal layout, milestone markers, progress indicators.
Corporate style with our brand blue.

Decision Tree ​

Create a decision tree for customer support routing:

Start: Customer contacts support
Decision 1: Is it a billing issue?
  Yes → Billing Team
  No → Continue
Decision 2: Is it a technical issue?
  Yes → Priority level?
    High → Senior Engineer
    Low → Support Queue
  No → General Inquiry → FAQ Bot

Style: Clean flowchart with color-coded departments.

Statistics Infographic ​

Create a statistics infographic highlighting our Q4 results:

HERO METRIC:
- "2.5M" Active Users (+150% YoY)

SUPPORTING METRICS:
- "99.9%" Uptime
- "45ms" Response Time
- "180" Countries

Style: Modern SaaS dashboard, dark background,
cyan accent for hero metric.

Pro Model Settings ​

For best results with diagrams and infographics:

javascript
{
  model_id: "gemini-pro-image",
  resolution_tier: "2k",           // 4k for print materials
  thinking_level: "high",          // Better layout reasoning
  enable_grounding: true           // For real-time data
}

Tips for Better Results ​

  1. Start Simple: Begin with basic structure, then iterate
  2. Use Edit Mode: If 80% correct, use continue_editing to refine
  3. Reference Images: Provide style examples for consistent branding
  4. Specify Dimensions: "Create a 16:9 diagram suitable for presentation slides"
  5. Include Legends: "Add a color legend in the bottom-right corner"

Released under the MIT License.