What the agent does
This is for a fitness franchise with twenty-odd studios. Every Sunday evening each studio manager posts the week's numbers in the #studio-numbers Slack channel: new members, cancellations, class check-ins, intro offers sold and retail sales. Some post a tidy list, some a photo of a whiteboard with a caption, some reply in a thread under last week's post. On Monday the operations manager copies all of it into a spreadsheet by hand before the owners' meeting at ten. The agent does the copying and tells the operations manager which studios did not post.
The operations manager connects Slack once with POST /me/connections {"type": "app", "name": "slack"} and opens the authorize_url. A run that names slack in connections gets the Slack CLI signed in as that person. Rush asks Slack for user scopes that include channels:history, groups:history and users:read, so the agent reads the channels the operations manager is in and resolves who posted. The request names the channel and says not to post anything.
On a run the agent reads the channel's history from last Monday to now through Slack's conversations.history, and opens threads with conversations.replies so a manager who answered under an old post still counts. It maps each post to a studio from the studio list in the prompt, by the poster's name and by the studio named in the text, using users.info for display names. It pulls the five numbers from each post, whatever the format; when a post has only an image, it marks the studio as posted with numbers to enter by hand rather than guessing from the picture.
It compares each studio's numbers with the same studio's post from the week before, which it reads from the channel too, and flags a value more than three times or less than a third of last week's, the usual sign of a typo such as 1,200 check-ins for 120. It writes the table as a CSV for the owners' spreadsheet and a short summary: totals, the studios that did not post, and the flagged values. It posts nothing to Slack.
Start it with one API call
POST https://api.phoenix.so/o/{org}/sessions with this body:
{
"agent": "claude",
"input": "Collect last week's studio numbers from Slack. Read #studio-numbers from Monday 2026-11-16 00:00 to now (America/Chicago) with conversations.history, and open every thread with conversations.replies. Studios and managers: Riverside (Maya Chen), Old Town (Luis Ortega), Lakeview (Priya Shah), Northgate (Sam Becker), Eastside (Jordan Wells). Map each post to a studio by the manager's name (users.info) or the studio named in the text. From each post take: new_members, cancellations, check_ins, intro_offers, retail_sales_usd. If a post is only an image, set needs_manual_entry true and leave the numbers empty. Read each studio's post from the week before too, and flag any value more than 3x or less than one third of last week's. Write studio-numbers.csv with columns studio, manager, posted_at, new_members, cancellations, check_ins, intro_offers, retail_sales_usd, needs_manual_entry, flags. Write summary.md: totals, studios with no post, and each flag with both weeks' values and a link to the message. Do not post, react or reply in Slack.",
"connections": [
"slack"
]
}- Get an API key. In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
- Send the request. POST the body in request.json to https://api.phoenix.so/o/{org}/sessions. The run starts in its own cloud sandbox.
- Read what came back. Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.
What comes back
The run writes studio-numbers.csv with each location's weekly numbers and summary.md naming the studios that missed or posted odd values. The session lists both as artifacts, and the session's result holds the summary. The operations manager pastes the CSV into the owners' spreadsheet, enters the numbers for any studio that posted only a photo, and messages the managers who missed or whose values were flagged before ten o'clock.
What the operations manager checks: every flag, since a real jump, such as a corporate partnership that brought forty new members, looks the same as a typo until someone asks; a post the agent matched to the wrong studio when a manager covered another location for the week; and a manager who posted a correction later in the thread, which the agent reads only if it came before the run. The table is a copy of what managers posted, not of the studios' booking system.
Run it on every Monday morning
In the console, a Project automation with a schedule trigger at 0 7 * * 1 in the franchise's timezone runs a saved agent whose connections name slack, with the studio list in its instructions. A schedule fills no dates into the prompt, so the saved instructions say "from last Monday to now" and the agent writes the range it read at the top of summary.md.
When a studio opens, the operations manager adds it to the saved agent's studio list, and the next Monday's run includes it. Each Monday's session stays readable, so a question in March about a week in November can be answered from that week's run.
The use case this job follows, with its automation and trigger: Produce a report or file, no repo.
Why run it on Rush?
The Slack sign-in stays in Rush's connection, not in a bot token someone pasted into a spreadsheet script, and the run reads Slack as the operations manager, so it sees exactly the channels they see. Each run has its own computer and a record of every Slack call, so when an owner asks where a number came from, the session shows the message it was read from.
The job reads free-form posts written by twenty different people, which is what a fixed script parses badly and a person parses slowly. The session records its total_cost_usd, so the franchise can see what each Monday table costs.
Frequently asked questions
Do the managers have to change how they post?
No. The agent reads lists, sentences and thread replies alike. A post that is only a photo is the one case it leaves for a person, so asking managers to type the five numbers removes that step for the operations manager.
Can it remind the managers who did not post?
The Slack sign-in includes chat:write, so it could send a message as the operations manager. This job does not, because a nudge from a colleague on Monday morning reads better when a person chooses the words and the timing.
Can it read a private channel?
Yes, if the operations manager is in it. The scopes Rush asks Slack for include groups:history, which covers private channels the signed-in person belongs to.
Is the table the franchise's official sales figure?
No. It is what each manager reported in Slack. Retail sales and memberships of record live in the booking and point-of-sale systems, and the owners' meeting should treat the table as the managers' weekly read, not the books.
More Slack jobs
- What Did Customers Ask Us to Build This Week? A SaaS Customer-Success Team's Friday Digest From Shared Slack Channels
- Which Guest Complaints From Yesterday Got No Reply From a Manager? A Hotel Group's Morning Sweep of Its Slack Property Channels
- Which Maintenance Requests in Slack Has Nobody Picked Up? A Property Manager's Morning Check
More jobs like this: Produce a report or file, no repo
- Which Leads Came In Through Each Client's Website This Week? A Web Design Agency's Netlify Forms Digest (Netlify)
- Estimate Cloud Costs for a Terraform Deployment (Terraform)
- How Can a Property Manager Compare Each Building's Monthly Spending to Its Budget? An Agent That Reads Every Property's Sheet in Google Drive (Google Drive)