Connectors

/

Bitly

/

Archive dormant Bitly links
Write

Archive dormant Bitly links without losing live ones

For marketing teams who want their AI assistant to clear out Bitly links nobody clicks, choosing exactly which ones to archive.

Try PopdockAI free
Get a live demo
Archive dormant Bitly links
Archive the Bitly links in our Marketing group that have had no clicks in 180 days.
18 links in the Marketing group have had no clicks in 180 days. - 1. bit.ly/nw-spring24, Northwind spring sale, created March 2024 - 2. bit.ly/contoso-webinar, Contoso webinar signup, created May 2024 - Note: archived links still redirect, but leave the default views and reports Which should I archive: all, none, or a list of numbers?
Bitly
Sample figures. Your results come from your own account.
bitly-get-bitlink
bitly-get-click-day
bitly-update-bitlink

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

Bitly

Bitly
Run it on your own Bitly data.

Connect Bitly, pick your AI tool and paste the prompt.

Try PopdockAI free

The problem

Old short links clutter every Bitly view and report

Years of campaigns leave a Bitly account full of links nobody clicks, cluttering every view and report. Clearing them means checking each link's recent clicks by hand, and it is easy to archive one that still earns traffic.

Without PopdockAI

  • Page through every link in the group
  • Open each one to check recent clicks
  • Decide which are safe to archive
  • Archive a link that still gets traffic

With PopdockAI

  • Every unarchived link is checked against recent daily clicks
  • Links too new to judge are skipped
  • You pick from a numbered list, and nothing changes until you answer
  • Only the archived flag is set, and each link is read back

The prompt

Use this prompt

Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.

Prompt
**Objective:** Archive the bitlinks in `{group-name}` (default: all groups) that have had no clicks in the last `{lookback-days}` days (default 180), after the user confirms the list.

**Step 1: Find candidates**

* Call `bitly-get-bitlink` with `archived` = false, and `group-name` when given. Drop links created inside the lookback window.
* Call `bitly-get-click-day` with `archived-link` = false, `date.from` = today minus `{lookback-days}` days, `date.to` = today, and `group-name` when given.
* A link from the first call with no clicks in the second is a candidate.

**Step 2: Confirm**

Show the candidates as a numbered table: link, title, long-url, tags, created-date. Ask the user which to archive (all, none, or a list of numbers). Do not proceed without an explicit answer.

**Step 3: Archive**

For each confirmed link, call `bitly-update-bitlink` once with `id` set to that row's `bitlink-id` and `archived` = true. Do not pass `title`, `tags` or `long-url`.

**Step 4: Confirm the result**

Call `bitly-get-bitlink` with `archived` = true and `link` for each archived link, and report which succeeded and which failed (with the error).

**Rules & Guidelines:**

* `bitly-update-bitlink` is the only write allowed, only with `archived` = true, and only on links the user confirmed in Step 2.
* Never call `bitly-add-bitlink`.
* Archiving does not stop a short link redirecting, but it hides the link from the default views and reports. Tell the user this before they confirm.
* Never archive on a truncated read: if either read hits `max-records`, raise it and read again first.

**Validation:**

* If there are no candidates, say so and stop without writing anything.
* If the user's selection is unclear, ask again rather than guess.

Who it's for

One answer, three teams that use it

Social media managers

Clear out old campaign links

Archive links from past campaigns in one pass, so your link list shows what is live.

Archive Bitly links in the Social group with no clicks in the last 365 days.

Marketing operations

Keep reports free of dead links

Dormant links stop cluttering views and reports, without risking a link that still earns clicks.

Find Bitly links in Contoso Marketing with no clicks for 180 days and let me pick which to archive.

Brand managers

Tidy a brand's links safely

Every candidate is checked against recent clicks before you choose, so nothing live disappears.

Which links in the Fabrikam Bitly group have been idle for 270 days? Archive the ones I choose.

How it works

What PopdockAI does when you ask

You choose a group and a dormant period, and your AI assistant finds Bitly links with no recent clicks. Nothing is archived until you have picked the links and said yes.

01

Ask

You choose a group and how many days without a click counts as dormant.

Your AI tool

02

Find

It compares every unarchived link with its recent clicks, skipping new links.

bitly-get-bitlink
bitly-get-click-day

03

Confirm

You see a numbered list and choose which links to archive.

No items found.

04

Archive

It sets only the archived flag on your picks and reads each one back.

Your AI tool

What PopdockAI provides

The tools behind the answer

Ready made tools for Bitly and one secure connection to your AI tool. No code, no exports.

get-data

bitly-get-bitlink

Returns Bitly short links (bitlinks) with their title, long URL, tags, group and archived state. Filter by link, title, tags, destination URL, group, archived state or created date.
get-data

bitly-get-click-day

Returns the number of clicks each Bitly bitlink received per day. Filter by date range, link, title, tags, group, archived state or a minimum click count.
run-action

bitly-update-bitlink

Updates an existing Bitly bitlink's destination URL, title or tags, or archives it. Tags sent replace the link's existing tags.
Read only.Nothing in Bitly Changes

This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.

How Popdock AI secures your data

The outcome

A tidy Bitly account with live links left alone

Try PopdockAI free
Get a live demo

Related use cases

More ways to put this data to work

All Ramp use cases

One prompt template with infinite possibilities.

‍

Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.

Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

Try PopdockAI Free
See Documentation