Skip to content

How I Stopped Wrestling with Diagram Tools and Started Using ChatGPT + PlantUML

If you’ve ever built diagrams for SAP Commerce projects, you probably know the feeling.

You start out with good intentions — trying to explain how everything fits together.
Then you open your favorite diagramming tool… and lose the next hour lining up boxes, fixing arrows, and adjusting text so it doesn’t spill off the page.

That was me too.

All I wanted was a clean, simple diagram that told the story. But I’d spend more time fixing the layout than thinking through the architecture.

At one point I thought:

“Why can’t I just explain what I want in plain English / Mandarin Chinese / Hindi / Spanish / Arabic / French / Bengali / Portuguese / Russian / Indonesian / Urdu / Standard German / Japanese / Nigerian Pidgin / Egyptian Arabic / Marathi / Vietnamese / Telugu / Hausa / Turkish / Western Punjabi / Swahili / Tagalog / Tamil / Yue Chinese / Cantonese / Wu Chinese – Shanghainese / Iranian Persian / Korean / Thai / Javanese / Italian / Gujarati / Levantine Arabic / Amharic / Kannada / Bhojpuri / Sudanese Arabic / Polish / Pashto / Malayalam/Sign Language/Any Language and have the tool build it?”

It turns out that with the right tools, you actually can.

Enter ChatGPT + PlantUML

I realized that ChatGPT and PlantUML are a surprisingly great combonations.

  • PlantUML is text-based. You write out your diagram in code, and it generates a clean, structured visual.
  • ChatGPT understands how to write that code really well. Especially when you give it a clear description.

So, instead of dragging shapes around, I just describe what I want — and ChatGPT builds a rough diagram in seconds.

No stress. There is no weird formatting. And way less time spent fixing arrows.

Real Example: SAP Commerce + HANA

Let me give you a quick example.

I needed to explain a pretty typical flow:

A customer browses a product on our SAP Commerce storefront. Behind the scenes, we check real-time inventory and pricing from SAP HANA, going through SAP CPI.

Here’s what ChatGPT gave me (in PlantUML):

@startuml
!define SAP_BLUE #00A1E4
!define SAP_LIGHT_BLUE #E3F4FC

skinparam sequence {
  ArrowColor SAP_BLUE
  ParticipantBorderColor SAP_BLUE
  ParticipantBackgroundColor SAP_LIGHT_BLUE
  LifeLineBorderColor SAP_BLUE
  LifeLineBackgroundColor SAP_LIGHT_BLUE
  FontSize 14
}

actor Customer
participant "Online Storefront" as Storefront
participant "SAP Integration Suite" as Integration
participant "SAP HANA\n(Inventory & Pricing)" as HANA
participant "External Pricing Engine" as PricingEngine

== Customer Browses Product ==
Customer -> Storefront : Browse / View Product

== Real-Time Product Data ==
Storefront -> Integration : Request inventory & price
Integration -> HANA : Get real-time data
HANA --> Integration : Return inventory & price

== Personalized Experience ==
Integration -> PricingEngine : (Optional) Fetch B2B pricing
PricingEngine --> Integration : Custom price

Integration --> Storefront : Combined response
Storefront --> Customer : Show availability & price
@enduml

 

I copied and pasted the above into diagrams.hybrisarchitect.com, which generated the following diagram:

 

Want to Try It?

You don’t even need to install anything.

I’ve set up a free online PlantUML editor at:
👉 diagrams.hybrisarchitect.com

Simply paste the PlantUML code above, and your diagram will be generated automatically.

Here’s what I recommend as a starting point for generating your own diagrams for upcoming projects:

  • Think of what you’re trying to show.
  • Describe the flow in a sentence or two.
  • Ask ChatGPT to turn it into a PlantUML diagram.
  • Paste the result into diagrams.hybrisarchitect.com and see it come to life.
  • Adjust, download, reuse — whatever works for you.

Let’s keep learning and diagramming. If you have any questions or feedback, please email me at the address below.

THE HYBRIS ARCHITECT NEWSLETTER

Keep your commerce thinking sharp.

Occasional SAP Commerce insights on performance, architecture, search, and storefront reliability. Practical ideas to read when it suits you.

Confirm by email to join. Unsubscribe at any time. Privacy Policy

Marc Raygoza

Marc is the Founder of HybrisArchitect.com.
He enjoys helping others learn more about SAP Commerce Cloud (Hybris). Marc is a SAP Commerce Certified Professional and has held the role of SAP Commerce Cloud Architect at Deloitte, PwC, Brillio (a Bain Company), and Nasty Gal. Marc holds an M.S. Software Engineering from Carnegie Mellon University and a B.S. in Accountancy from California State University, Fresno. He can be reached at: mraygoza@hybrisarchitect.com

You may also like...

Popular Posts

Hybris Architect
Cookie preferences

Choose whether HybrisArchitect.com may load optional Analytics and Chat. Necessary cookies support site functions and remember your choice. Both optional services remain blocked until you accept.

Enable Analytics and Chat separately, or reject both and keep browsing. Change or withdraw your choice through Cookie settings. Your preference is remembered for 180 days. Withdrawal stops future loading of the disabled service after reload; it does not delete previously collected information.

Read our Privacy Policy.