| name | unipile-linkedin |
| description | Interact with LinkedIn via Unipile API - send messages, view profiles, manage connections, create posts, react to content. Use when the user asks to message someone on LinkedIn, check LinkedIn messages, view LinkedIn profiles, send connection requests, create LinkedIn posts, or interact with LinkedIn content. |
Unipile LinkedIn
Access LinkedIn through the Unipile API using the CLI script.
Setup
Requires environment variables in ~/.openclaw/workspace/TOOLS.md or shell:
UNIPILE_DSN - Your Unipile API endpoint (e.g., https://api1.unipile.com:13111)
UNIPILE_ACCESS_TOKEN - Your Unipile access token
Get credentials from dashboard.unipile.com.
Usage
Run commands via the CLI script:
./scripts/linkedin.mjs <command> [options]
Commands
Account Management
./scripts/linkedin.mjs accounts
./scripts/linkedin.mjs account <account_id>
Messaging
./scripts/linkedin.mjs chats [--account_id=X] [--limit=N] [--unread]
./scripts/linkedin.mjs chat <chat_id>
./scripts/linkedin.mjs messages <chat_id> [--limit=N]
./scripts/linkedin.mjs send <chat_id> "<text>"
./scripts/linkedin.mjs start-chat <account_id> "<text>" --to=<user_id>[,<user_id>] [--inmail]
Profiles
./scripts/linkedin.mjs profile <account_id> <identifier> [--sections=experience,education,skills] [--notify]
./scripts/linkedin.mjs my-profile <account_id>
./scripts/linkedin.mjs company <account_id> <identifier>
./scripts/linkedin.mjs relations <account_id> [--limit=N]
Invitations
./scripts/linkedin.mjs invite <account_id> <provider_id> ["message"]
./scripts/linkedin.mjs invitations <account_id> [--limit=N]
./scripts/linkedin.mjs cancel-invite <account_id> <invitation_id>
Posts
./scripts/linkedin.mjs posts <account_id> <identifier> [--company] [--limit=N]
./scripts/linkedin.mjs post <account_id> <post_id>
./scripts/linkedin.mjs create-post <account_id> "<text>"
./scripts/linkedin.mjs comments <account_id> <post_id> [--limit=N]
./scripts/linkedin.mjs comment <account_id> <post_id> "<text>"
./scripts/linkedin.mjs react <account_id> <post_id> [--type=like|celebrate|support|love|insightful|funny]
Attendees
./scripts/linkedin.mjs attendees [--account_id=X] [--limit=N]
Examples
./scripts/linkedin.mjs chats --unread
./scripts/linkedin.mjs send "abc123" "Thanks for connecting!"
./scripts/linkedin.mjs profile "myaccount" "john-doe-123" --sections=experience,about
./scripts/linkedin.mjs invite "myaccount" "jane-smith-456" "Hi Jane, let's connect!"
./scripts/linkedin.mjs create-post "myaccount" "Excited to announce our new product launch! 🚀"
./scripts/linkedin.mjs react "myaccount" "post789" --type=celebrate
Notes
identifier can be a LinkedIn user ID or profile URL slug
account_id is your connected LinkedIn account ID (get from accounts command)
- Use
--inmail flag when messaging non-connections (requires LinkedIn Premium)