Build a self-hosted URL shortener with a dashboard — n8n 工作流

复杂度🔗 Webhook26 个节点🏷️ Miscellaneous👁 5,507 次查看作者:mohamed ali

概览

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. 1

    触发器

    工作流由 webhook 触发器启动。

  2. 2

    处理

    数据流经 26 个节点, connecting airtable, crypto, function。

  3. 3

    输出

    工作流完成自动化并将结果发送到配置的目标。

节点详情 (26)

AI

Airtable

airtable

#1
CR

Crypto

crypto

#2

如何导入此工作流

  1. 1点击右侧 下载 JSON 按钮保存工作流文件。
  2. 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入
  3. 3选择下载的 build-a-self-hosted-url-shortener-with-a-dashboard 文件并点击导入。
  4. 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
  5. 5点击 测试工作流 验证一切正常,然后激活它。

或直接在 n8n → 从 JSON 导入 中粘贴:

{ "name": "Build a self-hosted URL shortener with a dashboard", "nodes": [...], ...}

集成

airtablecryptofunctionifsetwebhook

获取此工作流

一键下载并导入

下载 JSON在 n8n.io 上查看
节点26
复杂度high
触发器webhook
查看次数5,507

创建者

mohamed ali

mohamed ali

@dali

标签

airtablecryptofunctionifsetwebhook

n8n 新手?

n8n 是一款免费开源的工作流自动化工具,支持自托管或使用云版本。

免费获取 n8n →

Related Miscellaneous Workflows