# Build a self-hosted URL shortener with Airtable: n8n workflow

> Started by another system calling it, and works across Airtable. 26 steps, 4 branches: large, and worth reading before you trust it with anything live.

Source: https://millionrounds.com/workflow/build-a-self-hosted-url-shortener-with-airtable (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Research and reporting](https://millionrounds.com/workflows?category=Research+and+reporting#library)

# Build a self-hosted URL shortener with Airtable

Started by another system calling it, and works across Airtable. 26 steps, 4 branches: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fbuild-a-self-hosted-url-shortener-with-airtable)

**26 steps** Large: read it before trusting it with anything live

**4** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 3 Logic 17 Service 6

The steps in the order they run, from what starts it.

- 1 **Webhook** Webhook *Starts it*
- 2 **Webhook1** Webhook *Starts it*
- 3 **Webhook2** Webhook *Starts it*
- 4 **Check URL** If *Logic*
- 5 **Check Id** If *Logic*
- 6 **Find by ID2** Airtable *Service*
- 7 **Extract URL** Set *Logic*
- 8 **Set Error output** Set *Logic*
- 9 **Extract Id** Set *Logic*
- 10 **Set Error output1** Set *Logic*
- 11 **Extract stats** Function *Logic*
- 12 **Crypto** Crypto *Service*
- 13 **Find by ID1** Airtable *Service*
- 14 **Set dashboard** Set *Logic*
- 15 **Set ID,shortUrl,longUrl** Set *Logic*
- 16 **Already exists?1** If *Logic*
- 17 **Find by ID** Airtable *Service*
- 18 **Prepare clicks count** Set *Logic*
- 19 **404 Error** Set *Logic*
- 20 **Already exists?** If *Logic*
- 21 **Update clicks** Airtable *Service*
- 22 **Set Output** Set *Logic*
- 23 **Set input** Set *Logic*
- 24 **Set Output2** Set *Logic*
- 25 **Airtable** Airtable *Service*
- 26 **Set Output1** Set *Logic*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 26, with 4 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Airtable
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Airtable account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 26 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 26 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fbuild-a-self-hosted-url-shortener-with-airtable)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Airtable](https://millionrounds.com/workflows?service=Airtable#library)

## Workflows like it

Also research and reporting, with the same services where possible, closest in size first.

- [**Technical stock analysis with Telegram and Airtable** 24 steps · calls a model · Airtable, Telegram](https://millionrounds.com/workflow/technical-stock-analysis-with-telegram-and-airtable)
- [**IPhone scraping + AI evaluation + Google Sheets & Airtable** 23 steps · calls a model · Airtable, Gmail](https://millionrounds.com/workflow/iphone-scraping-ai-evaluation-google-sheets-and-airtable)
- [**Automate ESG compliance routing and reporting with OpenAI** 30 steps · calls a model · Airtable, Gmail](https://millionrounds.com/workflow/automate-esg-compliance-routing-and-reporting-with-openai)
- [**Automate vendor analysis & contract management with OpenAI** 19 steps · calls a model · Airtable, Gmail](https://millionrounds.com/workflow/automate-vendor-analysis-and-contract-management-with-openai)
- [**Startup funding research automation with Claude** 35 steps · calls a model · Airtable](https://millionrounds.com/workflow/startup-funding-research-automation-with-claude)
- [**Indeed data scraper & summarization with Airtable** 16 steps · calls a model · Airtable](https://millionrounds.com/workflow/indeed-data-scraper-and-summarization-with-airtable)
