All work

Hack the Hill III

One queue for every utility request, from the first call to the closed ticket

Role
Backend, data analysis, and pitch, in a team of four
Context
Hack the Hill III, CGI CRM challenge
Where
Ottawa University
When
September 2026
Status
Hackathon build, live as a self-contained demo

Context

CGI’s challenge at Hack the Hill III was a CRM for Northwind Utilities, a fictional regulated energy and water provider serving 1.8 million customers. It came with seven datasets: complaints, the systems they pass through, monthly KPIs, meter reads, an AI pilot, unit costs, and contact-centre staffing. Four of us had the weekend to turn that into something a utility could run on.

The problem

Northwind’s complaints lived across four systems, and the data showed what that costs. 35 percent of complaints bounced between systems, and those reopened three times as often. 51 percent were about billing, yet the customer portal could not break a bill down. 77 percent of service-level targets were breached. Missed appointments were the clearest failure: 71 percent of those complaints breached their SLA.

Approach

  1. The data decided the features

    Before any UI, I worked through the seven datasets in a pandas notebook to find where the process actually broke. Every feature in the portal answers one of those findings: the billing share became an inline bill breakdown, the transfer rate became a single shared queue, and the staffing data became a manager view of understaffed regions such as Calderfield, at 41 percent attrition.

  2. Roles and Row Level Security first

    The data model is a requests table and a profiles table carrying each user’s role: customer, employee, or manager. The policies are what enforce it: customers read and create only their own requests, staff read and close all of them, and only a manager can change another account’s role. A policy that looked up the caller’s role from inside a profiles policy recursed infinitely, so the role check moved into a security-definer function that every policy calls instead.

  3. One portal, three views of the same record

    Customers file a complaint against the real complaint taxonomy from the data, see their bill broken down as soon as they pick a billing complaint, book appointments, and track requests as open or closed. Employees work one queue and open any customer’s profile and history from it. Managers get request stats, the staffing dashboard, and account roles.

  4. A pitch deck that runs inside the app

    The presentation is a route of the app itself rather than a slide file: a vertical descent from the sky, past the street, down through the pipes to the reservoir, one band per part of the story. Its product slides embed the real components with sample data, so the demo shown on stage is the code that ships.

  5. Hosted without a shared database

    A public demo on one Supabase project would let any visitor logged in as manager change roles or close every request for everyone else. After the event I put the app behind a small backend interface with two implementations: Supabase for the real build, and an in-browser store that follows the same rules as the RLS policies. The demo runs on the second, saving each visitor’s changes in their own browser, with three sample accounts and a reset.

Tech stack

Frontend
  • React 19
  • TypeScript
  • Vite
Backend
  • Supabase Auth
  • Postgres
  • Row Level Security
Data
  • Python
  • pandas
  • Jupyter
Delivery
  • Vercel

Outcome

  • The full submit, track, and resolve loop working end to end across all three roles by the demo.
  • 33 commits from four people across the hackathon weekend, merged into one app from parallel branches.
  • A live demo with customer, employee, and manager accounts that needs no backend to run.

More case studies

Alex

AI & Automation Engineer. Building things that work so you don't have to.

© 2026 Alejandro Martinez. All rights reserved.

All Systems Online

Some projects are fan-made tributes and are not affiliated with the works they reference. Terms