打造 ChatGPT 對話自動整理與技術筆記發布流程

將 ChatGPT troubleshooting 對話自動整理成技術文章,並在遮罩機敏資料後自動提交到 GitHub Pages repo。

背景 原始內容描述了一套適合技術筆記型 blog 的自動化流程,目標是把 ChatGPT 上的問題處理過程,在解決後整理成可發布的文章,並自動送進 GitHub repo,形成長期可累積的 troubleshooting archive 或 DevOps knowledge base。文件中以 GitHub Pages repo、n8n、GitHub Actions、OpenAI、Markdown 與 PDF 匯出等方式,逐步構成完整方案。 問題 手動整理 ChatGPT 對話、移除雜訊、遮罩 token/password/IP/email/domain 等敏感資訊,再轉成可發佈的 Markdown 或 blog 文章,流程繁瑣且不易長期維護;若想穩定累積技術知識庫,需要一套可自動化、可重複執行、可直接整合到 repo 的處理流程。 調查過程 先定義整體流程:ChatGPT conversation 匯出後,進入自動化管線,依序進行內容整理、敏感資料遮罩、文章生成、Markdown 輸出與 GitHub commit。 比較兩種實作方向:一種是 n8n workflow,透過 Webhook、遮罩節點、OpenAI 節點與 GitHub API 完成;另一種是 repo 內建 scripts 搭配 GitHub Actions,自動監聽 conversations 目錄中的檔案變化。 整理文章結構需求,固定輸出 title、background、problem、investigation、solution、lessons learned,並要求移除無關對話噪音、保留技術細節與必要 code block。 設計敏感資料遮罩規則,使用 regex 處理 Bearer ********、GitHub token、password、私有 IP、AWS key、email 與私有網域,避免機敏資訊進入文章或 commit 歷史。 規劃 repo 結構,例如 conversations、posts、scripts、prompt、. [閱讀全文]