Intégrations
Flowise
Encapsule Thunderbit comme Custom Tool Flowise pour les chaînes et agents
Flowise est un builder drag-and-drop par-dessus LangChain. Utilise le nœud Custom Tool pour exposer /distill à n'importe quelle chaîne ou Agent sur le canvas.
Crée le 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;Stocke l'API Key sous Variables comme THUNDERBIT_API_KEY pour qu'elle ne soit pas codée en dur.
Branche dans une chaîne
Dépose le Tool read_url dans un nœud Agent ou Tool Agent à côté de ton LLM (OpenAI, Anthropic, Ollama). L'Agent le récupère automatiquement.
Astuces
- Pour l'ingestion RAG, associe avec la famille Document Loader — appelle
read_urldans un nœud personnalisé, alimente le Markdown dans un Recursive Character Text Splitter, puis un vector store - Les pages longues peuvent saturer le contexte de l'Agent — tronque à environ 8k caractères dans le Custom Tool avant de retourner
Liens connexes
- LangChain — Flowise est construit dessus
- Tool Read-URL pour agent
- Dify