iT邦幫忙

2025 iThome 鐵人賽

DAY 7
0
生成式 AI

30 天效率革命:用 n8n + AI 打造專屬助手系列 第 7

Day7: Notion Node 快速上手:Notion Page 建立與內容同步

  • 分享至 

  • xImage
  •  

在 n8n 串接 Notion:建立 Integration、授權、憑證與寫入頁面

本文示範如何把 LLM 產生的 Markdown/Blocks(如 Gemini 筆記)寫入 Notion。流程包含 Notion Integration 建立、授權頁面/資料庫、在 n8n 建立 Notion 憑證,最後用 Notion Node 建立新頁面並附上內容 Blocks。


目標

  • 建立一個 Notion Integration 並取得 Token
  • 將目標 Page/Database 分享給該整合(授權)
  • 回到 n8n 建立 Notion 憑證(貼上 Token)
  • Notion Node 新增一個頁面(標題:論文名稱)並附上 Blocks(Gemini 筆記)

步驟 1|建立 Notion Integration

  1. 前往 Notion Integrations:https://www.notion.so/profile/integrations
  2. 建立一個新的 Integration,記下 Internal Integration Token(稍後貼到 n8n)。

notion 機器人創建

建議權限包含:Read content / Update content / Insert content(若要建立頁面)。


步驟 2|授權整合可存取你的頁面/資料庫

回到 Notion,打開你要寫入的 Database(或 Page):

  • 中間 Access→ 搜尋剛剛建立的筆記頁面,開啟存取權限。

notion 機器人權限


步驟 3|在 n8n 建立 Notion 憑證(Credentials)

  1. n8n 左側 CredentialsNew → 搜尋 Notion
  2. 貼上 Internal Integration Token,儲存並測試連線。

建立憑證

輸入 token


步驟 4|設定 Notion Node:新增頁面+寫入 Blocks

  1. 新增 Notion 節點
    • ResourcePage
    • OperationCreate
    • Parent page:貼上你頁面的url
  2. Title
    • Title → 填入論文名稱,使用前面節點輸出的欄位(例如 {{ $('XML').item.json.feed.entry.title }}
  3. Blocks(頁面內容)
    • 切換為 Paragraph ,指向Gemini節點輸出的筆記內容
    • 例:{{ $json.content.parts[0].text }}

節點設定:貼 Notion 網址、標題與 Blocks


成果

執行 Workflow 後,你會在指定資料庫看到一筆新頁面,標題為論文名稱,內文為Gemini總結的筆記了。

完成效果

接下來會介紹如何把markdown格式轉換成notion的block整理好。


上一篇
Day 6 : 每天收到最新 AI 論文摘要(03):用 Python Node + Gemini 自動生成全文筆記
下一篇
Day 8|Markdown → Notion:打造論文筆記自動化流程
系列文
30 天效率革命:用 n8n + AI 打造專屬助手9
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言