Ajouter un webhook
Objectif
Créer de nouveaux webhooks Modal pour une orchestration événementielle avec Claude.
Processus
-
Créer un fichier de directive
Créezdirectives/votre_directive.mdavec :- Objectif
- Entrées
- Étapes du processus
- Sorties
- Cas particuliers
-
Ajouter à webhooks.json
Ajoutez une entrée dansexecution/webhooks.json:{ "votre-slug-webhook": { "directive": "votre_directive", "description": "Description de ce que fait ce webhook", "tools": ["send_email", "read_sheet", "update_sheet"] } } -
Déployer
modal deploy execution/modal_webhook.py -
Tester
curl "https://votre-nom-modal--claude-orchestrator-directive.modal.run?slug=votre-slug-webhook"
Outils disponibles pour les webhooks
send_emailread_sheetupdate_sheet
Points de terminaison
- Liste :
https://votre-nom-modal--claude-orchestrator-list-webhooks.modal.run - Exécution :
https://votre-nom-modal--claude-orchestrator-directive.modal.run?slug={slug}
Schéma
Entrées
| Nom | Type | Requis | Description |
|---|---|---|---|
slug | string | Oui | Identifiant unique du webhook |
directive | string | Oui | Nom du fichier de directive (sans .md) |
description | string | Oui | Description de ce que fait ce webhook |
tools | array | Oui | Liste des outils que le webhook peut utiliser |
Sorties
| Nom | Type | Description |
|---|---|---|
webhook_url | string | URL du webhook Modal pour l'exécution |
Identifiants
| Nom | Source |
|---|---|
MODAL_TOKEN_ID | Tableau de bord Modal |
MODAL_TOKEN_SECRET | Tableau de bord Modal |
Compatible avec
Compétences qui s'enchaînent bien avec celle-ci : modal-deploy
Coût
Calcul Modal (paiement à l'utilisation)