Automation

Switch a broken product link to a backup page automatically

When the page behind your short link or QR code stops working, n8n can point the link to a backup, such as your WhatsApp or the same product on a marketplace, and tell you what broke.

iLiBuat.Link Team8 min read

Key takeaways

  • iBuat.Link can check the pages behind your links and QR codes about every 30 minutes and send a Destination stopped working event when a page is really broken.
  • A page only counts as broken after two checks in a row: not found (404 or 410), a site that can’t be reached, or a broken HTTPS certificate.
  • The n8n template points the link to a backup page through the API and sends you a Telegram message with what broke.
  • Switching back after the fix is up to you, and a “product unavailable” page that loads normally can’t be detected.
On this page8
  1. 1. What this automation does
  2. 2. When does a page count as broken?
  3. 3. What you need
  4. 4. Set it up step by step
  5. 5. What the message looks like
  6. 6. After the fix: switch back by hand
  7. 7. Prefer a heads-up instead of a switch?
  8. 8. Honest limits

Bu Sari’s best-selling gamis has a short link in her Instagram bio and a QR code printed on 500 flyers. Both point to the product page on her own shop website. One evening she renames the product, the website gives the page a new address, and the old one starts answering “page not found”.

Nobody tells her. People tap, see an error, and leave. Three days later a customer sends a DM: “Hi, your link is broken.” Three days of ad money and flyer scans went to an error page.

This automation makes sure the next broken page lasts about an hour, not three days. If you made your product links in bulk with the products → links and QR codes automation, this one keeps them working.

Before

shopee.co.id/hijab-voal…

404 not found

After

tokopedia.com/toko-sari…

Backup page

Checked twice, 30 min apart

The product page breaks, the short link moves to a backup, and you get a message.

What this automation does

n8n is a robot assistant that follows rules: when something happens, then do this. iBuat.Link plays two parts here. It rings the bell when a page breaks, and it’s also the office where the robot gets work done, through the API.

  1. 1

    iBuat.Link notices the page is broken

    It checks the destination of your links and QR codes in the background. After two failed checks in a row, it sends the Destination stopped working event.

  2. 2

    n8n picks a backup

    The template has a short list: a backup page per link, plus one default for everything else, such as your WhatsApp chat link.

  3. 3

    n8n moves the link

    Through the iBuat.Link API, it points the short link (or QR code) to the backup. The flyers and the bio link keep working.

  4. 4

    You get a message

    A Telegram message tells you which link broke, why, the old address and the backup it now uses.

When does a page count as broken?

An automation that changes your links shouldn’t jump at every hiccup, so the rules are deliberately strict. iBuat.Link checks each page about every 30 minutes and only reports it after two checks in a row fail.

Counts as brokenDoesn’t count
“Not found” (HTTP 404) or “gone” (HTTP 410)Pages that block bots, show a robot check or ask for a login
The site can’t be reached: the domain doesn’t exist or refuses the connectionSlow pages and timeouts
A broken HTTPS certificateServer errors and refusals (401, 403, 429, 5xx)

A few more details:

  • Only web pages are checked: links and QR codes with the Website or Marketplace destination type. WhatsApp, Sales Router and Bio Page destinations are not.
  • Checking starts when you subscribe. Pages are only checked for workspaces that have a webhook with a destination event ticked.
  • It’s polite to other websites. iBuat.Link checks at most 5 pages on the same website per run. If many of your links go to one site, the rest are checked in the next runs.

What you need

  • iBuat.Link Pro or higher for webhooks and the API. See pricing.
  • n8n, either n8n Cloud (paid) or self-hosted (free, on your own server).
  • An API key with Read & write permission. Create it in Developer. iBuat.Link asks for your account password when you create a key.
  • A Telegram bot connected in n8n, and the chat id where the message should go.
  • A backup page for the links that matter, and one default backup for the rest.

Set it up step by step

  1. 1

    Download and import the template

    In Integrations, on the Automate with n8n card, click Download template on “Dead page → backup link” (07-dead-destination-backup.json). In n8n, open a workflow, click “…” and choose Import from File.

  2. 2

    Add your API key to n8n

    Create a Header Auth credential named “iBuat.Link API key”. Name: Authorization. Value: Bearer followed by a space and your API key. Select it in the “Point the link to the backup” node.

  3. 3

    Write your backup list

    Open “Pick the backup page”. In BACKUPS, add a line per link slug with its backup address. Set DEFAULT_BACKUP for every link that isn’t listed, for example your wa.me chat link.

  4. 4

    Connect Telegram

    In both Telegram steps (“Send the message” and “Tell me what broke”), pick your Telegram credential and replace YOUR_TELEGRAM_CHAT_ID.

  5. 5

    Copy the Production URL and activate

    Copy the Production URL from the “iBuat.Link webhook” node, save the workflow and switch it to active.

  6. 6

    Add the webhook in iBuat.Link

    In Integrations, click + Webhook on the template or Add webhook. Fill in Name and HTTPS URL, tick only Destination stopped working under Events to send, then Save webhook.

  7. 7

    Paste the signing secret into n8n

    iBuat.Link shows the signing secret once, right after saving. Copy it into Secret in the “Sign the request” node, in place of PASTE_YOUR_SIGNING_SECRET, then save the workflow (and publish it again if your n8n has a Publish button). Don’t skip this one: this workflow changes your links, so “Check the signature” makes sure only real iBuat.Link events can set it off.

Bu Sari’s list has two entries: the gamis link goes to the same gamis in her Shopee shop, and the khimar link to her Tokopedia listing. Everything else falls back to her WhatsApp, so a customer can still ask about the product. The step-by-step guide explains the shared parts (API key, credentials, webhook) in more detail.

What the message looks like

“⚠️ Gamis Ramadan stopped working (not_found, HTTP 404): https://shop.example.com/gamis-ramadan. It now points to https://shopee.co.id/… Fix the page, then set the link back in iBuat.Link.”

The reason in brackets is one of four: not_found (404), gone (410), unreachable (the site can’t be reached) or tls_error (a broken certificate). It works the same for QR codes: the template moves the QR code, so every printed copy, from flyers to product packaging, keeps leading somewhere useful. That’s the advantage of a dynamic QR code over a static one.

After the fix: switch back by hand

Once the link points to the backup, iBuat.Link watches the backup page, not the old one. It won’t tell you when the original page works again. When you’ve fixed it, open the link in Links (or the QR code in QR Codes) and set the destination back yourself. The Telegram message reminds you of the old address.

Prefer a heads-up instead of a switch?

Maybe your website has the odd short outage and you’d rather decide yourself. Then use the events only to be told:

  • Open “Pick the backup page” and, near the top, change SWITCH_LINKS = true to SWITCH_LINKS = false. Nothing gets switched any more; you only get the message.
  • In iBuat.Link, use Edit events on that webhook and tick Destination working again as well. You get one message when the page breaks and another when it answers normally again.
  • In switching mode you can leave Destination working again ticked too. It only ever sends a message and never moves a link.

You can also swap Telegram for Gmail in either mode.

Honest limits

  • It isn’t instant. Two checks about 30 minutes apart means the switch usually happens around an hour after a page breaks. If dozens of your links point to the same marketplace, they are checked in turns so the site isn’t flooded, and each one can take longer.
  • It’s careful on purpose. Slow sites, login pages, bot walls and server errors don’t trigger it, so a real problem of that kind won’t either.
  • Normal-looking “unavailable” pages pass. See the warning above.
  • The backup must be good. Check your backup addresses once in a while. A dead backup helps nobody.

This is one of eight ready-made workflows. Read the overview of all eight n8n automations for the others.

Frequently asked questions

How quickly does the link switch?+

A page has to fail two checks in a row, about 30 minutes apart. Expect the switch around an hour after the page breaks. With many links on the same marketplace, they are checked in turns, so each one can take a few hours.

Does it check my WhatsApp links?+

No. Only links and QR codes with the Website or Marketplace destination type are checked.

Will it switch my link if the site is just slow?+

No. Timeouts, bot checks, login pages and server errors (401, 403, 429, 5xx) don’t count, to avoid false alarms.

Does the link switch back by itself after I fix the page?+

No. After the switch, iBuat.Link watches the backup page. Set the original destination back by hand once it’s fixed.

Which API permission does the key need?+

Read & write, because the workflow changes the link’s destination.

Could someone fake a broken page to move my links?+

Not once the signing secret is pasted. Every delivery is signed with your webhook’s secret, and “Check the signature” stops anything with a wrong signature or older than 5 minutes before a link is touched.

Never send buyers to an error page

Destination checks, webhooks and the API come with Pro and up.

Share