LinkedIn Automator
Automate your LinkedIn presence: post content, track engagement, generate content ideas, and grow your audience.
Prerequisites
- Browser tool enabled in OpenClaw
- LinkedIn logged in via browser (use profile with active LinkedIn session)
Quick Commands
# Post content
{baseDir}/scripts/post.sh "Your post content here"
# Post with image
{baseDir}/scripts/post.sh "Content" --image /path/to/image.png
# Get engagement stats for recent posts
{baseDir}/scripts/analytics.sh
# Generate content ideas based on trending topics
{baseDir}/scripts/ideas.sh [topic]
# Engage with feed (like/comment on relevant posts)
{baseDir}/scripts/engage.sh --limit 10
# Schedule a post (requires OpenClaw cron)
{baseDir}/scripts/schedule.sh "Your content" --time "09:00"
Workflows
Posting Content
Use browser automation to post:
- Navigate to
linkedin.com/feed - Click "Start a post" button
- Enter content in the post editor
- Optionally attach media
- Click "Post" button
For scheduled posts, use OpenClaw cron:
cron add --schedule "0 9 * * 1-5" --payload "Post my LinkedIn content: [content]"
Content Strategy
See references/content-strategy.md for:
- High-engagement post formats and hook templates
- Best posting times by region
- Hashtag strategies (3-5 tags, mix broad + niche)
- The 4-1-1 posting rule
Engagement Automation
See references/engagement.md for:
- Comment templates and reply strategies
- Engagement workflows to grow reach
- Growth tactics and connection request limits
Analytics Tracking
The analytics script extracts:
- Impressions per post
- Engagement rate (likes + comments + shares / impressions)
- Profile views trend
- Follower growth
- Top performing content themes
Browser Selectors
Key LinkedIn selectors (as of 2026):
Post button: button[aria-label="Start a post"]
Post editor: div.ql-editor[data-placeholder]
Submit post: button.share-actions__primary-action
Like button: button[aria-label*="Like"]
Comment button: button[aria-label*="Comment"]
Profile stats: section.pv-top-card-v2-ctas
Rate Limits
LinkedIn enforces activity limits. Stay under:
- Posts: 2–3 per day max
- Comments: 20–30 per day
- Connection requests: 100 per week
- Profile views: Natural browsing pace only
Troubleshooting
- Login required: Ensure browser profile has an active LinkedIn session
- Rate limited: Reduce activity, wait 24h before resuming
- Selector not found: LinkedIn may have updated UI — check and update selectors
- Post blocked: Review LinkedIn content policies; avoid spam-like patterns