Build a self-hosted URL shortener with a dashboard
Needs changesWhat 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).
- Check URL (If): checks a condition and branches into true / false
- Check Id (If): checks a condition and branches into true / false
- Find by ID (Airtable): list
- Extract URL (Edit Fields (Set)): sets or maps fields
- Set Error output (Edit Fields (Set)): sets or maps fields
- Extract Id (Edit Fields (Set)): sets or maps fields
- Set Error output (Edit Fields (Set)): sets or maps fields
- Extract stats (Function): runs custom JavaScript (legacy Function node)
- Crypto: hashes or encrypts values
- Find by ID (Airtable): list
…plus 13 more steps. See the full node list below.
Services it uses
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.0 | Replace with |
|---|---|
| Function (legacy) Extract stats | Code node, mode 'Run Once for All Items' |
Nodes used (6)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Crypto
n8n-nodes-base.crypto - Airtable
n8n-nodes-base.airtable - Function
n8n-nodes-base.function
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.…