Canned Replies That Cite Onboarding Step State
A support agent who can cite a user's exact onboarding step status in a canned reply doesn't need to re-ask the question first. Here's how to wire that up.
A new user emails support: "I can't find where to connect my calendar." The agent's first move is usually a question back — what have you tried, what step are you on — before they can answer anything useful. That round trip costs a reply cycle every time, and it's avoidable: if the onboarding checklist already tracks step state per account, the support tool can surface it, and the canned reply can cite it directly instead of asking for it.
This isn't about building a smarter chatbot. It's about letting a human agent's existing macro system read one more field before it answers.
What a macro needs that it doesn't have yet
Most support tools let an agent insert a templated reply with variables filled from the ticket: the user's name, their plan, their signup date. Onboarding step state is the same kind of variable — which step the account is on, whether it's stuck or complete, when it last changed — but it usually isn't piped in, because the checklist and the support tool were built by different teams at different times and nobody wired the two together.
The fix is small in scope: expose a read endpoint the support tool's macro variables can call, keyed by account ID, returning the current step and its status. It doesn't need the full step history, just enough for a macro to say "I can see you're on the calendar connection step" instead of "what step are you on."
A minimal read for the support side
func (h *Handler) SupportStepSummary(w http.ResponseWriter, r *http.Request) {
accountID := r.URL.Query().Get("account_id")
if accountID == "" {
http.Error(w, "account_id required", http.StatusBadRequest)
return
}
steps, err := h.store.StepsForAccount(r.Context(), accountID)
if err != nil {
http.Error(w, "lookup failed", http.StatusInternalServerError)
return
}
current := currentStep(steps) // first incomplete step, or nil if all done
writeJSON(w, http.StatusOK, map[string]any{
"account_id": accountID,
"current_step": current,
"all_complete": current == nil,
})
}This is deliberately a summary, not the full record: the support tool needs "where are they stuck," not every event in the checklist's history. A narrower read is also a narrower thing to secure and keep stable across checklist redesigns.
Access control is the part that actually matters
This endpoint returns account-level state to a party who isn't the account owner, which makes it a different trust boundary than the checklist's own API. It needs its own credential — a support-tool service token, not the same key that signs in end users — and it needs to be scoped to read-only, because a support macro has no reason to write step completions. If the security review for the main checklist API already covers who can call what, this is a new entry in that review, not an extension of an existing one.
Keeping it from drifting out of sync
The summary endpoint is only useful if it reflects reality at the moment the agent reads it. If step completions are written asynchronously — a background job confirming a calendar connection, say — there's a window where the checklist shows "complete" before the support read catches up, or the reverse. That's a smaller version of the same staleness problem a read replica introduces, and the fix is the same: read from the same source the checklist's own UI reads from, not a cached or denormalized copy that the support tool team maintains separately. A second copy of the same fact is a second place for it to go wrong.
Where the macro fits in the agent's workflow
The payoff isn't the endpoint, it's the canned reply that uses it: "I can see your account is on the calendar connection step and hasn't completed it yet — here's the direct link to finish that one." That reply answers the ticket in one message instead of two, and it reads as attentive rather than scripted, because it is citing something true about the specific account rather than a generic troubleshooting list. The same step data that powers an audit log for compliance can serve a completely different audience here without any new tracking being added.
What to measure instead of assuming it helps
There's no honest number to publish for how much faster a ticket resolves once a macro can cite step state — that depends on the support tool, the ticket mix, and the agents, and no external benchmark transfers cleanly into another product's queue. What's measurable locally is a before/after on first-response-resolves-without-a-follow-up-question, split by whether the reply used the step-state macro. If that split doesn't exist in your support tool's reporting yet, that's the thing to build before claiming the macro saved anyone time.
For the underlying step model this endpoint reads from, see the docs on how steps are represented per account.