Back/Sales/Codex
IntermediateSales

How to Automate LinkedIn Messaging with AI Browser Control

Process a bounded set of LinkedIn requests with explicit acceptance rules and a reviewable action log.

How to Automate LinkedIn Messaging with AI Browser Control

33:46 to 35:47: Claire gives GPT-5.6 browser control a LinkedIn page and rules for which connection requests to accept, then watches it work through the interface.

Before you start

What you need

  • An authenticated LinkedIn session
  • A bounded inbox or request list
  • Clear accept, decline, skip, and stop rules

What you’ll make

A completed batch whose actions and skipped decisions are recorded for review.

Tools used

  • Codex

    OpenAI's cloud-based AI software engineering agent that can execute code, run tests, and handle complex multi-file tasks autonomously.

    VisitCodex

Step by step

The workflow

Follow the sequence once, then adapt the prompts, checks, and handoffs to your own setup.

5 steps

Step01

Navigate to Your Target Web Page

In your Chrome browser, open the page you want to automate and ensure you are logged in. For this workflow, navigate to your LinkedIn messages page.

Example prompt
Open the exact LinkedIn request queue and do not navigate to unrelated pages.
Step02

Activate AI Browser Control

In your AI tool, such as Codex, type the command to activate browser control. For example, enter @Chrome to give the AI control of your active Chrome tab.

Example prompt
Enable browser control for this tab and confirm the requested batch limit.
Step03

Provide a Detailed, Rules-Based Prompt

Provide a detailed prompt that defines the task and includes strict, non negotiable criteria. For managing an inbox, specify what makes a message high value, such as the sender's job title or company tier, to ensure the AI only acts on the correct items.

Example prompt
For the next [number] requests: accept only when [visible rules], decline only when [rules], and skip anything ambiguous. Never send a message.
Step04

Execute and Monitor the Automation

Execute the prompt and let the AI begin working in the browser. Monitor the AI's first few actions in real time to confirm it is correctly interpreting your rules before letting it run unsupervised.

Example prompt
Process one profile at a time, log name, visible evidence, decision, and action, then stop on any warning or challenge.
Step05

Review the Results

After the automation finishes, review the actions it took, such as messages sent and connections accepted. Verify their quality and accuracy to refine your prompt for next time. The author noted it successfully processed hundreds of messages.

Example prompt
Compare the final log with LinkedIn state and report accepted, declined, skipped, and untouched counts.

What good looks like

  • Every action matches a stated rule
  • Ambiguous profiles are skipped rather than guessed
  • The run stops at the requested batch size or risk condition

Build your next product with ChatPRD

Turn an idea into a PRD, user stories, and a plan.

Try ChatPRD free

After the steps

Runbook notes

How to recover when the loop fails and where human judgment helps.

Recover

If it goes sideways

The rules rely on subjective fit
Translate them into visible profile signals and examples.
The agent acts on an ambiguous profile
Require skip plus reason whenever a rule cannot be proven.
The site changes or presents a warning
Stop immediately and preserve the current action log.

Start shipping
better products.

Join 100,000+ product managers who use ChatPRD to write better docs, align teams faster, and build products users love.

Free to start
No credit card
SOC 2 certified
Enterprise ready