integrations/linkedin/hub.md
Connect your Botpress chatbot to LinkedIn to share posts and engage with your professional network. This integration enables your bot to interact with LinkedIn's API using OAuth authentication.
The LinkedIn integration requires OAuth authentication to establish a secure connection between Botpress and LinkedIn. You can configure the integration using either automatic or manual configuration methods.
To set up the LinkedIn integration using automatic configuration, click the authorization button and follow the on-screen instructions to connect your Botpress chatbot to LinkedIn.
When using this configuration mode, a Botpress-managed LinkedIn application will be used to connect to your LinkedIn account. Actions taken by the bot will be attributed to the LinkedIn account that authorized the connection.
To set up the LinkedIn integration manually, you must create a LinkedIn application and configure OAuth credentials. You will also need to obtain an authorization code and configure the integration in Botpress.
Create app button.Create app to create your application.Products tab.Share on LinkedIn - Required for posting contentSign In with LinkedIn using OpenID Connect - Required for authenticationAuth tab.OAuth 2.0 settings, add the following redirect URL:
https://webhook.botpress.cloud/oauth
Construct the authorization URL with your 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
Replace
YOUR_CLIENT_IDwith your actual Client ID.
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.
The authorization code is the string that appears after
code=in the URL.
You may now safely close this page.
Manual configuration mode in the Botpress integration settings.The authorization code is only valid for a short period of time. If the code has expired, you will need to repeat the authorization steps to obtain a new code.