Перейти к содержанию
НОВОЕМаркетплейс и trig8n Agent: продавайте то, что создали, и получайте планы и изменения, проверенные до того, как вы их увидите. Что нового

Библиотека / Мониторинг, эксплуатация и инциденты

Мониторинг, эксплуатация и инциденты

Отправлять оповещения в Telegram при сбоях других воркфлоу n8n

Запускается при ошибке в любом другом воркфлоу и отправляет данные об ошибке в настроенную группу или канал Telegram.

Что делает

### How to Use Telegram Error Notifier ### Step 1: Prerequisites 1. Telegram Bot: - Create a bot using [BotFather]({{ $env.API_BASE_URL }} and get the bot token. - Add the bot to your Telegram group/channel and note the chatId. 2. n8n Setup: - Ensure the Telegram and Error Trigger nodes are installed. --- ### Step 2: Configure the Workflow 1. Update Telegram Chat ID: - Open the Config node. - Replace telegramChatId with your actual Telegram group/channel ID: json return [ { "telegramChatId": 123456789, // Replace with your chat ID, format 123456789 or -123456789 } ]; 2. Set Telegram Bot Credentials: - Open the Telegram node. - Add your bot token in the Credentials section. 3. Activate the Workflow: - Toggle the Active switch to enable the workflow. --- ### Step 3: Set Up Error Workflow 1. Open the workflow where you want error notifications. 2. Go to Settings > Error Workflow. 3. Select Telegram Error Notifier from the dropdown. 4. Save the changes. --- ### Step 4: Test the Workflow 1. Trigger an error in the workflow. 2. Check your Telegram for the error notification, which includes: - Workflow name - Date and time - Execution URL - Last node executed - Error details --- ### Example Notification Workflow: My Workflow 1 Data & Time: 2023-10-27T12:34:56Z URL: {{ $env.WEBHOOK_URL }} Last Node: HTTP Request Error Detail: Failed to connect to the server. --- ### Troubleshooting - No Notifications: Ensure the workflow is active, and the bot token/chat ID is correct. - Permission Issues: Ensure the bot can send messages in your Telegram group/channel. ---

Шаги

  1. Telegram
  2. Error Trigger
  3. Config
  4. Error Handler

Похожие автоматизации