Slot usage
1 slot
Estimated execution time
~1 minute per query
What you'll need
- A Connected LinkedIn account (use the PhantomBuster browser extension)
- A LinkedIn Leads list (required: this Phantom only works with Leads Database profiles)
- A prompt template or custom prompt for generating comments or messages
-
Available PhantomBuster AI credits
→ See the full breakdown of all input fields in the detailed section below.
What you’ll get
- AI-generated LinkedIn comments or outreach messages
-
URL of the post commented on
→ See the full breakdown of all output fields in the detailed section below.
Before you start
- AI Phantoms don’t extract or post anything on your behalf, they use the data you already have to generate AI-written messages, insights, or other text results (depending on the Phantom you’re using).
-
Awareness of safety and limits:
- This Phantom only generates comments for posts published in the last 30 days.
- If a lead hasn’t posted recently, the result will show: “No posts found on that profile's last activity.”
Step 1: Select the leads to enrich
This Phantom only accepts leads from your LinkedIn Leads database.
→ This ensures the generated AI comments are linked back to your Leads Database and visible when filtering or reviewing activity there.
-
My Lists:
Choose a saved LinkedIn Leads list you’ve already created in PhantomBuster. -
A URL:
The URL of a single LinkedIn profile, that must be in your LinkedIn Leads database.
Step 2: Connect your LinkedIn account
To let the Phantom act on your behalf:
- Install the PhantomBuster browser extension and connect your LinkedIn session in one click.
- If you’re not using Chrome or Firefox, you can retrieve your session cookie manually (see our cookie guide).
Check your browser user agent
Make sure your browser is up to date before connecting your account.
→ If your Chrome or Firefox version is outdated, your session cookie may expire much more quickly, and you’ll need to reconnect often.
Step 3: Choose your GPT model and add your prompt
-
Select a GPT Model you want to use:
- GPT 3.5 Turbo – basic, lowest cost.
- GPT 4o – advanced, higher cost.
- GPT 4o Mini – enhanced, moderate cost (recommended default).
- (Legacy) GPT-4 – medium capabilities, highest cost.
-
Select a prompt template or write your own:
Output depends on your prompt. What you get in your result files changes based on the type of prompt you choose.
- Use one of the pre-written prompt templates:
- Connect based on recent posts and profile data (LinkedIn Connection Message) → The Phantom will produce the message only.
- Pitch your product based on recent posts (LinkedIn Connection Message) → The Phantom will produce the message only.
- Comment on a recent post (LinkedIn Comment) → The Phantom will produce both the comment and postUrl.
-
Edit a template directly:
- Once selected, the full prompt text appears in the editor.
- You can adapt the instructions to your specific needs (e.g., change the tone, add formatting rules, etc.).
- Or create a custom prompt tailored to your needs.
- The more specific your instructions, the better the output.
- Use one of the pre-written prompt templates:
-
Specify columns to feed to GPT:
- Decide which data GPT should use:
- All LinkedIn Leads Data (recommended for best results).
- Or Custom selection → Specify only certain fields (e.g., firstName, job, company).
- Only the columns you select will be passed to GPT, make sure they contain the info needed for your prompt.
- Decide which data GPT should use:
AI Phantoms require all selected fields to be present in your input data to function correctly.
For example, if your prompt references First name and Last name but some leads don’t include those fields, the Phantom will return this warning:
“All input data has been filtered out. Ensure it contains the properties specified in the property list.”
→ If some data is missing, first run a LinkedIn Profile Scraper to enrich your leads before using this AI Phantom.
Advanced settings (dropdown in setup)
-
Name your results file (optional)
-
You can customize the file name.
If you rename the file between launches, the Phantom will create a new results file and start processing inputs from scratch.
-
-
Fields to keep (optional)
- Export only the fields you care about by listing them (comma-separated).
Example: profileUrl, job, location. - This generates a second CSV file with just those fields.
- Learn more in our guide: Customize how your Phantom results files are saved.
- Export only the fields you care about by listing them (comma-separated).
Step 4: Decide how many leads to process
You can control processing:
- Test mode: Run prompt on the first 10 leads (AI output overwrites each time) - Recommended for testing
- Partial run: Run prompt on a select number of leads.
- Full run: Run prompt on all leads (Phantom resumes where it left off, no duplicates).
Testing first saves AI credits before scaling.
Step 5: Select launch frequency
Choose how often the Phantom should run:
- Launch manually: Start the Phantom yourself whenever you need.
- Launch once at a specific time: schedule a one-time run at a set date and time.
- Launch repeatedly: schedule regular runs (e.g. once per day, several times during working hours).
- Launch after another Phantom: chain automations together so this Phantom starts right after another finishes.
- Advanced scheduling: customize the exact minutes, hours, days, or months when the Phantom should run.
→ For a complete walkthrough of scheduling options, see our guide to scheduling Phantoms automatically.
Step 6 (Optional): Advanced settings
Advanced settings are available if you want to fine-tune how your Phantom runs, but by default they’re already optimized for most use cases.
We recommend leaving them as they are unless a guide specifically instructs you to change something.
→ For a detailed overview of all advanced options (like execution limits, retries, email notifications, proxies, webhooks, and file management), see our Advanced settings guide.
Launch and results
When you’re ready:
- Click Launch to start your Phantom.
- Once it finishes, open the Results tab in the Phantom console.
- Download your results as a CSV or JSON file.
- You’ll see two output files after each run:
- Results CSV → Your main results file, containing the AI-generated comments or messages, plus the post details used for generation.
- {csvName}_activities.csv → A secondary file listing the posts extracted from each profile. It includes all posts the Phantom reviewed, even those filtered out before GPT generation.
- You’ll see two output files after each run:
→ To learn how to export your data to Google Sheets, integrate with other tools, or reuse it in more automations, check our Access and Export your Phantom Results guide.
Export and input limits on the Free plan
If you’re on the Free plan or Free trial, some features are limited:
- CSV exports include only the first 10 rows of results.
- CSV download links (for dynamic viewing in Google Sheets or integrations) are not available.
- JSON exports are not available.
- CSV upload as an input method is not supported.
To unlock all features, you’ll need to upgrade to a paid plan.
What this Phantom generates
- The Phantom generates outputs based on your chosen prompt:
- AI comments if you selected the “Comment on a recent post” template.
- AI messages for other templates (like connection or outreach).
- The AI LinkedIn Post Responder only writes comments for posts published in the last month. If no recent posts are found for a profile, the output will show: “No posts found on that profile's last activity.”
How post selection works
When you use a comment-based prompt, like “Comment on a recent post”, here’s what happens behind the scenes:
- The Phantom looks at your lead’s 10 most recent LinkedIn posts.
- It automatically ignores:
- Posts older than 30 days.
- Reposts or shared content.
- From what remains, it keeps the 3 latest posts and sends them to GPT.
Each post includes details like:- postContent, postDate, and postUrl
- likeCount, commentCount, and repostCount
- GPT then:
- Chooses one post to comment on.
- Writes a personalized comment for it.
- In your results file, the postUrl column shows exactly which post was chosen.
When using other prompt types (like connection messages or outreach), the Phantom doesn’t perform this post-scraping step, it generates your AI message based on profile data.
Use your AI-generated comments with LinkedIn Auto Commenter
After running this Phantom, you can automate posting the comments it generated:
-
Export your results to Google Sheets:
- Your results file will include a column called ai_message, where the generated comments are stored.
- Export this file to Google Sheets manually or set up a dynamic export.
- Follow our guide: How to export data to Google Sheets.
-
Open the LinkedIn Auto Commenter Phantom:
- Go to the setup page for the LinkedIn Auto Commenter.
- Paste the link to your Google Sheet in the Input step.
-
Map your columns:
- Select the column containing the LinkedIn post URLs.
- Select ai_message as the column containing the comments.
-
Complete the setup and launch:
- Finalize your LinkedIn Auto Commenter setup.
- Launch the Phantom to automatically post the AI-generated comments on your leads’ most recent LinkedIn activity.
Each lead will receive a personalized AI-written comment on their latest LinkedIn post (if posted within the last 30 days).
What you give (Input) and What you get (Output)
This section gives you a detailed breakdown of everything you need to provide to run this Phantom, and everything you’ll receive once it completes.
What you give (Input)
| Type | Description |
|---|---|
| LinkedIn cookie | Your LinkedIn session cookie |
| User agent | Your browser’s user agent. This is detected automatically when you connect your LinkedIn account using the PhantomBuster browser extension (Chrome or Firefox). |
| LinkedIn profiles | LinkedIn profile URLs |
What you get (Output)
| Type | Description |
|---|---|
| message | The AI-generated message |
| comment | The AI-generated comment |
| postUrl | The URL of the post commented on |
Tips and troubleshooting
Common pitfalls
- Using a private spreadsheet (make sure it’s set to “Anyone with the link”).
- Expecting comments on old posts → the Phantom only checks posts from the last 30 days.
- Forgetting to test prompts → always start with 10 leads before scaling.
If you run into errors or account issues
- Check how to troubleshoot your phantom using Logs.
- Browse the Fix Issues & Troubleshoot Errors section for solutions to common problems.
- Review our Automation Rate Limits by Platform guide.
- Check our Best Practices for Social Media Automation guide.
Suggested automations
After generating AI-powered comments, you can:
- Automate posting → with LinkedIn Auto Commenter.
- Warm up leads → with LinkedIn Auto Liker.
- Enrich leads further → with AI LinkedIn Profile Enricher.