集成

Make.com

用 HTTP 和 Webhook 模块搭一个 Thunderbit scenario —— 零代码

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. 在另一个 scenario 里加 HTTP → Make a request
{
  "urls": [{{1.urls}}],
  "callback": {
    "url":    "{{webhook_url_from_step_1}}",
    "secret": "whsec_..."
  }
}
  1. 批量任务跑完时,Webhook scenario 触发。用 Iterator 遍历 data.results 的每一行。

校验回调签名

加一个 Tools → Set variable

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

Router 把签名错误的请求丢掉。

相关链接