Angles and split tests
Each email of a campaign (the first email or a follow-up) has a few versions, called angles. Kata tests them on real sends and moves the traffic to the best one.
What counts as a success
A sent email is a success when the lead clicks the tracked link, replies with interest, or converts. The rate of an angle is successes divided by emails sent.
How each send picks an angle
Kata uses Thompson sampling. For each email, it draws a plausible rate for every live angle of that step, from its results so far, and uses the highest. New angles get a fair chance; clear winners get most sends.
campaign_report and list_variants show p_best for each live angle: its chance of being the best of its step.
The evolve job
Once an hour, for each active campaign with its autopilot on, for the first email and for each follow-up branch (each branch is its own split test):
- 01
Wait for enough data.
An angle is judged only after a minimum number of sends (40 in the current setup).
- 02
Retire the losers.
A judged angle that is not the best, with less than a 5% chance of being the best, is retired. The last live angle is never retired.
- 03
Write a new one.
When there is room under the maximum of live angles (3 in the current setup), the AI writes a new angle from the best one and the results of the others.
Run it now with evolve. Every decision is logged as an event.
This is the campaign's autopilot, on by default. Turn it off with the switch on the Autopilot block of the Canvas, or update_campaign with autopilot: false: the angles in test then stay as they are and share the sends equally.
The follow-up strategy
After the first email, each lead gets the follow-up that fits what they did. A follow-up step holds branches: Clicked, no reply, Opened, no click, No open, and Everyone who did not reply as the fallback. A reply, an unsubscribe or a bounce stops every automatic email. Read it with get_strategy, change it with set_branch, and see it in the campaign's Strategy tab or the Follow-ups block of the Canvas.
Once a day, for each active campaign with its autopilot on, the agent reviews the strategy on its own (run it now with review_strategy or the Review now button):
- 01
Hot leads.
When leads clicked the first email without replying, it adds a "Clicked, no reply" follow-up after 2 days, written by the AI for each lead from what they already got. It never says it saw the click.
- 02
Never opened.
With opens tracked on the first email, after 100 first emails and at least 5% opens, leads who never opened get the follow-up as a new email with a new subject.
- 03
Dead follow-ups.
A branch that sent 150 emails without a reply, a click or an interested lead is paused.
Every change goes to the strategy log with its numbers and reason. Fixed limits: at most 4 emails per lead, at least 1 day apart.
Writing and editing angles
generate_angles: the AI writes 1 to 6 angles for one step.add_variant: add one you wrote.set_variant: retire one, put it back, or edit it. Editing an angle that already sent mixes its stats: add a new one and retire the old one instead.
Testing whole campaigns
Connect one lead list to two campaigns and each campaign emails all its people. To compare two approaches on the same people, test angles inside one campaign instead. See Lead lists.