1. Pull open opportunities. API connection to HubSpot or Salesforce. The flow ingests every open deal with its stage, owner, amount, expected close date, and any custom fields you care about.
2. Filter to the relevant stages. Drop disqualified, closed-lost, and closed-won. Or keep a sliding window (last 90 days closed) for the trend view. The filter is a row in the flow, not a hard-coded rule.
3. Standardize the stage and the owner. Stage names get mapped to your reporting categories. Owner records get joined to the rep master so the report rolls up by team.
4. Calculate the metrics. Deal count by stage, total pipeline value by stage, weighted pipeline by probability, average deal size, average sales cycle. Per team, per region, per product.
5. Compare against the prior week. Net new pipeline created, deals advanced, deals slipped, deals lost. The delta is the part RevOps reads first.
6. Push to Google Sheets. Clean summary in the tracker, detail tab for the dig, optional Slack alert when a major deal slips or a forecast bucket changes.