連携

Dify

OpenAPI スキーマをインポートして Thunderbit を Dify のカスタム Tool として追加

Dify では、外部 API を Custom Tool として登録すれば、任意の Agent やワークフローから呼び出せます。Thunderbit の OpenAPI 仕様を指定するだけ。

Tool を追加

  1. Tools → Custom → Create custom tool
  2. SchemaThunderbit OpenAPI 仕様 を貼り付け(または下の /distill だけのスライス)
  3. Authentication → API Key in header:
    • Key: Authorization
    • Value: Bearer YOUR_API_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: OK

Agent で使う

Dify の Agent または Chatflow で、ツールセットに distill Tool をドロップ。プロンプト例:

「ユーザーが URL について尋ねたら、distill を呼び出し、返ってきた Markdown に基づいて答えて。」

ワークフローで使う

RAG スタイルの取り込みなら:Knowledge ノード ← distill.data.markdown ← Start ノードの URL 入力。バッチには /batch/distill に差し替え、/batch/{jobId}COMPLETED までポーリングする Loop ノードを追加。

関連