手冊 · n8n
n8n:定時只建 Resend Broadcast 草稿
Schedule → Sheets → Resend Create。唔好自動寄。
2026-10-16
只建草稿
呢頁係定時建草稿嘅薄大綱:Schedule Trigger、Google Sheets、Resend Broadcast Create。唔好加 Send 步驟。
定時由試算表 一列讀入,經官方 Resend 節點 Broadcast → Create 只建 草稿(send false 或者唔開)。唔好自動寄。呢條流程唔可以有 Broadcast → Send,亦唔可以設 send: true。
唔使 n8n、淨係要 API 建草稿,睇 Resend Broadcast 草稿。Send 都係你自己撳。
適合/唔適合
| 適合 | 唔適合 |
|---|---|
| 已有 verified domain、Segment,同埋 Resend 手冊入面嘅人控 Send 習慣 | 想 n8n 排程自動 Send —— 唔做。STOP |
| 用 Google Sheet 當 newsletter content queue,workflow 可以讀 | 唔使 n8n、淨 API → Resend Broadcast 草稿 |
| Agent 起草呢份大綱;你管 n8n credential、Sheet、同 Resend Send | 自製或者冇文件嘅節點 —— 跟下面列明嘅節點 |
Stack(只列文件有嘅)
API 事實同 human-gate 篇一樣:Create Broadcast 預設 send 係 false(草稿)。send: true(可加 scheduled_at)會直接寄或者排程,唔使另一次 send call(create-broadcast、send-with-api)。呢條 recipe 兩者都禁止。
Content queue 橋:markdown queue 唔係 n8n 節點。你(或者你自己嘅 sync)將 issue 列 mirror 入 Google Sheet。建議欄:status、segment_id、from、subject、html(或 html_en / html_zh),可選 topic_id、name、reply_to。
| 步驟 | 節點(官方) | 點解 |
|---|---|---|
| 1 | Schedule Trigger(docs) | 每週/cron。要 save 同 publish,schedule 先會跑。 |
| 2 | Google Sheets → Get Row(s)(Sheets、sheet ops) | 讀試算表一列。Filter 例子:status = ready_draft。 |
| 3 | Resend → Broadcast → Create(n8n Resend、KB、README) | 用 subject、HTML、segment 建 campaign。只係草稿。 |
| 4(可選) | Google Sheets → Update Row | 寫返 broadcast_id,設 status=draft_created。 |
| 本 recipe 禁止 | Resend Broadcast → Send(n8n Resend 有列出) | 人控 Send —— Dashboard,或者呢條 workflow 以外你自己決定寄。 |
Bot vs 你
| Bot | 你 |
|---|---|
| 打呢份 outline | 管 n8n instance;裝官方 Resend 節點;Resend API 或 OAuth2 credential 只放 n8n —— 唔好貼 key 入 chat 或 git(KB) |
| 建議 Sheet 欄位同 expression | 開 Sheet;只填有同意嘅 Segment ID;timezone 用 HKT(Asia/Hong_Kong) |
| 提醒唔好加 Send | 核對 Create 只係草稿之後,先 publish Schedule workflow |
| 唔會喺呢條 flow 加 Broadcast → Send | 喺 Resend Dashboard 開草稿、test、自己 Send |
步驟(精簡)
- 前置。 Verified sending domain、n8n 入面嘅 Resend API key、至少一個有 opt-in Contacts 嘅 Segment(Resend 雙語電子報、Segments + Contacts)。同意同紀錄睇 香港 PDPO 電子報同意 —— 嗰頁唔係法律意見。
- 一頁試算表,一列一篇。 一個 tab、有 header。只有
status=ready_draft先合格。放真實segment_id、from、subject、HTML。按 create-broadcast 留{{{RESEND_UNSUBSCRIBE_URL}}}。 - Schedule Trigger。 例子:每 1 星期,揀你覆核窗口嘅 weekday 同鐘點。Workflow 或 instance timezone 要對到 HKT(Schedule Trigger)。Save 同 publish,否則 schedule 唔會跑。
- Google Sheets → Get Row(s)。 Document + sheet。Filter:欄
status,值ready_draft。Options 入面 When Filter Has Multiple Matches 只喺你想一次跑晒所有 ready 列先開 Return All Matches(sheet ops)。 - Resend → Broadcast → Create(只草稿)。 將 Sheet 欄 map 去 Create:segment、from、subject、html / text,可選 name / reply-to / topic。呢個 node 唔好開 send 或 schedule-send。喺 UI 確認你唔係叫 Send。官方節點亦有 Update、Send、Cancel、Duplicate(n8n Resend、README)—— 呢條 recipe 只用 Create。
- 可選:Update Row。 將 Create 回傳嘅
broadcast_id寫返,設status=draft_created,下次 schedule 唔會重建同一列。 - STOP — 人控 Send。 喺 Resend Dashboard 開草稿,或者你明確 OK 之後喺呢條 workflow 以外 用 API send。呢條 recipe 唔可以有 Broadcast → Send。Create 開
send: true同樣禁止。
失敗模式
- 誤加 Send node —— 真係會 blast 成個 list。刪 Send,當 incident。
- Create 開咗
send: true—— 同樣風險(create-broadcast)。 - Schedule timezone 錯 —— 草稿出現喺錯嘅鐘點。改 workflow 或 instance timezone(Schedule Trigger)。
- Filter 讀錯列 —— 核對
status。Return All Matches 只喺你有意一次處理多列先開。 - Key 入 Sheet 或 chat —— API key 唔好入 cell。Credential 只放 n8n。
- Domain 未 verify 或 Segment 錯 —— 第一次 Dashboard Send 之前你核對。
- 文件缺口: n8n Resend Create 欄位名會跟 node 版本變。對住你裝咗嘅
n8n-nodes-resendUI 核對。唔好發明欄位。Audiences 已棄用,用 Segments(README)。Make.com 對照同 Code node 組雙語 HTML 留待之後。
你必須核對
- Schedule 已 publish。Timezone 係
Asia/Hong_Kong(或者你揀嘅 zone)。 - Sheet 欄對到 Create mapping。只有
ready_draft會跑。 - Resend credential scope 正確。Sheet 冇 key。
- Create node 冇 Send,亦冇
send: true。 - Workflow 圖入面冇 Broadcast → Send node。
- Segment 同意係真嘅,HTML 有 unsubscribe token。
- 任何 live Send(喺呢條 recipe 以外)都要你 OK。
電子報
呢條流程只建草稿。唔好自動寄。
引用文件
- n8n Schedule Trigger · 2026-10-16
- n8n Google Sheets node · 2026-10-16
- n8n Google Sheets — sheet operations · 2026-10-16
- Resend on n8n · 2026-10-16
- Resend n8n knowledge base · 2026-10-16
- n8n-nodes-resend README · 2026-10-16
- Create Broadcast API · 2026-10-16
- Compose and send Broadcasts with the API · 2026-10-16