Integrations
Dify
Add Thunderbit as a custom tool in Dify by importing the OpenAPI schema
Dify lets you register external APIs as Custom Tools that any agent or workflow can call. Just point it at Thunderbit's OpenAPI spec.
Add the tool
- Tools → Custom → Create custom tool
- Schema → paste the Thunderbit OpenAPI spec (or just the
/distillslice below) - Authentication → API Key in header:
- Key:
Authorization - Value:
Bearer YOUR_API_KEY
- Key:
Minimal schema (just /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: OKUse in an Agent
In Dify's Agent or Chatflow, drop the distill tool into the toolset. Prompt example:
"When the user asks about a URL, call
distilland answer based on the returned Markdown."
Use in a Workflow
For RAG-style ingestion: Knowledge node ← distill.data.markdown ← Start node URL input. For batch, swap in /batch/distill and add a Loop node that polls /batch/{jobId} until COMPLETED.