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-2withquality: "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-consumingWith 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 colorsFrom 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)
| Type | Syntax | Best For |
|---|---|---|
| Flow Diagram | graph TD/LR/BT/RL | Processes, decisions |
| Flowchart | flowchart TD | Same as graph |
| Sequence | sequenceDiagram | API flows, interactions |
| Class Diagram | classDiagram | Entity relationships |
| State Diagram | stateDiagram-v2 | State machines |
| ER Diagram | erDiagram | Database schemas |
| Gantt Chart | gantt | Project timelines |
| Pie Chart | pie | Data distribution |
| User Journey | journey | UX flows |
| Mind Map | mindmap | Idea organization |
| Timeline | timeline | Chronological events |
| Quadrant | quadrantChart | Priority matrices |
| Git Graph | gitgraph | Branch visualizations |
Auto-Selected Output Formats
The skill automatically chooses the best visual format:
| Format | Triggered By | Visual Style |
|---|---|---|
| Flowchart | Decision points, sequential steps | Boxes, diamonds, arrows |
| Process Map | Multi-lane workflows, swimlanes | Horizontal lanes |
| Infographic | Statistics, comparisons, data | Icons, charts, numbers |
| Timeline | Chronological events, phases | Horizontal/vertical milestones |
| Org Chart | Hierarchies, team structures | Tree layout |
| Mind Map | Ideas, brainstorming | Radial branches |
Style Templates
Choose a visual style for your diagrams:
| Style | Description | Best For |
|---|---|---|
| Corporate | Clean lines, brand colors | Business presentations |
| Minimal | Whitespace, monochrome | Technical documentation |
| Hand-drawn | Sketch aesthetic | Whiteboard brainstorming |
| Blueprint | Technical, engineering | Architecture diagrams |
| Retro | Vintage 1950s style | Creative presentations |
| Modern | Flat design, bold colors | Social media, marketing |
| Dark Mode | Dark background, light text | Screen-friendly |
| Neon | Glowing, high contrast | Gaming, entertainment |
| Gradient | Smooth color transitions | Premium, 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:
{
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
- Start Simple: Begin with basic structure, then iterate
- Use Edit Mode: If 80% correct, use
continue_editingto refine - Reference Images: Provide style examples for consistent branding
- Specify Dimensions: "Create a 16:9 diagram suitable for presentation slides"
- Include Legends: "Add a color legend in the bottom-right corner"
Related Resources
- Workflow Diagrams Master Guide - Complete reference
- Pro Model Best Practices - Advanced prompting techniques
- Style Presets - Save reusable visual styles