Create and Manage Short URLs with Telegram Bot, MongoDB and Nginx Redirects — n8n Workflow
Overview
This workflow contains community nodes that are only compatible with the self-hosted version of n8n.
This workflow allows you to create and manage custom short URLs directly via Telegram, with all data stored in MongoDB, and redirects handled efficiently via Nginx.
How it works This flow provides a seamless URL shortening experience:
Create via Telegram: Send a long URL to your bot. It will ask if you want a custom short code.
Store in MongoDB: All long URLs and their corresponding short cod
Nodes used
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a trigger trigger.
- 2
Process
Data flows through 22 nodes, connecting code, if, mongodb.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (22)
Telegram
telegram
MongoDB
mongoDb
Code
code
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows → New → Import from file.
- 3Select the downloaded
create-and-manage-short-urls-with-telegram-bot-mongodb-and-nginx-redirectsfile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n → Import from JSON:
Integrations
Created by
Rudi Afandi
@fanfanra
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →