🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

storyagent_linkedin

by @sudhanshu746

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.

Versionv1.0.0
Downloads1,542
TERMINAL
clawhub install unipile-linkedin

πŸ“– About This Skill


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  [options]
    

    Commands

    Account Management

    ./scripts/linkedin.mjs accounts                    # List connected accounts
    ./scripts/linkedin.mjs account         # Get account details
    

    Messaging

    ./scripts/linkedin.mjs chats [--account_id=X] [--limit=N] [--unread]   # List chats
    ./scripts/linkedin.mjs chat                                    # Get chat details
    ./scripts/linkedin.mjs messages  [--limit=N]                   # List messages in chat
    ./scripts/linkedin.mjs send  ""                          # Send message
    ./scripts/linkedin.mjs start-chat  "" --to=[,] [--inmail]  # Start new chat
    

    Profiles

    ./scripts/linkedin.mjs profile   [--sections=experience,education,skills] [--notify]
    ./scripts/linkedin.mjs my-profile                           # Your own profile
    ./scripts/linkedin.mjs company                  # Company profile
    ./scripts/linkedin.mjs relations  [--limit=N]               # Your connections
    

    Invitations

    ./scripts/linkedin.mjs invite   ["message"]    # Send connection request
    ./scripts/linkedin.mjs invitations  [--limit=N]             # List pending invites
    ./scripts/linkedin.mjs cancel-invite         # Cancel invitation
    

    Posts

    ./scripts/linkedin.mjs posts   [--company] [--limit=N]  # List posts
    ./scripts/linkedin.mjs post                                # Get post
    ./scripts/linkedin.mjs create-post  ""                        # Create post
    ./scripts/linkedin.mjs comments   [--limit=N]              # List comments
    ./scripts/linkedin.mjs comment   ""                  # Add comment
    ./scripts/linkedin.mjs react   [--type=like|celebrate|support|love|insightful|funny]
    

    Attendees

    ./scripts/linkedin.mjs attendees [--account_id=X] [--limit=N]           # List chat contacts
    

    Examples

    # List all chats, only unread
    ./scripts/linkedin.mjs chats --unread

    Send a message

    ./scripts/linkedin.mjs send "abc123" "Thanks for connecting!"

    View someone's profile with experience section

    ./scripts/linkedin.mjs profile "myaccount" "john-doe-123" --sections=experience,about

    Send connection request with note

    ./scripts/linkedin.mjs invite "myaccount" "jane-smith-456" "Hi Jane, let's connect!"

    Create a LinkedIn post

    ./scripts/linkedin.mjs create-post "myaccount" "Excited to announce our new product launch! πŸš€"

    React to a post

    ./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)
  • πŸ’‘ Examples

    # List all chats, only unread
    ./scripts/linkedin.mjs chats --unread

    Send a message

    ./scripts/linkedin.mjs send "abc123" "Thanks for connecting!"

    View someone's profile with experience section

    ./scripts/linkedin.mjs profile "myaccount" "john-doe-123" --sections=experience,about

    Send connection request with note

    ./scripts/linkedin.mjs invite "myaccount" "jane-smith-456" "Hi Jane, let's connect!"

    Create a LinkedIn post

    ./scripts/linkedin.mjs create-post "myaccount" "Excited to announce our new product launch! πŸš€"

    React to a post

    ./scripts/linkedin.mjs react "myaccount" "post789" --type=celebrate

    βš™οΈ Configuration

    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.

    πŸ“‹ Tips & Best Practices

  • 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)