Maybe obvious to some, but new and super useful to me — using an LLM to turn a messy braindump into a clear sequence diagram.
I gave it a raw description like:
Generate mermaidjs sequence diagram.
There is:
* customer
* ecommerce-frontend
* fraud-detection-service
The customer accesses the website via the ecommerce-frontend, which calls the fraud-detection-service to evaluate if the customer should be flagged for further verification. If verification is required — the VerificationPage is displayed. On this page, the customer must complete a challenge-response CAPTCHA. Once completed, the CAPTCHA result is sent back to the fraud-detection-service for assessment. If the verification passes, the customer is redirected to the HOMEPAGE of the ecommerce-frontend. If not — an AccessDeniedPage is shown.
Please, generate a sequence diagram.
1️⃣ Then you get
MermaidJS code.2️⃣ You can paste/edit it here: https://www.mermaidchart.com/play
3️⃣ Now, instead of a braindump, you provide a clear diagram that’s much easier for your peers to understand.
4️⃣ You are awesome!
