Build a self-hosted URL shortener with a dashboard — n8n Workflow

High complexity🔗 Webhook26 nodes🏷️ Miscellaneous👁 5,507 viewsby mohamed ali

Overview

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

Nodes used

AirtableCrypto

Workflow Preview

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

How it Works

  1. 1

    Trigger

    The workflow starts with a webhook trigger.

  2. 2

    Process

    Data flows through 26 nodes, connecting airtable, crypto, function.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (26)

AI

Airtable

airtable

#1
CR

Crypto

crypto

#2

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded build-a-self-hosted-url-shortener-with-a-dashboard file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

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

Integrations

airtablecryptofunctionifsetwebhook

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes26
Complexityhigh
Triggerwebhook
Views5,507

Created by

mohamed ali

mohamed ali

@dali

Tags

airtablecryptofunctionifsetwebhook

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →

Related Miscellaneous Workflows