Using ChatGPT to build system diagrams — Part II

6 min readJan 18

Interested in Mindmaps — read our blog post on using plantUML with ChatGPT to create awesome Mindmaps

Continuing from my previous post, I wanted to focus on C4 diagramming model. To keep ChatGPT from deviating from the intention, I started with a prompt below

Prompt: Going forward, I want you to act as a software architect and build C4 diagrams using mermaid.js. Keep the answers to markdown syntax and always keep in mind software functional and non-functional aspects including but not limited to scalability, availability, redundancy, containerization, security and disaster recovery.
ChatGPT: Sure, as a software architect, I can help you create C4 diagrams using Mermaid.js that take into account functional and non-functional aspects such as scalability, availability, redundancy, containerization, security, and disaster recovery.

C4 diagrams are a way to represent the architecture of a software system, and it is divided into four main levels:

  • Context level, which represents the external factors that interact with the system
  • Container level, which represents the deployment units and their dependencies
  • Component level, which represents the different components of the system
  • Code level, which represents the implementation details of the system

Okay, let’s get started

The Context Diagram

Prompt: Let’s start by creating a context diagram of the services in Wealth Management
ChatGPT: Sure, here’s an example of a context diagram in Mermaid format for a Wealth Management System:

context diagram

and in the markdown editor

context diagram

This diagram shows the main actors that interact with the Wealth Management System and the main services provided by the system.

  • The User interacts with the Account Management Service, Portfolio Management Service, Asset Management Service, and Transaction Management Service.
  • The Financial Institution also interacts with the Account Management

We build world-class accelerators for businesses to take their idea from conceptualization to reality