Use cases and templates: LinkedIn integration for AI agents
Use LinkedIn to publish to your personal feed and retrieve your profile information from a workflow.
OAuth scopes
Sim requests these scopes when someone connects a LinkedIn account. For a self-hosted deployment, register your own app with the provider using the settings below. See Integrations and OAuth for setup.
| Setting | Value |
|---|---|
| Redirect URI | <NEXT_PUBLIC_APP_URL>/api/auth/oauth2/callback/linkedin |
| Environment variables | LINKEDIN_CLIENT_ID, LINKEDIN_CLIENT_SECRET |
| Scope | Description |
|---|---|
profile | Access profile information |
openid | Standard authentication |
email | Access email address |
w_member_social | Post, comment, and like posts on your behalf |
Use the block
Share posts to your personal feed and access your LinkedIn profile information.
Actions
Share Post on LinkedIn
Share a post to your personal LinkedIn feed
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The text content of your LinkedIn post |
visibility | string | No | Who can see this post: "PUBLIC" or "CONNECTIONS" (default: "PUBLIC") |
Output
| Parameter | Type | Description |
|---|---|---|
success | boolean | Operation success status |
postId | string | Created post ID |
profile | json | LinkedIn profile information |
error | string | Error message if operation failed |
Get LinkedIn Profile
Retrieve your LinkedIn profile information
Input
| Parameter | Type | Required | Description |
|---|
Output
| Parameter | Type | Description |
|---|---|---|
success | boolean | Operation success status |
postId | string | Created post ID |
profile | json | LinkedIn profile information |
error | string | Error message if operation failed |