Integrationen
Dify
Füge Thunderbit als Custom Tool in Dify hinzu, indem du das OpenAPI-Schema importierst
Dify erlaubt es dir, externe APIs als Custom Tools zu registrieren, die jeder Agent oder Workflow aufrufen kann. Zeig einfach auf Thunderbits OpenAPI-Spec.
Tool hinzufügen
- Tools → Custom → Create custom tool
- Schema → füge die Thunderbit-OpenAPI-Spec ein (oder nur den
/distill-Ausschnitt unten) - Authentication → API Key im Header:
- Key:
Authorization - Value:
Bearer YOUR_API_KEY
- Key:
Minimal-Schema (nur /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: OKIn einem Agent nutzen
In Difys Agent oder Chatflow ziehst du das distill-Tool ins Toolset. Prompt-Beispiel:
„Wenn der User nach einer URL fragt, rufe
distillauf und antworte basierend auf dem zurückgegebenen Markdown."
In einem Workflow nutzen
Für RAG-artige Ingestion: Knowledge-Node ← distill.data.markdown ← Start-Node-URL-Input. Für Batch tausche auf /batch/distill und füge einen Loop-Node hinzu, der /batch/{jobId} pollt, bis COMPLETED.