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

  1. Tools → Custom → Create custom tool
  2. Schema → pega la spec OpenAPI de Thunderbit (o solo el slice de /distill de abajo)
  3. Authentication → API Key en el Header:
    • Key: Authorization
    • Value: Bearer YOUR_API_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: OK

Usar 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 distill and answer based on the returned Markdown."

Usar en un Workflow

Para ingesta estilo RAG: nodo Knowledgedistill.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.

Relacionado