A Slack bot for approvals succeeds when it models the approval chain as a state machine before modeling the conversation flow. The walkthrough below follows a ten-working-day build for a typical internal ops request such as a purchase, a leave request, or an access grant: days one to three define who approves what, days four to six build the request path and state tracking, days seven to eight add escalation and re-submission, and days nine to ten wire the reporting and handover. Each step has a concrete artifact the buyer can inspect, so the build does not end as a bot that sends polite messages but cannot answer who approved, when, and on what basis.
What the approval chain must know before coding starts
Start by mapping every approval type the bot will carry. For each type, record the requester role, the first approver role, any parallel or sequential second approvers, the monetary or amount threshold that changes the chain, and the system of record the decision must write back to. A purchase request under USD 500 may route to one team lead; a request over that threshold may require a finance second sign-off; an access grant may route to the data owner rather than a manager. These rules belong in a written chain map, not in the bot’s message templates.
The chain map should also capture what each approver sees. Approvers need the request details, the requester, the deadline, and any supporting document, and they need approve or reject actions that record their decision. Parallel approvals, where two people must both sign off, behave differently from sequential ones, where the second person sees the first decision. Most broken approval bots come from treating parallel and sequential chains as the same flow. The same distinction drives work in other platforms: a microsoft teams bot built for the same internal process faces the same chain decisions, so the chain map transfers across either messenger.
Decide early what the bot must not decide. An approval bot should verify that the right people were asked, but it should not interpret policy on its own, auto-approve borderline cases, or infer missing fields. Where a rule is unclear, the bot hands the request to a human and records the handoff. Writing that boundary down before coding keeps the build from drifting toward an autonomous decision system that reviewers will not accept.
Days one to three: freeze the request forms and routing rules
On day one, collect one live example of each approval type from the current manual process: the email thread, the spreadsheet row, or the form that people fill in today. Extract the fields people actually complete, and drop the fields that are never filled in. A request form that asks for nine fields when four carry the decision will see abandonment before the bot is judged useful. Each field should carry a type, an optional-required marker, and a validation rule where one applies, such as a numeric amount or a date.
Day two is spent on routing rules as a decision table: condition columns for requester department, amount, request type, and any special flag, and a result column naming the approver sequence. The table should be readable by an operations manager without code, because routing changes will be requested after launch and the buyer should be able to edit them rather than wait for a developer. Keep exceptions outside the table for now; they become escalation cases in the later step.
Day three turns the table into the bot’s first configuration and reviews it with the actual approvers. Each approver in the chain should confirm that they are the right person for their row and that the threshold that lands on their desk is correct. This review catches misrouting cheaply, when the cost of changing a rule is editing a table rather than rebuilding a flow. By the end of day three the artifact is a signed-off chain map and field list, which become the basis for acceptance cases.
Days four to six: build the request path, state records, and reminders
The request path opens when the requester invokes the bot and picks a request type. The bot walks the form in a short sequence, validating each field before moving on, and shows a summary message the requester can edit or submit. On submit, the bot writes a state record: request id, type, fields, requester, current state, chain position, created time, and deadline. That record is the source of truth; the Slack messages are only its surface. If a message is deleted or a thread is lost, the record still answers where the request stands.
Days five and six handle the lifecycle. When an approver acts, the bot records the decision, the actor, and the timestamp, then advances the chain: to the next approver, to the requester on rejection, or to completion when the chain ends. Reminders fire for approvals past their deadline, and the bot shows the remaining path on every status check. Idempotency matters here: an approver who taps the same button twice should record one decision, not two. The bot should detect a duplicate action and treat the second tap as a no-op rather than reversing the first decision.
State also needs an audit trail tied to each transition. Every status change records who or what moved the request, from what state to what state, and when. For internal ops this trail is what a reviewer reconstructs after the fact, and it is what answers whether an approval was complete before the downstream system was told to act. The error-handling patterns that keep retries and duplicate actions from corrupting state are described in retries and alerts for China-built workflow bots, and the approval state record should follow the same rules.
Days seven to eight: escalation, rejection, and re-submission branches
Rejections need a defined branch. When an approver rejects, the bot records the reason, not just a no vote, and returns the request to the requester with that reason visible. The requester should be able to correct the submission and re-submit, which starts a fresh decision cycle while keeping the original request record linked so the history is not lost. A re-submitted request should not silently inherit the previous approval, because the changed fields may have changed who needs to sign off.
Escalation covers the cases where a chain stalls. An approver on leave, a deadline passed with no action, or a role that has no current occupant all need a named fallback. The chain map should state the escalation path after a defined window, such as two business days, and whether the escalation notifies a manager, a backup approver, or an operations queue. The bot should escalate once per stalled request rather than nagging the same approver on a loop, and it should record that the escalation occurred.
Delegation is a related branch that many builds omit. Approvers on vacation often ask a colleague to act in their place; the bot should record who acted as delegate and on whose behalf, so the approval trail still names the responsible party. If the organization does not want delegation inside the bot, the bot should instead defer the request to the escalation path. Either choice is acceptable; leaving the branch unwritten means approvers will work around the bot through private messages.
Days nine to ten: the reporting dashboard and the system-of-record writeback
The reporting dashboard draws on the state record rather than on message history. Useful views show open requests by age, approval cycle time per chain, rejection reasons, and approver workload over a week or a month. For an approval bot, cycle time is the primary signal: how long requests spend waiting at each step tells the buyer where the chain is slow, not merely how many requests the bot processed. The dashboard should let an operations manager filter by type, department, and date range without developer help.
Writeback to the system of record happens only after the chain completes. The bot should post the final decision, the approver list, and the audit trail to the destination system, and should record whether the writeback succeeded. If the destination returns an error, the request stays in a pending-writeback state rather than being marked complete, and an alert goes to the operations queue. Scheduled exports of the approval records follow the same pattern described for scheduled reporting exports, with a fixed retention rule and an export format the buyer can read.
The handover on day ten covers the configuration, the runbook, and the test cases used during the build. The buyer’s own operations lead should be able to add a new approval type, edit a routing threshold, and read the audit trail without contacting the vendor. Acceptance runs the ten case sequences from the chain map: happy path, each rejection branch, one overdue escalation, one re-submission, and one writeback failure. If those pass in a staging workspace the buyer can access, the bot is ready for a pilot with one department before company-wide rollout.
What the pilot week should track before wider rollout
The first week with real requesters measures adoption more than features. Track how many requests start but are abandoned at the form, how long requests wait at each step, how often approvers fall back to private messages, and how many tickets end up in the operations queue because the bot could not classify them. Abandonment at the form usually means fields are wrong or the type choice is unclear; private-message workarounds mean the delegation or escalation branch is missing. Fix those before opening the bot to more departments.
The pilot also tests the assumptions in the chain map against real demand. Thresholds that looked reasonable in planning turn out to misroute a share of requests, and request types that were expected to be rare dominate the volume. Those adjustments are normal, and the configuration-first design from days one to three is what makes them cheap. After two pilot weeks, the bot can roll out to the next set of departments with the reporting baseline already in place, rather than measuring success against gut feeling.
Leave a Reply