ChatGPT x HackMD API
A Lightning Talk
Yukai @ MOPCON 2023
- Yukaii on GitHub (Yukai is taken 😭)
- Developer @ HackMD
Introduction
- Welcome to "ChatGPT feat HackMD API"
- Quick overview of today's key points:
- Customized ChatGPT with file uploads
- Actions schema generation
- Natural language interaction with HackMD API
理由一:
這幾天一直被 @聽風 洗版
好啦我也來玩玩
Coscup session search
github repo: Yukaii/coscup-session-openai
- pg vector + OpenAI Embedding API
- 參考 supabase 的教學
- 極簡 Retrieval augmented generation(RAG)
Assistant: Near-Zero-Coding Customized ChatGPT
- Customized ChatGPT: Tailored GPT models for specific use-cases
- File Uploads: Enhance functionality with the ability to process uploaded files
- Impact:
- Streamlines workflows
- Enhances user engagement
How
- Dump the documentations (Export from https://hackmd.io/@docs team, 動動手指頭)
- File uploads have 20 files limitation
- Naive solution: Concat all the content into one markdown
- Of course: ChatGPT write it for me
Actions Schema Generation (OpenAPI Schema)
- 發現我在做的時候完全沒在管 spec 是啥 🤣
- 複製 & 貼上
How?
- Copy & paste the sample action schema
- Copy & paste part of the HackMD API documentation
- Ask ChatGPT to generate the schema

done!

貼上!
Interacting with HackMD API
- Seamless Integration: ChatGPT meets HackMD API
- Natural Language Processing: Intuitive and efficient user interactions
- Capabilities:
- Creating and managing notes
- Collaborative editing
- Sharing and publishing content
- …
HackMD API Functions
- Examples:
- Create a new note
- Update existing notes
- Retrieve and share notes
ChatGPT x HackMD API A Lightning Talk Yukai @ MOPCON 2023
{"title":"ChatGPT feat HackMD API: A Lightning Talk","description":"Welcome to “ChatGPT feat HackMD API”","slideOptions":"{\"theme\":\"white\",\"scrollProgress\":true}","contributors":"[{\"id\":\"6d3b4625-23c8-4275-a28e-cdc2cb546eda\",\"add\":3710,\"del\":707}]"}