Chatgpt help to build your flowchart and gantt chart in 3 minutes

CorpenPremier
4 min readJul 25, 2023

--

Mermaid is an easy-to-use flowchart-generating syntax that can be used to create a variety of diagrams, including Flowcharts, Sequence Diagrams, Gantt Charts, and many more.

To use Mermaid syntax for flowcharts, you can follow these basic steps:

  1. Start with a chatgpt with following prompt

“please interpret the following process or article and then provide a flowchart for mermaid syntax of flowchart .”

2. you can copy the chatgpt of Mermaid code result to define the flowchart structure, using the appropriate syntax for each element (such as nodes, edges, decision points, and so on). You can find the full Mermaid syntax documentation on the official website as below.

3.Save the file with a .png or .svg extension.

4.Use a Mermaid renderer to convert the Mermaid code into an actual diagram. There are several options available, such as the Mermaid Live Editor, Mermaid CLI, or various plugins for editors like VS Code.

Let’s start it together

Step 1: use chatgpt to change your process into mermaid code

Step 2: Open the mermaid live editor from following link.

https://mermaid.live/

To create a Mermaid flowchart, you can start with an empty text editor or markdown file alternatively. Then, write the Mermaid code that defines the flowchart structure using the relevant syntax for each element. The full Mermaid syntax documentation can be found on the official Mermaid website.

https://mermaid.js.org/intro/n00b-syntaxReference.html

mermaid live editor

the following is the mermaid syntax to generate the flowchart.

flowchart
A[Day 1: Determine Market Objectives] → B[Day 2: Identify Target Customer Groups]
B → C[Day 3: Write Report]
C → D[Day 4: Understand Market Environment]
D → E[Day 5: Choose Marketing Strategy]
E → F[Day 6: Write Report]
F → G[Day 7: Develop Execution Plan]
G → H[Day 8: Monitor and Adjust]
H → I[Day 9: Write Report]
I → J[Day 10: Execute Plan]
J → K[Day 11: Improve and Optimize]
K → L[Day 12: Monitor and Adjust]
L → M[Day 13: Write Report]
mermaid chart project

Gantt chart Build Example

To use Mermaid syntax for flowcharts, you can follow these basic steps:

  1. Start from a chatgpt with following prompt

“please change following table into mermaid format of gantt chart

Task Duration
Determine Market Objectives 1 day
Identify Target Customer Groups 1 day
Write Report 1 day
Understand Market Environment 1 day
Choose Marketing Strategy 1 day
Write Report 1 day
Develop Execution Plan 1 day
Monitor and Adjust 2 days
Write Report 1 day
Execute Plan 1 day
Improve and Optimize 1 day
Monitor and Adjust 1 day
Write Report 1 day”

Chatgpt result
chatgpt result

the following is the mermaid syntax to generate the gantt chart.

gantt
dateFormat YYYY-MM-DD
title Marketing Plan Timeline
section Market Research and Analysis
Determine Market Objectives :done, 2023–08–01, 1d
Identify Target Customer Groups :done, 2023–08–02, 1d
Understand Market Environment :done, 2023–08–03, 1d
section Marketing Strategy
Choose Marketing Strategy :done, 2023–08–04, 1d
section Execution and Optimization
Develop Execution Plan :done, 2023–08–05, 1d
Execute Plan :done, 2023–08–06, 1d
Improve and Optimize :done, 2023–08–07, 1d
section Monitoring and Reporting
Monitor and Adjust :done, 2023–08–08, 2d
Write Report :done, 2023–08–09, 1d
Monitor and Adjust :done, 2023–08–10, 1d
Write Report :done, 2023–08–11, 1d
Gantt chart Result

Vs Code Build Example

Step 1. open vs code and install markdown preview mermaid support extension

Step 2. click install

step 3: create mermaid.md markdown file

step 4: write the mermaid syntax format of chart

step 5: click “open to preview to side” button

or click Ctrl +k , v button

step 6: use the mermaid live editor to verify your idea and save as png or svg file

journey diagram

--

--

CorpenPremier

With a focus on practical, real-world applications, I show that how to use ChatGPT and Python to solve dailylife problems and gain new insights from data