Create and Manage Short URLs with Telegram Bot, MongoDB and Nginx Redirects — n8n ワークフロー
概要
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
使用ノード
TelegramMongoDBCode
ワークフロープレビュー
⚡
T
Telegram Trigger
Insert shortCode
New link
Exist?
N
no exist?
E
exist?
⚡
W
Webhook
I
Is it reply?
R
Reply Data
askShortCode
Clean Data
askShortCode1
⚡
V
Valid URL
take URL
N
Not Valid URL?
Not Valid URL1
T
take short code
short code exist?
S
short code exist?1
I
If short code exist
⚡
4
404 page
S
shortCode Data
22 nodes20 edges
仕組み
- 1
トリガー
このワークフローは トリガー トリガーで開始します。
- 2
処理
データは 22 個のノードを流れます, connecting code, if, mongodb。
- 3
出力
ワークフローは自動化を完了し、設定された宛先に結果を配信します。
ノード詳細 (22)
TE#1
Telegram
telegram
MO#2
MongoDB
mongoDb
CO#3
Code
code
このワークフローのインポート方法
- 1右側の JSONをダウンロード ボタンをクリックしてワークフローファイルを保存します。
- 2n8nインスタンスを開き、ワークフロー → 新規 → ファイルからインポート に進みます。
- 3ダウンロードした
create-and-manage-short-urls-with-telegram-bot-mongodb-and-nginx-redirectsファイルを選択し、インポートをクリックします。 - 4各サービスノードの 認証情報(APIキー、OAuthなど)を設定します。
- 5ワークフローをテスト をクリックして動作確認し、有効化します。
またはn8nの JSONからインポート に直接貼り付け:
{ "name": "Create and Manage Short URLs with Telegram Bot, MongoDB and Nginx Redirects", "nodes": [...], ...}
インテグレーション
codeifmongodbrespondtowebhooksettelegramtelegramtriggerwebhook
作成者
Rudi Afandi
@fanfanra
タグ
codeifmongodbrespondtowebhooksettelegramtelegramtriggerwebhook