Procedure builder: structured steps, confirmations, versions and tests

Procedure builder: structured steps, confirmations, versions and tests

Add an if / then outline to a procedure, ask customers to confirm before changes, compare and restore earlier versions, and keep saved tests that prove a procedure still works.

Bronze and Growth Pro Open in TR-AI6 min read

Plain-English steps are enough for most procedures. When a procedure has branches — “if the order shipped, give tracking; otherwise offer to cancel” — add structured steps: an ordered outline TR-AI follows exactly. It costs nothing extra: TR-AI reads the outline in the same AI step it already makes.

  1. 1
    Add structured steps (optional)
    Edit a procedure → “Add structured steps”. Pick a kind for each step — Look up, Check (if / then), Ask the customer, Confirm, Do, Reply or Hand off — and the tool it uses. Check steps compare a field such as shopify.find_order.fulfillment_status and jump to another step.
  2. 2
    Choose when to ask the customer first
    “Ask the customer to confirm before” any change or refund, refunds and payments only, or never. TR-AI writes the question in the customer’s language and waits; only a clear “yes” runs the tool. A “no” stops it, and two unclear answers hand the ticket to your team.
  3. 3
    Save tests
    Tests → Add test: a sample ticket, the customer’s replies (for example “yes”), and what must happen — tools called (with arguments), tools not called, words the reply must or must not contain, and how it ends. Run one or all; they are dry runs, so nothing changes in your systems.
  4. 4
    Check the history before and after changes
    History lists every saved version with who changed it. “Compare with current” shows the differences; “Restore” brings an old version back as a new version, so nothing is ever lost.
  • Saved tests also run with every regression-suite run in Simulation Lab; the run summary shows “procedure tests 9/10 passed”.
  • AI drafts (from a description, past tickets or an SOP document) now come with structured steps you can edit.
  • Up to 50 procedures per workspace, 30 structured steps and 20 saved tests per procedure.
Tips & tricks
  • Write one test for the happy path and one for each hand-off rule (“refund over the limit goes to the team”).
  • Use “Confirm with the customer: refunds and payments only” for money tools — customers rarely mind one extra yes.
  • Run all tests after every edit; if one fails, compare with the previous version in History.
  • Keep conditions on concrete fields (status, amount, date) rather than wording the customer used.