AI Work · Level 2 · Intermediate

Automate Business Workflows: Triggers, Actions, Approvals

How an AI workflow is built from trigger, condition, AI step, action and approval, with three examples, error handling, documentation and clear ownership.

By 9 min read
How an AI workflow is built from trigger, condition, AI step, action and approval, with three examples, error handling, documentation and clear ownership.

Many teams already automate small things with simple rules: when a form arrives, create a ticket; when an invoice is paid, send a receipt. AI adds a new kind of step to these chains. It can read an email, pull the amounts out of a PDF, sort a request by topic or draft a reply. That makes much more work suitable for automation. It also brings a new kind of error: a rule either works or fails, while an AI step can be wrong and look perfectly confident.

This is part 5 of Level 2 in our AI Work learning path. Level 0 explained the difference between assistants, automations and agents. This part shows how to build an automation with an AI step that you can trust: the five building blocks of a workflow, three examples from everyday operations, where approvals belong, how to handle errors and how to document a workflow so that someone owns it.

The five building blocks of an AI workflow

A workflow is a chain of steps that runs on its own once something happens. Most automation tools build it from five building blocks:

  • Trigger. The event that starts the workflow: a new email, a submitted form, an uploaded file, a new record in the CRM or a schedule, such as every Monday at 8 a.m.
  • Condition. A rule that decides whether the workflow continues and which branch it takes: “only invoices from known suppliers” or “only requests in German”.
  • AI step. The part that needs an understanding of language: extract data from a document, classify a request, summarize a case or draft a reply.
  • Action. What the workflow changes in other systems: it creates a record, updates the CRM, sends a message or files a document.
  • Approval. A person checks and confirms before an action that matters.

Five building blocks from left to right: trigger, condition, AI step, action and approval, with the note that actions that reach customers, move money or cannot be undone wait for approval: the workflow prepares them, a person releases them
The anatomy of an AI workflow: rules decide, the AI suggests, people approve what matters.

One design principle makes AI workflows much more reliable: let rules check the AI. Ask the AI step for structured output, which means fixed fields such as supplier, invoice number, amount and due date instead of free text. Then simple rules can check each field. Is the amount a number? Does this invoice number already exist? Is there a matching purchase order? The AI suggests, while rules and people decide.

Three examples from everyday operations

The same five building blocks fit very different tasks. The table shows three common workflows:

Automate Business Workflows: Triggers, Actions, Approvals
Building blockInvoice intakeLead routingSupport triage
TriggerA PDF invoice arrives in the invoices inboxSomeone submits the contact formA new ticket comes in
ConditionThe sender is a known supplierNot spam; a company email addressLanguage and channel are supported
AI stepExtract supplier, number, amount, due dateClassify the product interest and urgency; summarizeClassify topic and urgency; draft a reply from the knowledge base
ActionCreate a draft bookingCreate the lead in the CRM and assign a repSet the priority and route to the right queue
ApprovalAccounting approves before paymentNone for routing; unclear leads go to a personAn agent edits and sends the draft
Typical failureA new invoice layout, a wrong amountA lead lands in the wrong regionAn urgent case is labeled as routine

The three workflows need different amounts of control. Lead routing needs no approval: a lead in the wrong region is easy to fix, because a colleague simply passes it on. Measure instead how often leads are reassigned. Support triage keeps a person involved where it counts: the AI drafts, but the agent decides what the customer reads. Invoice intake needs the most control, because it ends with money leaving the company.

The figure shows the invoice example in detail. The normal case runs through. Every unclear case lands in a manual queue: a list of cases that the automation could not handle and that a person resolves.

Invoice workflow: an invoice arrives, AI extracts the data, rules check it, a draft booking is created and accounting approves before payment; unclear cases go to a manual queue; corrections show where the workflow needs work
Incoming invoices: the normal case runs through, unclear cases go to a person, and nothing is paid without approval.

Above a set amount, a second person checks. This four-eyes principle is common in finance, and it applies to automated workflows just as it does to manual ones.

Where do such workflows run? Many business tools have automations built in. According to the vendors, Tidio combines an AI agent with automations for customer service, and Typewise runs workflows in CRM and ERP systems. Ignition automates proposals, engagement letters, billing and payments for accounting and professional services firms. Assembly offers a client portal with forms, contracts, payments and an AI app builder. For workflows that connect many apps, our AI Development comparison lists automation builders under Agents & Automation, such as Turbotic, which builds automations from a description in plain language, according to the vendor:

Short descriptions from our tool comparison, based on the vendors' information — not tested by ABXK.

Where approvals belong

Approvals cost time, so put them where they matter. Two questions decide: How hard is it to undo the step? And who does it affect?

Two-by-two matrix: steps that are easy to undo and internal run automatically; easy to undo but external run automatically with spot checks; hard to undo and internal need approval in each case; hard to undo and affecting customers or money need approval by two people
Where approvals belong: the harder a step is to undo and the more it affects customers or money, the more approval it needs.

Add an approval also when the AI is unsure, when data is missing and during the first weeks of a new workflow. Then make each approval easy to do well:

  • Show the AI’s output next to the source, such as the extracted fields next to the original PDF.
  • Highlight what is uncertain instead of making the reviewer search for it.
  • Offer three clear choices: approve, edit or reject.
  • Record who approved what and when. You will need this record when something goes wrong.

Approvals have a weak spot: people. When an automated system is usually right, reviewers start to approve without really looking. Researchers call this automation bias: people rely too much on automated suggestions and miss errors, especially when they juggle several tasks at once (Source: Parasuraman and Manzey, Human Factors, 2010). Three countermeasures help. Keep approvals for the cases that matter, so reviewers are not flooded. Check a random sample of approved cases every month. And watch how often reviewers change the AI’s output. If that rate stays at zero for months, find out whether the AI is really that good or whether nobody looks anymore. Level 3 covers human checks and escalation in depth.

Error handling: plan for the bad days

Every workflow fails sometimes. The question is whether you notice. The table lists common failures and the safeguards against them:

Automate Business Workflows: Triggers, Actions, Approvals (2)
What goes wrongWhat you noticeSafeguard
The trigger fires twiceDuplicate records or double messagesCheck for duplicates before every action
The AI output is incompleteEmpty fields, wrong formatsCheck required fields, formats and value ranges; send failures to the manual queue
The AI is wrong but sureThe data does not match other sourcesCompare with a second source, such as the purchase order
A connected system is downError messages, nothing gets updatedRetry a few times with a pause, then alert the owner
The input changesA supplier switches to a new invoice layoutTrack how often cases end up in the manual queue
A silent failureNothing happens, and nobody noticesCount cases every day; zero invoices on a weekday is an alert

The first safeguard deserves a name. An action that does no harm when it runs twice is called idempotent: before the workflow creates a booking, it checks whether that invoice number already exists. Ask whoever builds your workflow to make every action idempotent.

Document each workflow and name an owner

Automations often outlive the people who built them. A workflow that nobody understands is a risk: it keeps running, with access to your systems, until it breaks at the worst moment. Give every workflow a one-page workflow card:

Automate Business Workflows: Triggers, Actions, Approvals (3)
FieldExample: invoice intake
PurposeRecord supplier invoices without typing
OwnerHead of accounting for the business side, a named IT contact for the technical side
Trigger and systemsInvoices inbox, AI extraction, accounting software
DataSupplier names, amounts, bank details; no customer data
AI stepWhich model, which prompt version, which fields
ApprovalsAccounting approves every booking; a second person above a set amount
ErrorsManual queue, retries, alerts to the owner
AccessA dedicated service account with only the rights it needs
MetricsInvoices processed, share in the manual queue, corrections per week
Last reviewDate and result of the last check

Two points on the card prevent the most common problems. First, run every workflow under a service account, a technical account that belongs to the company, not under the personal login of the person who built it. Otherwise, the workflow stops or keeps running with the wrong rights when that person changes roles or leaves. Second, review each workflow regularly, for example every quarter, and after every change to a connected system.

When your workflows read from and write to your CRM or help desk, Level 3 shows how to integrate AI with your CRM and help desk with permissions and audit trails. Level 4 then looks at agentic workflows in operations, where AI agents plan several steps on their own.