Workflows: multi-step automation with approvals

Workflows: multi-step automation with approvals

Build workflows that start on an event, a schedule or a click — identify the customer, check a connected tool, branch, wait for an approval, note the ticket and draft the reply — with retries, limits and a full audit trail.

All plans Open in TR-AI6 min read

Workflows are for people who manage automation. Start from a template — payment failure, SLA breach prevention, customer issue, production incident response, security vulnerability remediation, failed deployment, recurring issue, customer escalation, knowledge-base improvement, infrastructure health, engineering hand-off — or New workflow. New workflows are off until you switch them on.

TriggerStarts when
When something happensA ticket is handed to a person, resolved, waiting for review, approved or rejected; a reply fails to post; a known issue is created or resolved; an SLA clock is at risk; a problem is detected; an investigation is concluded; an infrastructure incident is opened; a production deployment fails; a critical or high security finding is reported. Add conditions such as ticket.subject contains “payment”.
On a scheduleEvery 15 minutes to 7 days.
Run by a person / the APIRun now from the builder, or POST /v1/workflows/{id}/runs with an idempotency_key.
StepWhat it does
identify customerFinds the customer: company, plan, tags, tier, tickets and open tickets.
toolRuns a connector action from Procedures. Read actions run at once; actions that change an account or move money wait in Backend Actions for approval, and the workflow continues when it is decided.
conditionBranches on any value — “If yes, go to …”, “If no, go to …”.
approvalWaits for one or two different people with approvals to decide, in Workflows → Needs attention or the Intelligence decision inbox. The person who started the run can’t approve it. It expires after 1 hour to 7 days, and can escalate to managers once instead of ending the run.
verifyRe-reads the system and compares it with what should have happened: a read-only connector action and a value, or the state of an investigation, engineering ticket, drafted reply, the ticket’s outcome, a security finding or an incident. Re-checks up to 10 times; if it can’t confirm, it escalates, fails the run or records it.
notifySends an in-app notification (and e-mail, by preference) to leads, managers or admins.
ticket note / ticket replyAdds an internal note on the help-desk ticket; drafts a reply that waits in Reviews — a person sends it.
queue, investigation, wait, setPut the ticket on a queue, open a TR Investigate investigation, wait some minutes, or save a value for later steps.
engineering issueCreates an engineering ticket — bug, improvement or enhancement, with a title, description and priority — and sends it to the connected tracker (Jira, Linear, GitHub, Assembla, monday.com). Bugs also become known issues with the standard status messages (no AI drafting from workflows); requests that match an open one are added to it. Retries never file a second ticket; without a tracker the ticket is kept in Engineering tickets and the run says why it wasn’t sent. {{steps.<id>.issueUrl}} is the issue’s link.
engineering updatePosts a comment to the issue created by an earlier engineering-issue step in the same run.
parallelRuns 2–5 branches at the same time and continues when all of them finish; their results come back to the run.
for eachRepeats steps for every item in a list (up to 50), with {{loop.item}} and {{loop.index}}; results are collected per item.
run a workflowStarts another workflow with values you pass, waits for it and returns its values.
transformReshapes data without code — pick fields, list a field, filter, count, sum, join, sort or de-duplicate — and saves the result for later steps.
aiClassifies, extracts, summarises or decides with AI — only allowed answers count, and below the confidence threshold a person decides.

Use {{ticket.subject}}, {{customer.plan}}, {{requester.email}} or {{steps.<id>.data}} in text and arguments. The customer’s e-mail is kept encrypted for the run and masked in the history.

Safety and failures

  • The same event starts a workflow once per ticket (follow-ups included); manual runs can pass an idempotency key.
  • Each workflow has a maximum number of runs per hour and per day; over the limit, events are skipped and logged.
  • A failing step is retried after 1, 4, 16 … minutes (you choose 0–5 retries). When the retries are used up the run goes to the dead-letter list in Needs attention — retry it from the failed step, or cancel it. “If it fails → continue” moves on instead.
  • Every save is a new version; runs keep the version they started with. Every step, its input (e-mails masked), output, error, timing and who approved it are recorded; changes are in the audit log.
  • “Run as a test” simulates actions, skips approvals and posts nothing.
  • Every step has an operation risk class — read-only, write, privileged, destructive or production-impacting. Privileged, destructive and production-impacting steps need an approval step before them on every path, unless you record a narrow exception with a reason.
  • A step can name an undo step. “Undo changes” on a failed run runs the undo steps of what it completed, last first (or automatically, if the workflow says so).
  • “Skip step and resume” lets a person record what they did by hand and continue from the next step.
  • A connector action that fails five times in a row in 15 minutes pauses for 10 minutes. Workflows started by other workflows stop at 3 levels and 10 runs per chain; a run stops after 20 AI calls.
  • A run counts as verified in Outcome Assurance only when its verification steps confirm the result; a compensated run counts as reversed.