LinkedIn

Add a bot to LinkedIn using the official integration.

The official LinkedIn integration allows your bot to create and delete posts from your LinkedIn account.

Setup

    In Botpress Studio, select Explore Hub in the upper-right corner.

    Search for the LinkedIn integration, then select Install Integration.

    In the Configuration menu, select Authorize LinkedIn.

    Follow the on-screen instructions to connect Botpress to your LinkedIn account.

    For advanced use cases, you can manually configure the integration using your own LinkedIn application and OAuth credentials.

    Step 1: Create a LinkedIn application

    Go to the LinkedIn Developer Portal and select Create app.

    Fill in the required fields:

    • App name
    • LinkedIn Page
    • App logo

    Select Create app.

    Step 2: Configure OAuth settings

    In your LinkedIn application settings, navigate to the Products tab.

    Request access to the following products:

    • Share on LinkedIn — required for posting content
    • Sign In with LinkedIn using OpenID Connect — required for authentication

    Navigate to the Auth tab.

    Under OAuth 2.0 settings, add the following redirect URL:

    https://webhook.botpress.cloud/oauth

    Copy your Client ID and Client Secret — you’ll need them to configure the integration in Botpress.

    Step 3: Obtain an authorization code

    Construct the authorization URL by replacing YOUR_CLIENT_ID in the following URL with your actual Client ID:

    https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=YOUR_CLIENT_ID&redirect_uri=https://webhook.botpress.cloud/oauth&scope=openid%20profile%20email%20w_member_social&state=manual

    Visit this URL in your browser while logged into the LinkedIn account you want to use with the integration.

    Follow the on-screen instructions to authorize the application.

    You will be redirected to webhook.botpress.cloud. Do not close this page.

    Copy the authorization code from the URL in your browser’s address bar.

    Step 4: Configure the integration in Botpress

    In Botpress Studio, select Explore Hub in the upper-right corner.

    Search for the LinkedIn integration, then select Install Integration.

    In the Configuration menu, select the drop-down and choose Manual.

    Fill in the integration’s configuration fields:

    Client ID

    Paste the Client ID you copied from the Auth tab in the LinkedIn Developer Portal.

    Client Secret

    Paste the Client Secret you copied from the Auth tab in the LinkedIn Developer Portal.

    Authorization Code

    Paste the authorization code you obtained in Step 3.

    When you’ve filled in all the fields, select Save Configuration.


    Cards

    Create Post

    Create a LinkedIn post with optional image or article link

    inputobject
    outputobject

    Delete Post

    Delete a LinkedIn post created by the authenticated user

    inputobject
    outputobject

    Triggers