New to Kestra?
Use blueprints to kickstart your first workflows.
Get alerted on new LinkedIn comments with Kestra. A polling trigger watches your posts and sends comment text and author details to Discord.
The first hour of a LinkedIn thread decides its reach, and a reply from the author keeps it alive. This blueprint uses io.kestra.plugin.linkedin.CommentTrigger to poll a list of post URNs every 15 minutes and start an execution the moment new comments appear. The trigger exposes the newest comment's text, author URN, post URN, comment ID, and creation time as scalar outputs, plus newCommentsCount and the full allNewComments array, and the flow pushes the scalars into a Discord alert.
on_new_comment (io.kestra.plugin.linkedin.CommentTrigger) polls the posts listed in postUrns on a PT15M interval using the access token from {{ secret('LINKEDIN_ACCESS_TOKEN') }}.commentText, actorUrn, postUrn, commentUrn, commentId, createdTime, newCommentsCount, and allNewComments.alert_team posts the scalar comment fields to Discord, the commentText value is passed through the json filter so quotes and newlines in the comment never break the payload.errors block sends a distinct Discord alert if the flow itself fails.disabled: true so the blueprint is safe to import, enable it once the URNs and secrets are set.newCommentsCount and allNewComments for handling bursts where several comments arrive in one poll.Polling an API on an interval, remembering which comments were already seen, and fanning the result into a chat tool is undifferentiated plumbing. The trigger handles the polling and state, Kestra handles the schedule, secrets, execution history, and failure alerting, and the whole reactor is a few lines of YAML.
LINKEDIN_ACCESS_TOKEN: OAuth2 access token sent as Bearer auth for LinkedIn REST API calls.DISCORD_WEBHOOK_URL: Discord incoming webhook URL.postUrns value with the URNs of the posts you want to watch.disabled: false on the on_new_comment trigger and comment on one of the posts to test the alert.{{ trigger.allNewComments }} with io.kestra.plugin.core.flow.ForEach to process every comment in a burst individually.interval during launch days and lengthen it during quiet weeks.