Thank you for reading and feel free to let us know if ChatGPT does work with the diagram I tried at the time you’re reading this blog post.GitHub recently announced support for diagrams embedded directly in markdown files. But I’m sure with the help of chatbots like ChatGPT, our developer life would be much easier. However, its training data is not up-to-date with a lot of tools out there - Mermaid.js is an example, hence the effort to have good prompts and work around. ChatGPT even can suggest to me the typical tasks for a given 2 months timeline and generate the Gantt Chart. I’m happy that ChatGPT does help me to generate a Sequence Diagram and Class Diagram. User JourneyĬhatGPT doesn’t update that Mermaid.js already supported User Journey hence it cannot generate it. Please suggest typical tasks to be done and generate the Gantt chart with 2 months of timeline ganttĬhatGPT doesn’t update that Mermaid.js already supported Gitgraph hence it cannot generate it. Gantt chart: to show the timeline with tasks So for a few syntaxes, it’s not working for the latest version v9.3.0 8. Generate Entity Relationship Diagram erDiagram Start -> createProjectĬreateProject -> assignTask ProjectController -> projectRepository(Project Repository) UserInterface -> projectController(Project Controller) Generate the component diagram for the current business use case using Mermaid !!!ChatGPT cannot generate a correct version for Mermaid.js for this case, I assume Mermaid does not support activities diagram.!!! Component diagrams: to show the physical components of the system and how they relate to each other. Activity diagrams: to show the flow of activities within the system, such as moving a task from one state to another (e.g., from “in progress” to “completed”). Task->Progress: setPercentage(percentage: Number)Ĥ. The correct result from ChatGPT (I only post correct one moving on) sequenceDiagram Sequence diagrams: describe the interactions between the client and the system when performing specific tasks, such as creating a new project. Looks like there’s mostly a wrong result on the first try, copy the error from Mermaid and tell ChatGPT to generate againģ. Class diagrams: to model the classes of objects in the system, such as projects, tasks, and team members. The corrected result from ChatGPT graph LR Remember the sample business use case you just suggested, and also mermaid.js as the library to generate text, is that ok?Ĭlassify default fill:#f9f,stroke:#333,stroke-width:4px Ĭlass User,Project, Task,Progress default Ī syntax error with the above code, pls regenerate The first try gave me the wrong result: I cannot correctly convert the code to a diagram image. Use case diagrams: to capture the high-level interactions between the client and the project management tool.įor this use case diagram, I asked ChatGPT to generate code. The tool will allow clients to create projects, assign tasks to team members, and track the progress of the project.įor this use case, the diagrams that could be useful include the following: 1. It is also commonly used in combination with markdown and documentation generators, like Jekyll and GitBook, to create attractive and informative documentation for software projects.Īn example of a simple business use case:Ī small software development company wants to build a new project management tool for its clients. Mermaid is often used in the documentation, presentations, and other types of technical communication to help explain complex systems and processes in an easy-to-understand manner. The diagrams generated by Mermaid can be exported to various formats, including PNG, SVG, and PDF. Mermaid supports several types of diagrams, including flowcharts, sequence diagrams, class diagrams, and Gantt charts. It uses a simple syntax to describe the elements in a diagram, making it easy for developers to create and maintain diagrams without having to use a graphical interface. Mermaid is a simple and easy-to-use library that allows developers to generate diagrams and flowcharts from text or code. The key is to choose the diagrams that best communicate the design and help the team understand the system being built.įor all of the diagrams, I will ask ChatGPT to use Mermaid.js syntax to generate. It’s important to note that not all of these diagrams will be necessary or useful in every project. However, there are some common diagrams that are often used in software development, including: The number and types of diagrams will depend on the specific project, the team, and the organization. Let’s see how ChatGPT can speed me up in doing so.Īs a senior developer or technical lead, there is no set number of diagrams that are required. Hello folks! I’m looking for a way to make use of ChatGPT for solving business use cases and helping me draw diagrams as well.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |