LinkedIn CommentTrigger

LinkedIn CommentTrigger

Certified

Trigger on new LinkedIn comments

Polls LinkedIn posts for newly created comments and starts an execution when found. Uses bearer access token, LinkedIn-Version header (default 202509), and X-Restli-Protocol-Version 2.0.0 on each poll.

yaml
type: io.kestra.plugin.linkedin.CommentTrigger

Monitor post for new comments

yaml
id: linkedin_comment_monitor
namespace: company.team

tasks:
  - id: notify_slack
    type: io.kestra.plugin.slack.notifications.SlackIncomingWebhook
    url: "{{ secret('SLACK_WEBHOOK_URL') }}"
    payload: |
      {
        "text": "New LinkedIn comment from {{ trigger.actorUrn }}: {{ trigger.commentText }}"
      }

triggers:
  - id: new_comment_trigger
    type: io.kestra.plugin.linkedin.CommentTrigger
    accessToken: "{{ secret('LINKEDIN_ACCESS_TOKEN') }}"
    postUrns:
      - "urn:li:activity:7374025671234244609"
    interval: PT30M

Monitor multiple posts for comments

yaml
id: linkedin_multi_post_comments
namespace: company.team

triggers:
  - id: multi_post_comments
    type: io.kestra.plugin.linkedin.CommentTrigger
    accessToken: "{{ secret('LINKEDIN_ACCESS_TOKEN') }}"
    postUrns:
      - "urn:li:activity:7374025671234244609"
      - "urn:li:activity:7374025671234244610"
    interval: PT15M
Properties

Access Token

OAuth2 access token sent as Bearer auth for LinkedIn REST API

SubTypestring

Post URNs

List of LinkedIn post URNs to monitor for new comments

Defaultfalse

Specifies whether a trigger is allowed to start a new execution even if a previous run is still in progress.

Defaultkestra-linkedin-plugin

Application Name

Application identifier included in requests; defaults to kestra-linkedin-plugin

DefaultPT30M
Formatduration

Polling interval

How often to check for new comments

Default202509

LinkedIn API Version

LinkedIn-Version header value; defaults to 202509

SubTypestring
Possible Values
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTED

List of execution states after which a trigger should be stopped (a.k.a. disabled).

Defaulttrue

A condition that determines whether the trigger should run.

A Pebble expression evaluated at trigger time. The trigger fires only when the expression evaluates to a truthy value (true, a non-empty string, a non-zero number). Use this to gate trigger execution on dynamic runtime values such as execution labels, flow variables, or environment conditions.

Actor URN (who made the comment)

Agent URN (impersonator if applicable)

All new comments found

Definitions
actorUrnstring

Actor URN

agentUrnstring

Agent URN

commentIdstring

Comment ID

commentTextstring

Comment text

commentUrnstring

Comment URN

createdTimestring
Formatdate-time

Created time

postUrnstring

Post URN

Comment ID

Comment text content

Comment URN

Formatdate-time

When the comment was created

Total number of new comments found

Post URN that received the comment