# ChatGPT x HackMD API # A Lightning Talk Yukai @ MOPCON 2023 --- 投影片網址會更新到共筆 https://hackmd.io/@yukai/mopcon-2023-lightening --- * 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 --- ## OpenAI DevDay - Nov 6 --- 理由一: ### 這幾天一直被 @聽風 洗版 ###   ### 好啦我也來玩玩 --- 理由二: ### Coscup 閃電講沒抽到的 me --- 先回顧一下 COSCUP 時做的東西 --- ## Coscup session search github repo: [Yukaii/coscup-session-openai](https://github.com/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 --- ### HackMD Doc Assistant --- ## How 1. Dump the documentations (Export from https://hackmd.io/@docs team, 動動手指頭) 2. File uploads have 20 files limitation - Naive solution: Concat all the content into one markdown - Of course: ChatGPT write it for me --- ![](https://hackmd.io/_uploads/H1Kcoh6m6.png) --- ## Actions Schema Generation (OpenAPI Schema) * 發現我在做的時候完全沒在管 spec 是啥 🤣 * 複製 & 貼上 --- ## How? 1. Copy & paste the sample action schema 2. Copy & paste part of the HackMD API documentation 3. Ask ChatGPT to generate the schema --- ![スクリーンショット 2023-11-12 午前10.51.02](https://hackmd.io/_uploads/SJOn6np7p.png) --- ![スクリーンショット 2023-11-12 午前10.51.12](https://hackmd.io/_uploads/r10nTnTX6.png) --- ![スクリーンショット 2023-11-12 午前10.51.47](https://hackmd.io/_uploads/HkMCa3pX6.png) done! --- ![スクリーンショット 2023-11-12 午前10.52.51](https://hackmd.io/_uploads/r1EMC3Tm6.png) 貼上! --- ## 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 --- ## ~~Delayed Static~~ Demo --- ![スクリーンショット 2023-11-12 午前10.54.06](https://hackmd.io/_uploads/Hkc80ha7a.png) --- ![スクリーンショット 2023-11-12 午前10.57.20](https://hackmd.io/_uploads/r147JTpm6.png) --- ![スクリーンショット 2023-11-12 午前10.57.23](https://hackmd.io/_uploads/rkJN16Tmp.png) --- ![スクリーンショット 2023-11-12 午前10.57.03](https://hackmd.io/_uploads/By_4ya6XT.png) --- ![スクリーンショット 2023-11-12 午前10.57.07](https://hackmd.io/_uploads/HyzS16a76.png) --- ## 工商時間 * HackMD Prime Plan! * HackMD API (see [HackMD Developer Portal](https://hackmd.io/@hackmd-api/developer-portal/https://hackmd.io/@hackmd-api/rkoVeBXkq))
{"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}]"}
    771 views