Back to all articlesWorkflow automation for analytics starts with the daily checks
Noah CookNoah Cook
Data and BI

Workflow automation for analytics starts with the daily checks

Workflow automation is software that runs the steps of a repeatable process with little or no manual work. A trigger starts each automated workflow, a rule decides what happens, and an action finishes it. A team that runs on metrics should automate its recurring checks first: the ones that already run on a schedule, use the same method every time, and end with a named person who acts on the result.

Most writing about workflow automation follows tasks between people and apps, such as approvals and ticket routing. Analytics work fits the same pattern once the trigger and the rule change, and the daily subscriber reconciliation further down shows how. The operations team, the subscription service, and every number below are invented and come from no customer, and each figure can be recomputed from the tables.

Atlassian, IBM, and Zapier on what the term means

Atlassian defines workflow automation as "the approach to automating various business processes, tasks, and workflows with minimal human intervention." IBM's definition is narrower: software that replaces manual tasks and "executes all or part of a process." IBM adds that many tools include AI without needing it: "Rule-based logic programs are equally effective."

Zapier's guide pulls the two words apart. A workflow is "a repeatable set of steps within an app or apps to accomplish a process," and automation comes down to one command: "When this happens, do that." The process is what the business needs done, and the workflow is the sequence of steps that gets it done.

All three were written with operational work in mind: a deal closes, an invoice goes out, a ticket moves to the next assignee.

Trigger, rule, and action when the subject is a number

Atlassian's best practices add a fourth part to trigger, rule, and action: "Design workflows with points for human review, especially for critical decisions." Each part looks different once the workflow watches a metric.

PartTask workflowAnalytics workflow
TriggerAn event: a task is marked completeA schedule: 7:00 each morning, once the night's data has loaded
RuleFixed: send the task to the next assigneeA judgment about a number: is the gap between two systems above 0.5%?
ActionUpdate a status and notify the assigneeWrite a short finding: what moved, by how much, and why
Human reviewA person approves or rejects the taskThe metric owner decides what to do

The bigger change is in the output. A task workflow's rule fires on every event, and the action repeats each time. An analytics workflow should end in silence on most runs, because on most days the number stays inside its normal range. Its value comes from the few runs that cross the line and arrive with the explanation attached.

The input changes too. A task workflow reads one record. An analytics workflow reads a whole day of data, so before it judges anything, it needs a rule for when that data is complete.

Rank the recurring analyses before you count hours

Zapier's test for tasks carries over. Automate a task if "it's a task you do frequently or on a schedule," or if it is boring and "doesn't require higher-order thinking." A recurring analysis needs more than that. Its method should be written down well enough that someone could run it without asking the person who usually does. A threshold should say when the result matters, so the workflow can stay quiet on normal days. And a named person should own the finding, because a result with no owner turns into another report nobody opens.

The operations team scored its recurring analyses against those conditions before anyone added up hours. Hours per month is runs per month times hours per run.

Recurring analysisRuns per monthHours per runHours per monthMethod writtenOwner actsDecision
Daily subscriber reconciliation, billing against product access300.515.0YesYesAutomate first
Daily sales exceptions report, orders outside discount rules220.7516.5YesYesAutomate first
Weekly revenue variance commentary4312.0PartlyYesWrite the method, then automate
Monthly business review pack11616.0NoYesAutomate the data sections only
Quarterly churn deep dive1/3206.7NoNo single ownerKeep as a project

The two daily checks go first. They run often, their method is on paper, and someone owns the result. The monthly pack costs about as many hours as either daily check, but its method lives in one person's head and its commentary changes every month. The weekly commentary moves up the list once someone writes down how the team explains a variance. One-time questions, such as a pricing question from a single meeting, stay off the list: answer them once, and automate them only if they come back.

Some daily checks begin as a one-time question that found something. At Flex Mobile, a consumer brand of IM Telecom, the director of operations loaded 30 days of CSV data into Orion, compared it with Flex's Stripe records, and found that about 10% of auto-pay was being rejected, according to the case study. A question that turns up a problem of that size is a good candidate for a scheduled check.

Thursday at 7:00, with 836 fewer active subscribers

The subscription service shows active subscribers on its main dashboard. The dashboard counts accounts in the product's access table, meaning people who can use the service. Billing keeps its own list of paying accounts. The two lists should agree, and the daily reconciliation at the top of the team's list checks that they do.

The definitions behind the check

  • Billing active: accounts with a paid, unexpired subscription in billing at 6:00.
  • Product active: accounts with access in the product at 6:00. This is the dashboard number.
  • Paying without access: billing active, with no access in the product. The customer pays and cannot use the service.
  • Access without paying: access in the product, but not billing active. The service gives away access.
  • Threshold: total mismatches above 0.5% of billing active.

Product active equals billing active, minus paying without access, plus access without paying. Because that identity always holds, the check can split any move in the dashboard number into its parts.

Snapshots are taken at 6:00 each day, and the check runs at 7:00 on that morning's snapshot.

DayBilling activePaying without accessAccess without payingProduct active (dashboard)Mismatches, % of billingFlag
Mon50,000402549,9850.13%No
Tue50,030362750,0210.13%No
Wed50,010422449,9920.13%No
Thu49,9908602649,1561.77%Yes
Fri50,0209052549,1401.86%Yes

On Thursday morning the dashboard reads 49,156 active subscribers, down 836 from Wednesday, or 1.67%. Seen alone, that looks like churn. The reconciliation splits the 836 into three movements:

  • Billing active fell by 20, inside its normal daily movement.
  • Paying without access rose by 818, from 42 to 860, which subtracts 818.
  • Access without paying rose by 2, which adds 2.

Minus 20, minus 818, plus 2 equals minus 836. About 97.8% of the drop comes from accounts that still pay but lost access overnight. Mismatches reach 886, or 1.77% of billing active, well past the 0.5% line, so the 7:00 run flags Thursday.

Friday shows what a day of waiting costs. Billing active rose by 30, paying without access grew by another 45, and the dashboard fell by 16 more. New customers were paying and could not get in.

What the owner reads at 7:00 on Thursday

Active subscribers, Thursday 6:00 snapshot. Dashboard count 49,156, down 836 (1.67%). Billing active 49,990, down 20, inside its normal range.

  • Paying without access: 860, up from 42. These 818 accounts pay and cannot use the service.
  • Access without paying: 26, normal.
  • Data: both snapshots loaded by 6:00, with row counts inside their normal range.
  • Not established: which job or release removed access.
  • Owner: the provisioning engineer on call. Next step: compare the 818 accounts with the overnight provisioning job runs and restore access.
  • Closes when: paying without access returns below 0.5% of billing active.

The Thursday decision is to restore access. A churn investigation would have started from the wrong question.

Write five things down before the first scheduled run

  1. What each number means, and which system holds the source of truth for it.
  2. When the data counts as complete: both sources loaded, row counts inside their normal range, and a missing value treated as missing, never as zero.
  3. The threshold and the baseline it compares against, such as a fixed percentage or the prior four weeks for the same weekday.
  4. The order of checks once a number crosses the line, so every run asks the same questions in the same sequence.
  5. Who owns each likely cause, and what condition closes the question.

Four mistakes come up often:

  • Scheduling an analysis nobody has checked by hand. A wrong method on a schedule produces a wrong answer every morning.
  • Hard-coding dates. A filter written for last quarter keeps reporting last quarter.
  • Sending a note on every run. Owners who get a note on normal days too stop reading it.
  • Sending the number without the split. An alert that says "down 1.7%" opens an investigation that the split would have closed.

The same split works for any metric whose parts add up to the total. The guide to AI root cause analysis covers the general method.

Setting up the reconciliation in Orion, one sitting at a time

Task automation tools such as Zapier and Jira automation do the operational side well: they move records between apps, route approvals, and update statuses when an event fires. A BI tool's threshold alert catches a number crossing a line on a dashboard the team already trusts. A scheduled SQL script with a test is cheap and reliable when an engineer owns it. Each of these detects a change or routes a task. Working out why the number moved, and who should act, still falls to a person.

Suppose the operations lead wants a check like this one running in Orion, the analytics platform, against her team's own billing and product tables. The setup takes a few sittings.

She starts by telling Orion what the team knows: how billing defines an active subscription, that the product access table feeds the dashboard, when the 6:00 snapshots land, and which team fixes each kind of mismatch. Orion files that know-how in Context pages and draws on it in every analysis on the project.

Next she asks in chat for the morning's comparison: both mismatch counts, and the change in active subscribers since yesterday split into billing movement and each mismatch type. She checks the answer against a day the team already investigated by hand. Along the way, Orion raises Questions from Orion and suggested analyses for anyone who can edit the project. A question might ask which overnight job grants product access, something only a person can say. A suggestion might propose running the same split across the past month to see how often mismatches crossed the line. Her answers go into Context, where the next analysis finds them.

When the numbers hold up, she asks Orion to make the check a daily Workflow. Orion builds it from the working analysis and runs a dry run before saving, so she sees a complete run on real data and approves it before the first scheduled morning. The threshold goes into a decision step in plain language, "mismatches above 0.5% of billing active," so a normal morning ends with no note. A morning that crosses the line ends with a note that splits the move into its drivers and names the owner's next step, sent by email.

Choosing your first daily check

List your recurring analyses with their runs, their hours, and whether each has a written method, a threshold, and an owner. Pick the one or two that run often and already meet all three conditions. Agree on their definitions, their threshold, and the owner of each likely cause, and leave the rest until someone writes their method down.

In the example, the dashboard showed a 1.7% drop that looked like churn, and 97.8% of it was a provisioning failure. The question for your next operations review is which of your recurring numbers should arrive each morning already split into the parts that explain them.

Keep reading

View all