Integraciones
Dify
Añade Thunderbit como Tool personalizada en Dify importando el schema OpenAPI
Dify te permite registrar APIs externas como Custom Tools que cualquier Agent o workflow puede llamar. Solo apúntalo a la spec OpenAPI de Thunderbit.
Añadir la Tool
- Tools → Custom → Create custom tool
- Schema → pega la spec OpenAPI de Thunderbit (o solo el slice de
/distillde abajo) - Authentication → API Key en el Header:
- Key:
Authorization - Value:
Bearer YOUR_API_KEY
- Key:
Schema mínimo (solo /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: OKUsar en un Agent
En el Agent o Chatflow de Dify, mete la Tool distill en el toolset. Ejemplo de prompt:
"When the user asks about a URL, call
distilland answer based on the returned Markdown."
Usar en un Workflow
Para ingesta estilo RAG: nodo Knowledge ← distill.data.markdown ← input URL del nodo Start. Para batch, cambia a /batch/distill y añade un nodo Loop que haga polling de /batch/{jobId} hasta COMPLETED.