Skip to content
TriedPrompts

More in Business admin & workflows.

Withdraw about 1,000 old LinkedIn invitations with Perplexity's agent

Stuck after about 5 withdrawals; the poster switched to a script.

Result: FailureTool: Perplexity agent modeLevel: AdvancedSetup: Needs Perplexity agent mode

Copy the prompt

Outcome

With about 1,000 unaccepted LinkedIn invitations to clear, the poster tried Perplexity Pro's agent mode, which kept getting tripped up by LinkedIn's infinite scroll, and when asked to withdraw invitations it was painfully slow and got stuck after about 5; the poster had Perplexity write a Cursor prompt for a Selenium script instead. The poster had first collected the invitations' names and links into a spreadsheet file with a browser scraping extension. Asking the same tool for a Cursor prompt is the poster's go-to move whenever a no-code or agent tool gets stuck. Once the list was cleared, the plan was to resend invitations only to people worth connecting with, adding a message where there hadn't been one.

Evidence: Described by posterThe person describes what happened in words, without screenshots or video.

FailureEvidence: Described by posterPosted Last checked

Level: Advanced. You need: A tool that takes actions for you or writes code, connected accounts, or some setup on your computer.

How to use this

  1. Tap Copy prompt.
  2. Open the tool the case used (or a similar one) and paste the prompt; results may differ from the original.
  3. Paste it into the message box.
  4. Replace anything in [CAPITAL LETTERS IN BRACKETS] with your own details.
  5. Send it, then read the answer before acting on it.
New to this? What's a prompt?

A prompt is the message you send to the AI tool. Copy the one on this page, put your own details where it asks, and read the answer before you act on it.

Prompt

Improved prompt

Our fuller version of the source's prompt, with fill-in details and rules, or one written to avoid what went wrong. Not tested by the poster.

What the prompt labels mean

Our fuller version of the person's prompt. They didn't use this version, and we haven't tested it.

Run this task now, exactly as written below. Everything you need is here, so start straight away and only stop if something required is missing.

Goal: Clean up my pending sent invitations without getting stuck.

Fill in before running: How many are pending, and should any be kept?

What I'll give you:
- Access to my LinkedIn (I'll sign in)
- Any names to keep

Rules:
- Never withdraw anyone on my keep list.
- Start with a batch of 10. If that goes smoothly, continue in batches of 50 and report progress after each batch.
- Keep a list of who was withdrawn.
- If scrolling or a button stops working twice, stop and tell me rather than retrying endlessly.
- If LinkedIn shows a warning or limit, stop for the day instead of continuing.
- If it's too slow, suggest a safer alternative (e.g., doing it in sessions) instead.

Output: A running count withdrawn, the list, and where you stopped.

You'll know it worked when: the count goes down steadily, and I know where it stopped.

Try this in:

This prompt has blanks to fill in. We'll copy it instead of filling it in, so you can edit it before you send.

The source used Perplexity agent mode, which can take actions in a browser or app. These are general chat tools, so results may differ, and a normal chat may only give you a plan.

Opens in a new tab. We don't see what you send.

These links are only a shortcut. We're not affiliated with OpenAI, Google, Anthropic or xAI, and your results may not match the source.

The prompt they actually used (our rebuild)

The source didn't share its exact prompt, so we wrote this from what it describes.

Go through my sent invitations and click Withdraw on each one.
Optional stronger version

Our rewrite with extra checks. The poster didn't test it.

Run this task now, exactly as written below. Everything you need is here, so start straight away and only stop if something required is missing.

Goal: Withdraw my old pending LinkedIn invitations reliably without getting stuck.

Inputs (fill in or confirm):
- LinkedIn access (I sign in)
- Names to keep
- How old an invite must be to withdraw

Rules:
- Work in batches of 10 and report progress after each batch.
- Re-load the sent-invitations page after each batch.
- If a button stops working twice, stop and suggest a scripted or manual approach.
- Keep a log of withdrawn names.
- Pause if LinkedIn warns you.
- Never withdraw invites to names on my keep list.
- Stop if LinkedIn shows a limit or error and tell me.

What went wrong before, and how to avoid it:
- Last time it stalled after about 5 withdrawals: reload between batches and stop early with an alternative if it stalls.

If you get stuck: If LinkedIn shows a limit warning, stop for the day. If a login, CAPTCHA or two-step code appears, stop and ask me to handle it; never guess or store passwords.

Verify before you finish: Compare the pending count before and after.

Output: Withdrawn count and log.

Done when: invitations are withdrawn steadily without stalling.

AI tool

Perplexity agent mode

Known limitations

FailureThe source says the AI did not get the job done.

What went wrong: Stuck after about 5 withdrawals; the poster switched to a script.

What to try next: The source says: “So I asked Perplexity to write me a Cursor prompt for a Python/Selenium script instead.”

Source

Posted
by @BenyaminHolley
Last checked
Method:
How we verify

https://x.com/BenyaminHolley/status/1971210280395808873

Tell us how it went A reader message. It is not published on this page, and it is not a test of the prompt.

More in Business admin & workflows

More in OpsRandom case in Ops