← All work

Automation

A marketing automation system

The venue's booking system kept no record of its customers. This copies every booking, payment and unfinished checkout every five minutes, builds a history for each customer, and passes it to the email tool. The marketing team can now follow up an abandoned booking or win back someone who hasn't visited in a while.

Built forAn indoor entertainment venue.

The process, mapped

  1. 1

    Copy bookings every five minutes

  2. 2

    Build each customer's record

  3. 3

    Spot unfinished bookings

  4. 4

    Pass it to the email tool

  5. 5

    Check it's all running

The problem

The venue's booking system takes bookings well, but it doesn't keep track of customers. It can't say how much someone has spent, how often they visit, or when they last came.

When someone starts a booking and doesn't finish, the booking system deletes it. The marketing team had nothing to work with.

The process

I started with what the marketing team wanted to do: email people who left a booking unfinished, thank people after a visit, and bring back people who hadn't been in for a while.

Then I worked out what information each of those needs and where it could come from.

What I built

Copying the data out

  • Every five minutes, the system copies bookings, payments and unfinished checkouts out of the booking system into its own database.
  • For each customer it works out total spend, number of visits and the date of their last visit.
  • It notices when an unfinished checkout disappears from the booking system, and records it as abandoned.

Feeding the email tool

  • It passes all of this to the venue's email marketing tool as it happens: booked, completed, cancelled, abandoned, payment failed.
  • When the history was loaded in at the start, about 10,000 customers, nobody was sent an email by mistake.

Knowing it's running

  • A daily email tells the team whether everything is running.

How it works now

The marketing team can send the right email to the right customers, using information the booking system never gave them.

How it was built

Techniques

Booking system integration (GraphQL API)
Reads bookings, payments and open checkouts directly from the booking system. Read only.
Data sync
Runs every five minutes and is safe to run twice, so a missed or repeated run never creates duplicates.
Change detection
Each run is compared with the last one to spot checkouts that have disappeared.
Database event engine (SQL)
The database itself turns raw bookings into customer events and running totals.
De-duplication
Every event is recorded once in a ledger, so loading old history never triggers an email.
Email platform integration (API)
Sends customer details and events to the email marketing tool as they happen.

Tools

  • Next.js
  • Supabase
  • Customer.io

Next project

An event management system
→

Contact

Is there a job in your business that takes too long?

Tell me how it works now and I'll tell you if I can build something for it.

andrew@andrewferdinando.com

Based in Auckland. Working with companies in New Zealand, Australia and the UK.