Notifying Teams in Slack When a User Completes an Onboarding Step
A checklist completion is a signal worth routing to the people who act on it. Posting it to Slack turns a database row into something your team actually sees.
Why Slack and not just a dashboard
A dashboard answers the question you remember to ask. A Slack message answers the question you didn't know to ask yet — a new account finished setup, a step that usually takes a day completed in ten minutes, a VIP account stalled on step 2. Nobody opens an analytics dashboard on a schedule tight enough to catch that in time to act on it, but almost everyone already has Slack open. Routing onboarding events there doesn't replace the dashboard; it puts the events that matter for today's work in front of the people who'd otherwise only see them in a weekly review, by which point the moment to reach out to that stalled account has passed.
Picking which events are worth a message
Not every step completion deserves a notification — a flood of "user X finished step 1" messages trains the channel to be ignored, the same failure mode as noisy error alerts. The events worth routing are the ones a human can act on within the hour: the final step of the checklist (a qualified "activated" signal for sales or success to follow up on), a step stalling past its usual window (a candidate for a nudge), or a step failing repeatedly (a product bug, not a user problem). If you can't say who reads the message and what they'd do differently because of it, that event belongs in the dashboard, not the channel.
Wiring it up: webhook, not a Slack app
For a single outbound notification, Slack's incoming webhook is enough — no app install, no OAuth flow, no scopes to request from the workspace admin. You create the webhook URL in the Slack workspace, store it as a secret alongside your other credentials, and POST a JSON payload to it from wherever your server already knows a step completed:
func notifySlack(webhookURL string, accountID, step string) error {
payload := map[string]string{
"text": fmt.Sprintf("Account %s completed step: %s", accountID, step),
}
body, _ := json.Marshal(payload)
resp, err := http.Post(webhookURL, "application/json", bytes.NewReader(body))
if err != nil {
return err
}
defer resp.Body.Close()
return nil
}Call this from the same handler that records the completion in your steps API, after the write succeeds — not before, and not as a prerequisite for it. A Slack outage should never be the reason a user's progress fails to save.
Making the message useful, not just present
A bare account ID in a Slack message sends the reader straight to a lookup before they can do anything with it. The message is worth the interruption only if it already contains what the reader needs to act: the account's name or plan tier, a link to that account's record in your internal tool, and which step specifically — not just "onboarding progress" but "connected their calendar" or "invited a teammate", phrased the way your team already talks about the product. The webhook payload supports Slack's block formatting for exactly this, so the extra fields cost a slightly larger JSON body, not a second request.
Failure has to be invisible to the user, loud to you
The notification is a side effect of the user's action, not a step in it — if the webhook call times out or Slack returns a 500, the user's checklist still has to show the step as complete. Fire the Slack call asynchronously (a goroutine, a queue, whatever your stack already uses for non-blocking side effects) and log the failure where you'd notice it, rather than retry it inline and risk the completion response hanging on a third party you don't control. The cost of a missed Slack message is someone finding out an hour later from the dashboard instead of in real time; the cost of blocking the user's request on it is a support ticket about a checklist that "doesn't save."
What this doesn't replace
A Slack notification is an alert, not a record. If you later need to answer "how many accounts completed step 3 last month" or build a report for a stakeholder who isn't in the Slack channel, that query has to run against your database, not against scrollback in a channel that's been archived twice. Treat the webhook as the fast path for people who'd otherwise miss the event, and keep the webhook events pattern as the system of record other integrations and your own reporting pull from.
What to measure before scaling it up
Before wiring more events into the channel, check whether anyone acted on the ones already there — a reply, a DM to the account, a ticket opened from the link. Slack doesn't give you that for free; it's worth tagging the message with a short reaction-tracking convention (a ✅ emoji once someone's followed up) if the team is small enough for that to be realistic. Without it, "we send onboarding events to Slack" is activity, and the question of whether it changed anyone's outcome is not instrumented yet.