
LinkedIn CommentTrigger
CertifiedTrigger on new LinkedIn comments
LinkedIn CommentTrigger
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.
type: io.kestra.plugin.linkedin.CommentTriggerExamples
Monitor post for new comments
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
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
accessToken *Requiredstring
Access Token
OAuth2 access token sent as Bearer auth for LinkedIn REST API
postUrns *Requiredarray
Post URNs
List of LinkedIn post URNs to monitor for new comments
allowConcurrent Non-dynamicboolean
falseSpecifies whether a trigger is allowed to start a new execution even if a previous run is still in progress.
applicationName string
kestra-linkedin-pluginApplication Name
Application identifier included in requests; defaults to kestra-linkedin-plugin
interval Non-dynamicstring
PT30MdurationPolling interval
How often to check for new comments
linkedinVersion string
202509LinkedIn API Version
LinkedIn-Version header value; defaults to 202509
stopAfter Non-dynamicarray
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDList of execution states after which a trigger should be stopped (a.k.a. disabled).
when string
trueA 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.
Outputs
actorUrn string
Actor URN (who made the comment)
agentUrn string
Agent URN (impersonator if applicable)
allNewComments array
All new comments found
io.kestra.plugin.linkedin.CommentTrigger-CommentData
Actor URN
Agent URN
Comment ID
Comment text
Comment URN
date-timeCreated time
Post URN
commentId string
Comment ID
commentText string
Comment text content
commentUrn string
Comment URN
createdTime string
date-timeWhen the comment was created
newCommentsCount integer
Total number of new comments found
postUrn string
Post URN that received the comment