Skip to main content
This script calls analytics.pipeline to get stage counts and total values, formats a readable summary, and sends it to a Slack channel via webhook. Run it daily on cron or as a scheduled GitHub Action.

The script

Setup

1

Install dependencies

2

Set environment variables

To find your PIPELINE_LIST_ID, run:
3

Test it

You should see the summary in your Slack channel.
4

Schedule with cron

Run daily at 9 AM:

GitHub Actions version

The analytics.pipeline tool returns aggregate data, not individual records. It counts toward the 1,000 calls/min rate limit like any other call.

Extending the digest

Add more data by calling additional tools. For example, pull recently closed deals:
Append the closed deals to the Slack message for a complete daily summary.