Quick overview
This workflow runs weekly to scrape recent LinkedIn company posts with Bright Data, benchmark your engagement rate against competitor pages by format, and use OpenAI to generate a short recommendation. It logs per-company metrics to Google Sheets and sends a summary digest to Slack.
How it works
- Runs every Monday morning (or manually) and loads your LinkedIn company page URL, competitor URLs, crawl limits, and the target Google Sheets URL.
- Triggers a Bright Data dataset crawl to discover the latest posts for all listed company pages in one request, then polls Bright Data until the snapshot is ready.
- Downloads the snapshot results and normalizes each post by the crawled company page (to handle repost attribution), deriving post format and engagement rate based on reactions and comments per follower.
- Aggregates original (non-repost) posts per company to calculate medians and cadence metrics, including median engagement rate overall and by post format.
- Compares your company’s medians against the median of competitor pages overall and per format, then sends the benchmark to OpenAI to produce a concise recommendation grounded in peer examples.
- Appends one metrics row per company to Google Sheets and posts a formatted digest (including any pages that returned no posts) to a Slack channel.
Setup
- Add a Bright Data HTTP Header Auth credential with
Authorization: Bearer <YOUR_API_KEY> and ensure the referenced Bright Data LinkedIn dataset is available in your account.
- Update the Settings values for
your_company_url, competitor_urls, max_pages, posts_per_page, and min_post_chars with the LinkedIn company page URLs you want to benchmark.
- Create a Google Sheet with columns
run_date, company, posts, followers, median_engagement_rate, best_format, and posts_per_week, then add Google Sheets credentials and paste the sheet URL into sheet_url.
- Add an OpenAI credential for the Chat model used to write the recommendation.
- Add a Slack credential and set the destination channel (for example
#marketing) where the digest should be posted.