Webhook Automate

Webhook Automate streamlines torrent searching and downloading by integrating with Telegram for notifications. It automatically triggers on incoming webhooks, searches multiple torrent providers, and initiates downloads while notifying users of success or failure, ensuring efficient media acquisition.

7/8/2025
8 nodes
Complex
webhookcomplexfunctionitemtelegramintegrationapicodecustomlogicconditionalcommunicationbot
Categories:
Communication & MessagingComplex WorkflowWebhook TriggeredBusiness Process Automation
Integrations:
FunctionItemTelegram

Target Audience

This workflow is ideal for:
- Content Creators: Individuals or teams looking to automate the process of finding and downloading torrents for video or audio content.
- Developers: Programmers who want to integrate torrent searching and downloading capabilities into their applications.
- Tech Enthusiasts: Users who enjoy automating tasks and enhancing their workflow efficiency with tools like n8n.
- Telegram Users: Anyone who uses Telegram and wants to receive notifications about torrent downloads directly in their chat.
- Media Managers: Professionals managing large media libraries who require quick access to torrent files for various content.

Problem Solved

This workflow addresses the challenge of automating the search and download of torrents based on user-defined titles received via webhooks. It streamlines the entire process, allowing users to:
- Quickly find torrents from multiple providers like KickassTorrents and Rarbg.
- Automatically initiate downloads using Transmission without manual intervention.
- Receive instant notifications on Telegram about the status of the requested downloads, improving communication and efficiency.

Workflow Steps

  • Webhook Trigger: The workflow starts when a POST request is received at a specific webhook URL, containing the title of the desired content.
    2. Torrent Search: The SearchTorrent node utilizes the Torrent Search API to search for torrents related to the provided title, fetching up to 5 results.
    3. Check for Results: An IF condition checks if any torrents were found:
    - If found, it proceeds to the next step to initiate the download.
    - If not found, it sends a notification via Telegram that the film was not found.
    4. Download Initiation: The Start download node sends a request to the Transmission RPC to add the first found torrent to the download queue, specifying the download directory.
    5. Error Handling: If an error occurs (e.g., session ID conflict), the workflow checks for specific error codes:
    - If a 409 status code is encountered, it attempts to re-initiate the download with a new session ID.
    6. Success Notification: Once the download starts successfully, a Telegram message is sent to the user, confirming the download of the specified title.
  • Customization Guide

    Users can customize this workflow by:
    - Modifying the Webhook Path: Change the webhook path to suit the desired endpoint for triggering the workflow.
    - Adjusting Torrent Providers: Enable or disable specific torrent providers in the SearchTorrent node to tailor search results to personal preferences.
    - Changing Download Directory: Update the download-dir parameter in the Start download node to specify a different location for saving downloaded torrents.
    - Customizing Telegram Messages: Edit the text parameters in the Telegram nodes to personalize notifications sent to users.
    - Enhancing Error Handling: Add additional conditions or actions in the error handling sections to better manage different types of errors that may arise during the download process.