整合

Make.com

用 HTTP 與 Webhook 模組搭一條 Thunderbit 場景 —— 完全免寫程式

Make.com(前身 Integromat)給你一塊視覺化畫布。兩個模組就夠用:HTTP → Make a request 送任務,Webhooks → Custom webhook 接批次回呼。

單一 URL —— /distill

加一個 HTTP → Make a request 模組:

  • URL:https://openapi.thunderbit.com/openapi/v1/distill
  • Method:POST
  • Headers:
    • Authorization: Bearer YOUR_API_KEY
    • Content-Type: application/json
  • Body type:Raw · Content type:JSON (application/json)
  • Request content:
{ "url": "{{1.url}}", "renderMode": "basic" }
  • Parse response:Yes

下一個模組看到的是 {{2.data.markdown}} —— 接到 Google Sheets、Notion、Slack、OpenAI 都可以。

批次 —— /batch/distill + Custom webhook

  1. 加一個 Webhooks → Custom webhook 模組,把它的 URL 抄下來。
  2. 在另一個場景加 HTTP → Make a request
{
  "urls": [{{1.urls}}],
  "callback": {
    "url":    "{{webhook_url_from_step_1}}",
    "secret": "whsec_..."
  }
}
  1. 批次完成時 webhook 場景就觸發。在 data.results 上掛一個 Iterator 走訪每一筆。

驗證回呼簽名

加一個 Tools → Set variable

hmac(sha256, secret, raw_body) === headers.X-Thunderbit-Signature

Router 把簽名不對的丟掉。

相關文件