New to Kestra?
Use blueprints to kickstart your first workflows.
Track LinkedIn post reactions with Kestra. Fetch analytics for a list of activity URNs and send a weekly Slack digest with post and reaction totals.
Stop checking LinkedIn post stats by hand. This blueprint runs io.kestra.plugin.linkedin.GetPostAnalytics against a list of activity URNs, one API sweep across every post the team published, and posts the headline numbers to Slack. The task returns per-post reaction details in its posts output and two ready-to-report scalars, totalPosts and totalReactions, which flow straight into the notification.
activity_urns input holds the list of LinkedIn activity URNs to track, so the same flow covers one post or fifty without edits.fetch_analytics (io.kestra.plugin.linkedin.GetPostAnalytics) authenticates with a Bearer access token from {{ secret('LINKEDIN_ACCESS_TOKEN') }} and fetches reactions for every URN. Outputs include posts (per-post reaction data), totalPosts, and totalReactions.notify posts the two scalar totals to Slack; the per-post array stays available on the execution for downstream tasks.errors block sends a distinct Slack alert when the fetch fails, naming the flow and execution.Schedule trigger runs the digest every Monday at 08:00.totalPosts and totalReactions as scalar outputs, safe to interpolate into a JSON Slack payload.posts output for downstream reshaping or warehousing.The LinkedIn API answers one request at a time, but a weekly report needs a schedule, credential handling, an execution history, and a place to send the numbers. Kestra provides all of that around a single task declaration, the access token stays in a secret, the totals land in Slack, and every run is auditable.
LINKEDIN_ACCESS_TOKEN: OAuth2 access token sent as Bearer auth for LinkedIn REST API calls.SLACK_WEBHOOK_URL: Slack incoming webhook URL.activity_urns values with URNs of your own posts.disabled: false on the weekly trigger.posts output into a Python task to reshape per-post rows for a warehouse, as shown in the LinkedIn analytics to warehouse blueprint.GetPostAnalytics task with a different URN list to compare campaigns side by side.