Integraties
Flowise
Wikkel Thunderbit in als Flowise Custom Tool voor chains en agents
Flowise is een drag-and-drop builder bovenop LangChain. Gebruik de Custom Tool-node om /distill beschikbaar te stellen aan elke chain of Agent op het canvas.
Maak de Custom Tool
Tools → Custom Tool → Add new
- Tool name:
read_url - Tool description:
Fetch a URL and return clean Markdown for the agent to read. - Input schema (JSON):
{
"type": "object",
"required": ["url"],
"properties": {
"url": { "type": "string" },
"renderMode": { "type": "string", "enum": ["basic", "advanced"], "default": "basic" }
}
}- JavaScript function:
const res = await fetch('https://openapi.thunderbit.com/openapi/v1/distill', {
method: 'POST',
headers: {
Authorization: `Bearer ${$vars.THUNDERBIT_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ url: $url, renderMode: $renderMode || 'basic' }),
});
const json = await res.json();
return json.data.markdown;Sla de API Key op onder Variables als THUNDERBIT_API_KEY zodat hij niet hard-coded staat.
Inhaken op een chain
Drop de read_url-Tool in een Agent- of Tool Agent-node naast je LLM (OpenAI, Anthropic, Ollama). De Agent pakt hem automatisch op.
Tips
- Voor RAG-ingestion: combineer met de Document Loader-familie — roep
read_urlaan in een custom node, voer de Markdown in een Recursive Character Text Splitter, dan een vector store - Lange pagina's kunnen de context van de Agent opblazen — kort in tot ~8k tekens in de Custom Tool voordat je teruggeeft
Gerelateerd
- LangChain — Flowise is erop gebouwd
- Agent Read-URL Tool
- Dify