Inspiration

Commfy helps people in London find communities that meet in real life: run clubs, climbing socials, society nights. Organisers keep these going with their own money. They pay for the venue, food and kit up front and hope a sponsor covers it. Brands want to reach these groups, but when they sponsor an event they get little proof that anyone came.

We wanted a deal where both sides can see exactly what was paid for. That became Turnout: brands pay only for people who showed up.

What it does

  1. Request. A brand types its goal (product feedback or awareness), who it wants to reach and a budget.
  2. Commfy recommends. Commfy's AI picks 2–3 communities that fit and says why. It proposes what happens at each event, writes one survey question for the brand, and recommends how the organisers get paid. A brand that wants feedback gets a mix weighted towards survey answers; a brand that wants to be seen gets one weighted towards people at the door and new faces. The brand can drag the sliders before approving.
  3. Approve and hold. The brand approves in PayPal's window. PayPal holds the whole budget, and each organiser gets 30% of their share straight away as base pay, because venue and food are paid before the night.
  4. Event day. Members scan a door code that changes every 30 seconds, on their own phones. There's no app and no account, just a PayPal email. Answering two quick questions puts £1 of the brand's money in their wallet, with the brand's name on it.
  5. Payouts on results. When the events close, each organiser is paid on what actually happened:

$$ \text{organiser pay} = \underbrace{0.3\,S}{\text{base}} + \sum{g \,\in\, {\text{people, answers, new faces}}} P_g \cdot \min!\left(1,\ \frac{\text{achieved}_g}{\text{target}_g}\right) + B $$

Here $S$ is the organiser's share, the pots $P_g$ follow the mix and add up to $0.6\,S$, and $B$ is a 10% posts-and-photos bonus the brand awards at its discretion. Every pot is capped. PayPal captures only what was earned, and the rest of the hold is never taken from the brand. Commfy keeps 30% of what the brand actually paid.

  1. Proof. The brand gets a report showing people there, survey answers, new faces, cost per person who came, the answers to its question, and where every pound went. Members appear only as anonymous references. The full check-in record can be downloaded.

In our recorded run, a £1,500 budget ended with £988 charged and £512 never taken.

How we built it

  • PayPal (sandbox): Orders v2 with intent AUTHORIZE holds the budget. Payments v2 partial capture pays the base, and a final capture takes only what the results earned, which releases the rest of the hold. Payouts v1 batches pay the organisers and the members' cash-outs. Every call shows up in a live ledger built with AG Grid, folded under "Show how PayPal moves the money".
  • AI: Azure OpenAI with a strict JSON schema. The model picks and weights the communities, writes the reasons, the deal and the question, and recommends the payout mix. The AI only suggests. The server checks that the mix adds up, keeps the base, the bonus and every cap fixed, and does all the money maths in pence.
  • App: Node and Express with plain HTML and JavaScript, hosted on Render. Built with Claude Code.

Challenges we ran into

  • Keeping the money exact. Every amount is held in pence, so the base pay, the final capture and the amount returned always add up to the budget.
  • Making proof hard to fake. The door code is signed by the server and changes every 30 seconds. Each PayPal email can check in once per event, and location is recorded as a second check.
  • Paying members without skewing their answers. The £1 is paid whatever they answer, and answers are only shown once 5 or more people have answered.
  • Payouts aren't instant. Payout batches start as PENDING, so the dashboard and the phone keep asking PayPal until each batch finishes.
  • Sandbox money runs out. After about ten full test runs, payouts started failing with INSUFFICIENT_FUNDS, because each run spent the sandbox business account's balance. We moved to a fresh account with a larger balance.

What we learned

PayPal's authorization model fits outcome-based funding closely. One hold covers the whole budget, a partial capture pays the organisers up front, and the final capture takes only what was earned, so nothing extra is ever charged. Treating the organiser like a salesperson, with a base and then pay for the results the brand asked for, made the AI's job concrete: it isn't only matching, it also sets what the organiser works towards.

What's next for Turnout

  • Move to PayPal's marketplace setup, so payments are split at source and Commfy never holds brand money.
  • Seasons of events instead of single nights. Any money not earned would roll over as credit, and a new hold would be placed each month, since a hold lasts 29 days.
  • Let a brand's own AI assistant make the request through a connector (MCP).
  • Take legal advice on member wallets before any real money moves.

All communities, people and numbers in the demo are made up. It runs on the PayPal sandbox only.

Built With

Share this project:

Updates

Submission history