Integraties

Dify

Voeg Thunderbit toe als custom Tool in Dify door het OpenAPI-schema te importeren

Dify laat je externe API's registreren als Custom Tools die elke Agent of workflow kan aanroepen. Wijs het simpelweg op Thunderbits OpenAPI-spec.

Voeg de Tool toe

  1. Tools → Custom → Create custom tool
  2. Schema → plak de Thunderbit OpenAPI spec (of alleen de /distill-slice hieronder)
  3. Authentication → API Key in header:
    • Key: Authorization
    • Value: Bearer YOUR_API_KEY

Minimaal schema (alleen /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

Gebruik in een Agent

In Dify's Agent of Chatflow: drop de distill-Tool in de toolset. Voorbeeldprompt:

"When the user asks about a URL, call distill and answer based on the returned Markdown."

Gebruik in een Workflow

Voor RAG-stijl ingestion: Knowledge-node ← distill.data.markdown ← Start-node URL-input. Voor batch: vervang door /batch/distill en voeg een Loop-node toe die /batch/{jobId} polt totdat COMPLETED.

Gerelateerd