Build a self-hosted URL shortener with a dashboard — n8n 工作流
概览
This workflow creates an automatic self-hosted URL shortener. It consists of three sub-workflows:
Short URL creation for extracting the provided long URL, generating an ID, and saving the record in the database. It returns a short link as a result. Redirection for extracting the ID value, validating the existence of its correspondent record in the database, and returning a redirection page after updating the visits (click) count. Dashboard for calculating simple statistics about the saved recor
使用的节点
AirtableCrypto
工作流预览
⚡
W
Webhook
E
Extract URL
C
Check URL
Crypto
Airtable
S
Set ID,shortUrl,longUrl
Find by ID
A
Already exists ?
S
Set Output
S
Set Error output
S
Set Output1
S
Set input
⚡
W
Webhook1
S
Set Error output1
C
Check Id
Find by ID1
A
Already exists ?1
S
Set Output2
E
Extract Id
4
404 Error
Update clicks
P
Prepare clicks count
⚡
W
Webhook2
Find by ID2
E
Extract stats
S
Set dashboard
26 nodes23 edges
工作原理
- 1
触发器
工作流由 webhook 触发器启动。
- 2
处理
数据流经 26 个节点, connecting airtable, crypto, function。
- 3
输出
工作流完成自动化并将结果发送到配置的目标。
节点详情 (26)
AI#1
Airtable
airtable
CR#2
Crypto
crypto
如何导入此工作流
- 1点击右侧 下载 JSON 按钮保存工作流文件。
- 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入。
- 3选择下载的
build-a-self-hosted-url-shortener-with-a-dashboard文件并点击导入。 - 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
- 5点击 测试工作流 验证一切正常,然后激活它。
或直接在 n8n → 从 JSON 导入 中粘贴:
{ "name": "Build a self-hosted URL shortener with a dashboard", "nodes": [...], ...}
集成
airtablecryptofunctionifsetwebhook
创建者
mohamed ali
@dali
标签
airtablecryptofunctionifsetwebhook