---
name: gather-slack-customers-vendors
description: >-
  Check customer Slack channels and vendor channels
  for activity in a given time window.
---

# Gather: Slack Channels

## Context

Read [references/channels.md](references/channels.md) for customer/vendor channel names, Slack IDs, and [repo-owner-name]'s user ID.

## Inputs (provided by caller)

- **window_start:** Unix timestamp or date expression
- **window_end:** Unix timestamp or "now"
- **perspective:** e.g., "overnight customer updates" (morning-prep) vs "customer work I did today" (EOD)

## Steps

1. Convert window_start to a Unix timestamp if not already.
2. For each channel, use `slack_read_channel` with `oldest` set to window_start.
3. Search for mentions: `<@[slack-user-id]>` in each channel after window_start.
4. For threads [repo-owner-name] was part of, use `slack_read_thread` for replies within the window.

## Output Format

Organize by customer, then channel. Flag escalations, action items, and anything awaiting [repo-owner-name]'s response.

```
## Acme, Inc.
### #acme-procurement-ext
- [action] Roadrunner requested CRM permissions, still failing — awaiting your response

### #roadrunner-internal-focus
(nothing)

```
