25 - Automatisation du résumé des inscriptions quotidiennes

Intermédiaire

Ceci est unEngineeringworkflow d'automatisation du domainecontenant 9 nœuds.Utilise principalement des nœuds comme Set, Slack, Postgres, Telegram, MicrosoftTeams. Envoi automatique des statistiques quotidiennes des inscriptions depuis PostgreSQL vers Slack, Teams et Telegram

Prérequis
  • Token Bot Slack ou URL Webhook
  • Informations de connexion à la base de données PostgreSQL
  • Token Bot Telegram

Catégorie

Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "name": "25 - Automated Daily Signup Summary",
  "nodes": [
    {
      "id": "9bcb46ca-0694-41ee-b700-1dfa22bdb478",
      "name": "Instructions de configuration de la base de données",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -180,
        200
      ],
      "parameters": {
        "color": 4,
        "width": 440,
        "height": 580,
        "content": "## 1️⃣ Trigger & Data Fetching\n\n⏰ Daily Report Trigger runs every day at 9:00 AM.\n\n*It triggers 🗄️ Fetch Signup Count, which queries the customers table in PostgreSQL to count the number of new signups within the last 24 hours using the created_at timestamp column.*"
      },
      "typeVersion": 1
    },
    {
      "id": "bf6257e2-a159-42d2-9826-68bf692337b0",
      "name": "Instructions de configuration de la messagerie",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        120
      ],
      "parameters": {
        "color": 5,
        "width": 260,
        "height": 660,
        "content": "## 2️⃣ Report Preparation\n\n📝 Prepare Report Message formats the results into a ready-to-send message.\n\n*It includes the signup count, report date, and a summary message:\n📊 Daily Signup Report – New signups in last 24h: X*\n"
      },
      "typeVersion": 1
    },
    {
      "id": "1a8bf7d7-18e7-4b08-947e-6bc189d5a2f5",
      "name": "⏰ Déclencheur du rapport quotidien",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -120,
        420
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 9
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "bf7c0220-7aa2-40b0-b12d-3e4756f07130",
      "name": "🗄️ Récupérer le nombre d'inscriptions",
      "type": "n8n-nodes-base.postgres",
      "position": [
        100,
        420
      ],
      "parameters": {
        "query": "-- EDIT: Replace 'users' with your table name and 'created_at' with your timestamp column\nSELECT COUNT(*) as signup_count \nFROM customers \nWHERE created_at >= NOW() - INTERVAL '24 HOURS';",
        "options": {},
        "operation": "executeQuery"
      },
      "typeVersion": 2.4
    },
    {
      "id": "998a13b4-e761-47e2-bfac-8b65a3a47dfa",
      "name": "📝 Préparer le message du rapport",
      "type": "n8n-nodes-base.set",
      "position": [
        360,
        420
      ],
      "parameters": {
        "values": {
          "string": [
            {
              "name": "signup_count",
              "value": "={{ $json.signup_count || 0 }}"
            },
            {
              "name": "report_date",
              "value": "={{ new Date().toLocaleDateString('en-US', { timeZone: 'UTC', year: 'numeric', month: 'long', day: 'numeric' }) }}"
            },
            {
              "name": "message_text",
              "value": "=📊 Daily Signup Report\nNew signups in the last 24h: {{ $json.signup_count || 0 }}"
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 2
    },
    {
      "id": "8f165983-aa33-489d-bc3c-827b626cd531",
      "name": "💬 Publier sur Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        660,
        220
      ],
      "parameters": {
        "text": "={{ $node['📝 Prepare Report Message'].json.message_text }}",
        "channel": "#general",
        "attachments": [],
        "otherOptions": {}
      },
      "typeVersion": 1
    },
    {
      "id": "f4130a5a-0473-4e7e-b5cc-00dc33c8775d",
      "name": "📢 Envoyer à Teams",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        660,
        420
      ],
      "parameters": {
        "name": "YOUR_CHANNEL_NAME",
        "teamId": "YOUR_TEAM_ID",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "13930dd0-dd61-4fb9-857b-f2ca484a1c8e",
      "name": "📲 Envoyer à Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        660,
        620
      ],
      "parameters": {
        "text": "={{ $node['📝 Prepare Report Message'].json.message_text }}",
        "chatId": "YOUR_TELEGRAM_CHAT_ID",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "7447cbfd-709d-4acc-9f66-68f2914edd21",
      "name": "Instructions de configuration de la messagerie1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        -40
      ],
      "parameters": {
        "color": 3,
        "width": 360,
        "height": 820,
        "content": "## 3️⃣ Multi-Channel Notification Delivery\n\n*The prepared message is sent to multiple platforms in parallel:\n\n💬 Post to Slack\n📢 Send to Teams\n📲 Send to Telegram"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "connections": {
    "1a8bf7d7-18e7-4b08-947e-6bc189d5a2f5": {
      "main": [
        [
          {
            "node": "bf7c0220-7aa2-40b0-b12d-3e4756f07130",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "bf7c0220-7aa2-40b0-b12d-3e4756f07130": {
      "main": [
        [
          {
            "node": "998a13b4-e761-47e2-bfac-8b65a3a47dfa",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "998a13b4-e761-47e2-bfac-8b65a3a47dfa": {
      "main": [
        [
          {
            "node": "8f165983-aa33-489d-bc3c-827b626cd531",
            "type": "main",
            "index": 0
          },
          {
            "node": "f4130a5a-0473-4e7e-b5cc-00dc33c8775d",
            "type": "main",
            "index": 0
          },
          {
            "node": "13930dd0-dd61-4fb9-857b-f2ca484a1c8e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Ingénierie

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds9
Catégorie1
Types de nœuds7
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Auteur
Avkash Kakdiya

Avkash Kakdiya

@itechnotion

🚀 Founder of iTechNotion — we build custom AI-powered automation workflows for startups, agencies, and founders. 💡 Specializing in agentic AI systems, content automation, sales funnels, and digital workers. 🔧 14+ years in tech | Building scalable no-code/low-code solutions using n8n, OpenAI, and other API-first tools. 📬 Let’s automate what slows you down.

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34