集成
Zapier
用 Webhooks by Zapier,从 Zapier 7000+ 应用里任选一个触发 Thunderbit
Zapier 官方的 Webhooks by Zapier action 全程能接 Thunderbit。两步 Zap:触发器一响,Webhook 就 POST 到 /distill。
配置
触发器 —— 随便挑(Google Sheets 新增行、Slack 新消息、定时……)。
Action 1:Webhooks by Zapier → POST
- URL:
https://openapi.thunderbit.com/openapi/v1/distill - Payload Type:
JSON - Data:
url—— 从触发器映射过来renderMode——basic(JS 重渲染的页面用advanced)
- Headers:
Authorization——Bearer YOUR_API_KEYContent-Type——application/json
Action 2(可选) —— 把 data.markdown 接到 Notion / Airtable / Slack / OpenAI。
异步批量任务
Zapier 的 Webhook action 最多等 30 秒 —— /distill 够用,但 /batch/distill 就紧张。两个方案:
方案 A —— Catch Hook 回调
- 在另一个 Zap 里加 Webhooks by Zapier → Catch Hook 触发器,复制 URL
- 提交批量任务的 Zap 里,把
callback.url指向那个 hook - 批量任务跑完时,catch-hook Zap 触发;用 Looping action 遍历
results
方案 B —— 定时 + 轮询
不能跑两个 Zap 的话,用 Schedule by Zapier 触发器每 5 分钟跑一次,调 GET /batch/{jobId} 直到 status: COMPLETED。
小贴士
- API Key 存到 Zapier Storage 里,免得在多个 Zap 里重复粘贴
- 在响应上加 Filter by Zapier,把空结果过滤掉,再走下游步骤