連携
Dify
OpenAPI スキーマをインポートして Thunderbit を Dify のカスタム Tool として追加
Dify では、外部 API を Custom Tool として登録すれば、任意の Agent やワークフローから呼び出せます。Thunderbit の OpenAPI 仕様を指定するだけ。
Tool を追加
- Tools → Custom → Create custom tool
- Schema → Thunderbit OpenAPI 仕様 を貼り付け(または下の
/distillだけのスライス) - Authentication → API Key in header:
- Key:
Authorization - Value:
Bearer YOUR_API_KEY
- Key:
最小スキーマ(/distill のみ)
openapi: 3.0.0
info: { title: Thunderbit, version: "1" }
servers:
- url: https://openapi.thunderbit.com/openapi/v1
paths:
/distill:
post:
operationId: distill
summary: Fetch a URL and return clean Markdown
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [url]
properties:
url: { type: string, format: uri }
renderMode: { type: string, enum: [basic, advanced], default: basic }
responses:
"200":
description: OKAgent で使う
Dify の Agent または Chatflow で、ツールセットに distill Tool をドロップ。プロンプト例:
「ユーザーが URL について尋ねたら、
distillを呼び出し、返ってきた Markdown に基づいて答えて。」
ワークフローで使う
RAG スタイルの取り込みなら:Knowledge ノード ← distill.data.markdown ← Start ノードの URL 入力。バッチには /batch/distill に差し替え、/batch/{jobId} を COMPLETED までポーリングする Loop ノードを追加。