Inspiration
Marketplace payouts look boring until one weird row slips through. Wrong email. Fat finger amount. Someone who looks like a real payee but is not. The file goes to PayPal, the money leaves, and finance finds out later. We wanted a desk that sits between the CSV and PayPal so a person can stop the bad lines before anyone gets paid.
What it does
Argus takes a payout CSV, runs rules and history checks on every line, and writes a plan of who would get paid. Flags show up in a review grid. You accept or exclude with a reason. The plan hash changes when the plan changes. A second person has to approve that exact hash. Only then does Argus call PayPal Payouts. One payee with no account stays unclaimed. Hit apply again while it is in flight and a second batch is not sent.
How we built it
Next.js and Postgres hold the run. Elasticsearch and local embeddings find lookalike payees. OpenRouter writes a short advisory note from the evidence. It never decides. AG Grid is the review queue. AG Studio is the same batch as charts. PayPal sandbox does the payout. Webhooks and a poller bring item status back so the run can settle.
Challenges we ran into
Sandbox payouts look fine in the app and nowhere in Activity if the Render env is missing the PayPal secrets. We learned that the hard way. Free OpenRouter models ate the token budget on reasoning and returned empty text until we turned that off. Reset demo clears the rationale cache, so a second take needs a fresh seed if you want the AI sentence on screen.
Accomplishments that we're proud of
A hosted demo that can plan 300 October rows, exclude the bad ones, get a four eyes approve, and send a real sandbox payout. The plan hash is the lock. Same plan cannot pay twice. Jon Doe vs John Doe is the moment that sells the Elasticsearch work. The AI note sits next to the evidence and stays clearly advisory.
What we learned
Payouts are less about calling an API and more about the plan you are willing to sign. Idempotent batch ids matter more than a pretty button. Sponsors only count if the judge can see them in the click path. A short video that shows exclude, AI, Studio, approve, and apply once beats a long feature tour.
What's next for ARGUS
Wire this into a real HR or marketplace export so nobody has to download a CSV. Add a clearer retry when PayPal never answered the first apply. Keep Render up through judging, then decide if the next step is a private beta for teams that already pay creators through PayPal.
Built With
- agstudio
- elasticsearch
- next
- paypal
- postgresql
- render