生成思维导图从ChatGPT讨论通过ChatGPT API。

huangapple go评论108阅读模式
英文:

how to generate mindmap from Chatgpt discussion through ChatGPT Api

问题

我有一个想法,可以创建一个应用程序,通过ChatGPT API绘制ChatGPT讨论的思维导图。然而,如何编写提示来控制ChatGPT以固定格式写出思维导图,以便可以解析?

英文:

i have an idea to create an app which can draw mindmap of chatgpt discussion through chatgpt api. However, how to write a prompt to control chatgpt to write out a mindmap with a fixed format so that it can be parsed?

答案1

得分: 1

I understand your request. Here's the translated content:

这可以使用MermaidJS标记完成。提供ChatGPT的所需语法示例,然后要求您的思维导图。

示例提示:

这是MermaidJS标记中的思维导图示例:
mindmap
root((思维导图))
起源
悠久的历史
::icon(fa fa-book)
普及
英国流行心理学作者Tony Buzan
研究
对效果和特点的研究<br/>
对自动创建的研究
应用
创意技巧
战略规划
论证图谱
工具
纸和笔
Mermaid

请为一个想要统治世界的AGI创建一个MermaidJS标记的思维导图。

英文:

This can be done using MermaidJS markup. Provide ChatGPT for an example of the desired syntax, then ask for your mind map.

Sample prompt:

This is a mindmap example in MermaidJS notation:
mindmap
  root((mindmap))
    Origins
      Long history
      ::icon(fa fa-book)
      Popularisation
        British popular psychology author Tony Buzan
    Research
      On effectivness&lt;br/&gt;and features
      On Automatic creation
        Uses
            Creative techniques
            Strategic planning
            Argument mapping
    Tools
      Pen and paper
      Mermaid
Please create a mindmap in MermaidJS notation for an AGI that wants to dominate the world

Screenshot of the conversation

You can paste the results into https://mermaid-js.github.io/mermaid-live-editor/ to render the mindmap, or programmatically, write your own HTML page based on the mermaidJS library to render the ChatGPT result.

Here is an example of the resulting mind map

huangapple
  • 本文由 发表于 2023年6月8日 22:39:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/76432988.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定