Automate URL Shortening and Redirection with Telegram, MongoDB, and Nginx

This workflow automates the creation and management of short URLs using Telegram, with data stored in MongoDB and redirection handled by Nginx. Ideal for streamlining URL management.

This workflow provides a comprehensive solution for URL shortening and redirection. Users can send a long URL to a Telegram bot, which prompts for a custom short code. The workflow checks for existing codes in MongoDB, inserts new entries, and sends back the short URL. When a short URL is accessed, Nginx forwards the request to an n8n webhook, which redirects to the original URL. This setup requires a self-hosted n8n instance, a Telegram bot, and a MongoDB database, with Nginx configured for pro
Platform
n8n
Category
Marketing
Price
$14.99
Creator
Sophia Chow

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related Marketing workflows

More from Sophia Chow

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.