Intégrations
n8n
Construis un workflow Thunderbit no-code avec les nœuds HTTP Request + Webhook
n8n est l'outil d'automatisation open-source que la plupart des développeurs choisissent. Deux nœuds intégrés suffisent : HTTP Request pour soumettre un job, Webhook pour capter le callback.
URL unique — /distill
- Ajoute un nœud HTTP Request
- Méthode :
POST· URL :https://openapi.thunderbit.com/openapi/v1/distill - Authentification : Header Auth →
Authorization: Bearer YOUR_API_KEY - Body (JSON) :
{
"url": "{{ $json.url }}",
"renderMode": "basic"
}- Le nœud suivant reçoit
{{ $json.data.markdown }}. Branche vers Notion, Slack, OpenAI, etc.
Batch — /batch/distill + callback Webhook
Les jobs asynchrones sont le bon pattern au-delà de 5 à 10 URLs. Deux workflows :
Workflow A : Submitter
- HTTP Request →
POST /openapi/v1/batch/distill - Body :
{
"urls": {{ $json.urls }},
"callback": {
"url": "https://your-n8n.example.com/webhook/thunderbit",
"secret": "whsec_..."
}
}Workflow B : Receiver
- Nœud Webhook, chemin
thunderbit - Vérifie le Header
X-Thunderbit-Signaturecontre ton secret (nœud Function, HMAC-SHA256) - Itère
{{ $json.results }}→ écris chaquemarkdowndans ton sink
Astuces
- Utilise le nœud Wait de n8n + un HTTP Request de polling vers
/batch/{jobId}si tu ne peux pas exposer un Webhook public - Active
Continue On Failsur le nœud HTTP Request pour qu'un seul 4xx ne tue pas le workflow