This n8n workflow is designed to create a tailored notification system for managing updates from Radarr, Sonarr, and Bazarr media management tools. It receives webhook alerts, processes different event types, and sends formatted notifications to Discord. The workflow aims to streamline monitoring and alerting for media-related activities, especially for users self-hosting these services.
Here’s a step-by-step overview:
1. **Webhook Trigger:** The workflow begins when a POST request is received at the webhook endpoint, serving as the main entry point for Radarr, Sonarr, or Bazarr notifications.
2. **Switch Node:** The incoming data is evaluated based on specific criteria. It directs the flow to different branches for Radarr, Bazarr, or Sonarr based on the message content.
3. **Service-Specific Set Nodes:** Each branch processes its respective service by setting custom properties like username, avatar, color, and embedding the raw data, making the notifications distinct and visually organized.
4. **Content Formatting:** Several code nodes extract meaningful information from the raw data, like movie or episode titles, quality, size, release info, and subtitles, and prepare fields for notification display.
5. **Additional Formatting:** The workflow includes conditional handling for multiple files, translations of different description texts, and customization for notification appearance.
6. **Notification Preparation:** It constructs a comprehensive Discord message embed, including title, description, thumbnail, and other media details.
7. **Test and Evaluation:** The workflow incorporates testing capabilities to ensure correct operation, as well as evaluation nodes for manual triggers.
8. **Dispatch:** Finally, the notification is sent via an HTTP POST request to a configured Discord webhook URL.
This automation is highly practical for media enthusiasts or server administrators who need real-time alerts about media downloads, updates, or deletions, allowing for better tracking and decision-making.
Additional notes include instructions for customization, such as changing webhook URLs or adding more event types, making it adaptable to specific needs.
Reviews
There are no reviews yet.