LinkedIn Comments
LinkedIn Comments connects your company's LinkedIn Page so your AI agent and your live agents can read the comments people leave on the Page's posts and reply to them, without leaving the platform. Every reply is posted on LinkedIn under the comment, in the name of your Page.
This channel is in Beta. Replies are posted publicly on LinkedIn in the name of your Page, so start with a test Page rather than your main, public-facing one.
Overview
After you connect a LinkedIn Page:
- New comments come in on their own. When someone comments on a post published by your Page, LinkedIn notifies the platform, and the comment usually appears within a few seconds. Comments posted before you connected are not brought in.
- Each comment becomes a conversation. Every new top-level comment (a comment made directly on the post) starts its own conversation. Replies under that comment join the same conversation.
- Your AI agent can answer. A new top-level comment is answered like any other incoming message. Inside a comment thread, your AI agent answers once your Page has already replied in that thread. Other replies in the thread, for example people talking to each other, are saved so you have the full context, but they don't trigger an automatic answer.
- Your team can reply from the Inbox. Live agents see the comments in the Inbox and reply there.
- Replies are public. Every reply, whether it comes from your AI agent or from an agent, is posted on LinkedIn under the top-level comment as your Page, with your Page's name and logo. Anyone who can see the post can see the reply.
Who it's for
- Admins connect the LinkedIn Page and decide whether a new comment should start a specific flow.
- Agents read and reply to comment conversations from the Inbox.
What you need before you connect
- A LinkedIn account. This is a normal personal LinkedIn profile. You sign in with it on LinkedIn's own sign-in screen; the platform never sees your LinkedIn password.
- A LinkedIn Page for your organization. A LinkedIn Page (also called a Company Page) is the public page of a company, brand or institution. Personal profiles can't be connected.
- The Super admin role on that Page. The account you sign in with must be a Super admin of the Page. The other Page roles, such as Content admin and Analyst, are not enough, because LinkedIn only sends a Page's comments to an app that a Super admin connected.
- Pop-ups allowed in your browser for the platform, because LinkedIn's sign-in opens in a pop-up window.
Create a LinkedIn Page
Skip this if your organization already has a LinkedIn Page.
- Sign in to LinkedIn on a computer.
- Click For Business in the upper-right corner of your LinkedIn homepage, then click Create a Company Page.
- Choose the type of Page: Company, Showcase page or Educational institution.
- Fill in the Page details, such as the name, LinkedIn public URL, industry and logo.
- Select the verification box to confirm that you have the right to act on behalf of the organization.
- Click Create page.
The person who creates a Page automatically becomes its Super admin, so this account is ready to connect.
Give an account the Super admin role
If the person who will connect the Page isn't a Super admin yet, an existing Super admin of the Page can add them:
- Open your Page on LinkedIn in the admin view.
- Click Settings in the left menu, then click Manage admins.
- On the Page admins tab, click Add admin.
- Search for the person by name and select them.
- Choose the Super admin role and click Save.
LinkedIn only lets a Super admin add someone who is a 1st, 2nd or 3rd-degree connection of theirs and who follows the Page. A member can also request admin access from the Page, and a Super admin then approves the request.
To check your own role, ask a Super admin to look at Settings > Manage admins on the Page.
Connect your LinkedIn Page
- On the switcher, click Channels.
- Click Social, then click LinkedIn Comments.
- Click Sign in with LinkedIn. LinkedIn's sign-in opens in a pop-up window.
- Sign in with the LinkedIn account that is a Super admin of your Page.
- Review the permissions LinkedIn shows and click Allow. The pop-up closes on its own.
- What happens next depends on how many Pages that account manages:
- One Page: the Page connects right away and you see LinkedIn Comments account added successfully.
- More than one Page: choose the Page from the Organization list and click Save.
- No Page: you see No LinkedIn page found. Click Sign in again and sign in with an account that is a Super admin of the Page.
Once connected, the Page appears on the channel with its name under Organization. To connect another Page to the same AI agent, click Add account and repeat the steps.
If LinkedIn signs you straight back in with the wrong account, sign out of LinkedIn in that browser first, or use a private window, and then click Sign in with LinkedIn again.
The permissions you're asked to allow
LinkedIn asks you to allow a set of permissions in one step. This is what the platform uses them for:
| Permission LinkedIn asks for | What the platform does with it |
|---|---|
| Manage your organization's Pages | Finds the Pages your account manages and confirms that you're a Super admin of the one you connect. |
| Read your organization's posts and their comments | Picks up new comments and the post each comment belongs to. |
| Post comments on behalf of your organization | Posts the replies from your AI agent and your agents, including replies with an image. |
The platform only reads comments and posts the replies you send. It doesn't publish new posts, react to posts, or edit or delete anything on your Page.
Handle comments in the Inbox
Open the Inbox and select a LinkedIn conversation.
- The post overview is a summary of the post. It shows the opening text of the post, a link to Open post on LinkedIn, and the total number of comments LinkedIn shows for the post, replies included.
- A comment conversation holds one top-level comment and every reply under it, including your AI agent's and your agents' replies. Replies from your Page carry an Author badge.
- Images and GIFs in a comment appear in the conversation. Other kinds of media may appear as a placeholder with a View on LinkedIn link.
When you reply as an agent, your reply is posted under the top-level comment, because a LinkedIn comment thread is a single level of replies. It posts exactly as you typed it.
What a reply can contain:
- Text.
- One image in JPG, PNG or GIF format, up to 15 MB, with or without text.
Files, videos, audio and documents can't be posted on LinkedIn. A reply that has only those fails with LinkedIn comment replies support text and images only. Buttons, quick replies and cards can't be shown on LinkedIn either; if such a message also has text, only the text is posted.
LinkedIn limits the length of a comment, to about 1,250 characters, and how many comments can be posted in a short time. If LinkedIn rejects a reply, it's marked as failed in the conversation. Keep replies short.
Who commented: names and photos
People who comment as themselves appear as LinkedIn member with an ID (a short code such as yZ_AbC12dE) instead of their name and profile photo. This is expected, and it can't be changed in the platform.
LinkedIn decides this, not the platform:
- When LinkedIn sends a comment to an app, it identifies the person only by an ID.
- Names, photos and other profile details are only available through LinkedIn's Profile API. LinkedIn restricts that API to developers it approves.
- LinkedIn's terms don't allow an app to store the profile details of anyone other than the person who signed in to the app. Here, that's your Page's admin, not the people commenting.
So the platform can't show a commenter's name, headline, photo, email address or phone number. It also can't message them privately.
Comments made by a company, in the name of its own LinkedIn Page, show that Page's name.
To see who a member is, click Open post on LinkedIn and find the comment on LinkedIn.
Trigger a flow on a new comment
By default, a new comment arrives as a normal message and your AI agent answers it. If you'd rather have a new comment start a specific flow, for example to create a ticket for your team, enable the LinkedIn comment event.
- In Studio, click Scheduler in the left menu. The Events page opens.
- Click LinkedIn Comment events.
- On the
linkedincomment-replyrow, open the actions menu and click Activate. The status changes to Active. - In your flow, set the Start trigger to Event and choose
linkedincomment-reply.
The event fires when someone posts a new top-level comment on a post of the connected Page. Replies inside an existing comment thread don't trigger it; they continue as normal messages. Activate the event only once a flow starts on it.
Inside the flow, the event's details are available as variables:
| Value | What it holds |
|---|---|
{{{data.event.data.message}}} | The text of the comment. |
{{{data.event.data.userName}}} | The commenter's member ID, or the company's name if a company commented. |
{{{data.event.data.postUrn}}} | LinkedIn's ID for the post. |
{{{data.event.data.commentUrn}}} | LinkedIn's ID for the comment. |
Some nodes, such as Raise ticket, only accept a variable. Add a Variables node first that copies these values into variables, then pick those variables in the next node.
For more about events, see Trigger actions based on Events.
Good to know
- Connect each Page in only one place. A LinkedIn Page should be connected to one AI agent, in one environment, at a time. The development, staging and production environments of the same AI agent each count as a separate connection, and so does each region. Before you connect a Page somewhere new, disconnect it where it's connected now. If the same Page is connected in two places, new comments reach only one of them, and disconnecting either one can stop comments for both.
- Disconnecting can affect other connections. If you used the same LinkedIn account to connect more than one AI agent, disconnecting one may also stop the others. Reconnect the ones you still need.
- The connection lasts up to a year. LinkedIn keeps the connection signed in for up to 12 months from when you connect. After that, LinkedIn requires a Super admin to sign in again: disconnect and connect again. If LinkedIn can't renew the connection automatically, the platform warns you when you connect, and the connection lasts 60 days instead.
- When a connection stops working. It also stops if the person who connected loses the Super admin role, if their LinkedIn account is closed, or if LinkedIn withdraws the access. Connect again with a current Super admin.
- Only comments on your Page's public posts are picked up. Comments on posts that aren't visible to the public, mentions of your Page in other people's posts, private messages and reactions are not.
- Your team's replies on LinkedIn stay on LinkedIn. Replies someone posts directly on LinkedIn, outside the platform, don't appear in the Inbox. Edits and deletions made on LinkedIn are not reflected either.
- A comment can occasionally be missed. If the platform can't take in a comment, for example during a brief outage, LinkedIn keeps retrying for up to 8 hours. A comment that still isn't delivered stays on LinkedIn but doesn't appear in the platform.
Disconnect
- On the switcher, click Channels.
- Click Social, then click LinkedIn Comments.
- On the Page you want to remove, click Disconnect and confirm.
Disconnecting stops new comments from coming in, stops replies from being posted, and withdraws the access the platform holds on your LinkedIn account. Conversations you already have stay in the Inbox.
You can also remove the platform's access from LinkedIn itself:
- Click Me, then Settings & Privacy.
- Click Data privacy.
- Under Other applications, click Permitted services.
- Click Remove next to the service.
The channel then stops working until you connect it again.
Troubleshooting
| What you see | What it means | What to do |
|---|---|---|
| No LinkedIn page found | The account you signed in with isn't a Super admin of any LinkedIn Page. | Sign in with an account that is a Super admin of the Page, or ask a Super admin to give you that role. |
| The LinkedIn account you signed in with is not an approved admin of this page. | The account manages the Page but isn't a Super admin of it, or the role is still pending. | Ask a Super admin to give you the Super admin role, then connect again. |
| LinkedIn authorization has expired. Please reconnect the channel. | Too much time passed between signing in and choosing the Page. | Click Sign in with LinkedIn and try again. |
| LinkedIn did not confirm your page admin role or LinkedIn refused to send this page's comments | LinkedIn didn't accept the request at that moment. | Wait a few minutes and connect again. If it keeps happening, contact support. |
| The pop-up doesn't open | Your browser blocked it. | Allow pop-ups for the platform and click Sign in with LinkedIn again. |
| A reply shows as failed | LinkedIn didn't accept it, for example because of an unsupported attachment, the length limit, or the posting limit. | Check the reply against what a reply can contain, then send it again. |
| New comments don't appear | The comment isn't on a post published by your Page, the Page is connected to another AI agent, or the connection has stopped. | Check that the channel is still connected and that the Page is connected to only one AI agent. Connect again if needed. |
References
- Create a LinkedIn Page (LinkedIn Help)
- LinkedIn Page admin roles (LinkedIn Help)
- Add admins on your LinkedIn Page (LinkedIn Help)
- Request admin access to a LinkedIn Page (LinkedIn Help)
- Third-party applications data use (LinkedIn Help)
- Profile API (LinkedIn developer documentation)
- Comments API (LinkedIn developer documentation)
- Refresh tokens with OAuth 2.0 (LinkedIn developer documentation)