Workflows N8N — Documentation

Documentation des workflows d'automatisation N8N pour BEL'R Haut-Anjou.

Workflows d’automatisation N8N

Ces workflows sont disponibles pour import dans votre instance N8N (https://auto.asvola.fr/).

1. Proposition d’événement agenda

Fichier : /n8n/workflow-agenda-proposition.json

Déclencheur : Webhook POST https://auto.asvola.fr/webhook/belr-agenda-proposition

Actions :

  1. Filtre anti-spam (honeypot)
  2. Email de notification à contact@belr-hautanjou.fr avec toutes les données
  3. Email de confirmation automatique à l’organisateur
  4. Réponse HTTP 200 au formulaire

Import : Menu N8N → Workflows → Import → coller le JSON


2. Export quotidien ICS vers Nextcloud

Fichier : /n8n/workflow-export-ics-quotidien.json

Déclencheur : Automatique toutes les 6h

Actions :

  1. Télécharge les 3 calendriers ICS depuis Nextcloud CalDAV
  2. Dépose les fichiers dans /remote.php/dav/files/belr-export/calendars/ via WebDAV
  3. Ces fichiers sont ensuite récupérés par le build Hugo

Configuration requise :

  • Créer des credentials HTTP Basic Auth dans N8N (compte Nextcloud avec accès WebDAV)
  • Synchroniser le dossier Nextcloud vers static/calendars/ du site Hugo (rsync, webhook de déploiement, ou Nextcloud sync)

Commande rsync d’exemple :

rsync -avz \
  --rsh='sshpass -p PASS ssh user@nextcloud.belr-hautanjou.fr' \
  /path/nextcloud/calendars/*.ics \
  /path/hugo/static/calendars/