İçeriğe geç
YENİPazar yeri ve trig8n Agent: geliştirdiğinizi satın; planlar ve değişiklikler siz görmeden önce test edilsin. Yeniliklere bak

Kütüphane / İzleme, Operasyon ve Olaylar

İzleme, Operasyon ve Olaylar

Diğer n8n iş akışları başarısız olduğunda Telegram uyarıları gönder

Başka bir iş akışında hata oluştuğunda çalışır ve hata ayrıntılarını yapılandırılmış bir Telegram grubuna veya kanalına gönderir.

Ne yapar

### 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. ---

Adımlar

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

Benzer otomasyonlar