Product DesignPython automationLive

A daily job that turns hundreds of Klaviyo flows into one readable map.

Klaviyo shows flows one at a time, which makes it hard for a team to see what is live and what changed. I built a scheduled Python job that reads every live flow each day, writes a plain-English row per flow to a shared Google Sheet, and logs any change since the day before.

client
Adapt Naturals
role
Design, build, deploy
platform
Python, Klaviyo API, Google Sheets
status
Running daily
How it works
01 / the brief

One source of truth for every flow

The team needed a master reference of live flows: what triggers each one, who gets in, and which emails send in what order, without clicking through the Klaviyo editor.

02 / the approach

Translate, not just export

Raw flow definitions are JSON. The job walks each flow from its entry point, keeps emails in the order a subscriber receives them, collapses duplicate resends, and turns trigger rules into plain English.

03 / what it writes

One row per live flow

Each row answers the questions the team actually asks about a flow.

  1. 01Flow nameas in Klaviyo
  2. 02Triggermetric, list and so on
  3. 03Trigger detailsfilters and entry rules in plain English
  4. 04Emails includedcount, with live versus draft
  5. 05Emails in send ordereach tagged live or draft
  6. 06Open in Klaviyolink straight to the editor
  7. 07Last changeddate of the last change
  8. 08Change logappend-only audit tab
04 / under the hood

Built to run unattended

  • Change detectionA hidden snapshot tab lets each run diff against yesterday and append changes to an audit log.
  • Rate-limit awareRespects Klaviyo's limits and backs off automatically on errors.
  • Fails softUnknown rule types fall back to readable names, and a flow that fails to parse is skipped and logged instead of stopping the run.
  • Dry-run modePrints parsed rows without writing, so changes can be checked safely before deploy.
  • Python
  • Klaviyo API
  • Google Sheets API
  • Railway cron
  • GitHub

Drowning in automations?

I build small tools that give teams a clear view of complex marketing systems.

WhatsApp me gudanim@live.co.za More work