Build a self-hosted URL shortener with a dashboard — n8n Workflow
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
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a webhook trigger.
- 2
Process
Data flows through 26 nodes, connecting airtable, crypto, function.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (26)
Airtable
airtable
Crypto
crypto
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
build-a-self-hosted-url-shortener-with-a-dashboardfile 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
mohamed ali
@dali
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →