Templates / Build a self-hosted URL shortener with a dashboard

Build a self-hosted URL shortener with a dashboard

Needs changes

by mohamed ali · 6,153 views · created 2021-05-24 · Miscellaneous

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 26 nodes and runs when an HTTP GET request hits its webhook URL (plus 2 other triggers). Along the way it connects Airtable.

How it runs

Trigger: When an HTTP GET request hits its webhook URL (plus 2 other triggers).

  1. Check URL (If): checks a condition and branches into true / false
  2. Check Id (If): checks a condition and branches into true / false
  3. Find by ID (Airtable): list
  4. Extract URL (Edit Fields (Set)): sets or maps fields
  5. Set Error output (Edit Fields (Set)): sets or maps fields
  6. Extract Id (Edit Fields (Set)): sets or maps fields
  7. Set Error output (Edit Fields (Set)): sets or maps fields
  8. Extract stats (Function): runs custom JavaScript (legacy Function node)
  9. Crypto: hashes or encrypts values
  10. Find by ID (Airtable): list

…plus 13 more steps. See the full node list below.

Services it uses

Airtable

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Function (legacy) in Extract stats: replace with Code node, mode 'Run Once for All Items'.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Function (legacy)
Extract stats
Code node, mode 'Run Once for All Items'

Nodes used (6)

From the author

This workflow creates an automatic self-hosted URL shortener. It consists of three sub-workflows: 1. 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. 2.…

Excerpt from mohamed ali's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.