Natural language drawing Mermaid flow chart, based on OpenAI
This project is based on the API interface of OpenAI, using natural language to draw the Mermaid flow chart, which allows downloading the generated flow chart, or manually modifying the flow chart, etc.
Online demo environment: https://chat.tntsec.net
Note: You need to use your own Key
Here is an example:
2023-03-24.12.24.14.mov
- Support editing of Mermaid text
- Support Mermaid text duplication
- Support exporting Mermaid images to PNG and other formats
- Support exporting Mermaid images to SVG format
- Can support dialogue mode, you can talk to the robot, and the robot will draw an optimized output Mermaid flow chart according to the dialogue content
- better page style
- Clone the project code.
- Use
yarn install
to install the dependencies required by the project. - Use
yarn dev
to view the running results.
Currently all logic codes are in /src/App.vue
.
Since I am not a professional developer, the project is currently just a simple demo, and I hope to get help to improve the project better.