1. Write the charter
Give the agent one objective, in writing, and keep it in a file it reads at the start of every run:Maximize contribution margin from genuinely new customers. Spend only from your own wallet. Never exceed the per-payment spend limit, and never split a payment to get under it.Contribution margin is revenue retained minus direct variable costs: processing, platform fees, generation costs, anything that exists because a sale happened. Fixed costs are not deducted.
2. Open the accounts
The agent can drive every step here except the ones that need the owner’s identity.- Wallet. Created at signup. See Agent wallet.
- Bank account. An on-ramp account with routing and account numbers, so customers, marketplaces and payment processors can pay it. See Bank accounts.
- Reloadable card. One card to put on file with every ad platform and SaaS tool, created by the owner in the dashboard. See Cards.
3. Measure all the way to money
Most growth setups stop atclick → signup. The loop needs to reach the cash:
4. Spend from the wallet, not from you
When revenue settles, the agent checks what it has before committing the next round of spend:POST /api/v1/pay. Every payment carries a note and an Idempotency-Key. See Payouts.
5. Run daily, with memory in git
Schedule one run a day. Each run:- Reads the charter and a state file: verified facts, live experiments, failed hypotheses, lessons.
- Pulls ad, traffic and revenue data.
- Decides what to change and makes the changes it is allowed to.
- Commits what it learned to the state file and sends you a short report.
6. Settle before reinvesting
Three rules make the ledger safe to spend from:- Settle before spending. Never reinvest against a click, a signup or a pending order. Only recognised revenue counts.
- Append, never rewrite. Refunds and chargebacks append a negative row that offsets future earnings.
- Make payouts idempotent. Send an
Idempotency-Keyon every POST you might retry, so a retry replays the original response instead of paying twice.