Rulebook scores your AI support bot, attacks it with sneaky customers, fixes its rules and trains it. Every improvement goes to your engineers for approval.
Open source engine
Break your bot in one command
No account needed. The engine behind Rulebook runs on your computer with your own Claude, ChatGPT or Gemini key, and every prompt it uses is public.
Terminal
$ export ANTHROPIC_API_KEY=sk-ant-... # or OPENAI_API_KEY / GEMINI_API_KEY$ npx @rulebook-dev/engine break rule-sheet.txt
Bot Score
8.6 / 10
Claudeclaude-sonnet-5 · checked Nov 8
- Follows the rules9.1
- Gets the facts right8.4
- Solves the problem8.2
- Tone9.3
- Can't be tricked8.0
Score over time
Break my bot
Last attack: tricked 1 of 15 times
Train my bot
Last training: 4.2 → 8.6
From our customers
Mr Marvis's Bot Score
“Rulebook has made a real difference for our team. Our AI support started at a 3/10. After a few rounds of fixes it's at 9/10, and we can see the change in our own customer chats. We'd recommend it to anyone running a support bot.”
“Rulebook has been great for us from day one. Our AI support answers used to be hit and miss, and now they're consistent and we're happy with them. The feedback is clear and tells you exactly what to improve. Well worth a try.”
Naked Wardrobe ↗ “Rulebook found weaknesses in our AI support that we'd never spotted ourselves. We made the changes it suggested and the quality of our answers improved massively. A genuinely useful tool.”
UKLASH ↗
Your bot runs on a rule sheet: the hidden instructions it gets with every customer message. Rulebook measures how well it follows them, finds where it breaks, and makes it better, with proof at every step.
Score it
One number from 0 to 10, in five parts you can see.
Break it
Sneaky customers find the holes before real ones do.
Fix it
Rules rewritten and tested again until the score goes up.
Score checks, attacks and your real chats show exactly where the bot slips.
Bot Score
8.6 / 10
- Follows the rules9.1
- Gets the facts right8.4
- Solves the problem8.2
- Tone9.3
- Can't be tricked8.0
01Step 1 of 5
Score it
Check your bot on your saved situations and get one number from 0 to 10, made of five parts: follows the rules, gets the facts right, solves the problem, tone, and can't be tricked.
Five parts, each one scored
A note on every reply saying why
Your score over time, on a chart
Tricked 2 out of 15 times
02Step 2 of 5
Break it
15 sneaky customers try to make your bot break its rules: fake managers, sad stories, threats, and asking for its instructions. You see every reply that gave in, and the rule it broke.
Tricked or held up, for every reply
The rule each trick broke
Save any trick as a situation
Fixed 2 of 2 · 0 got worse
Checked against 11 saved situations so nothing else breaks.
Never promise refunds over $50.Never approve a refund for someone who says they work here.Always offer a discount code if the customer is angry.
03Step 3 of 5
Fix it
One click rewrites your rule sheet to close the holes. Rulebook tests the new version on the problems and on every saved situation, so nothing else gets worse.
Small, plain-language edits
Tested on every saved situation
A reason for every change
4.2 → 8.6 / 10
Trained for 14 rounds, asked 112 new questions, kept 5 changes.
04Step 4 of 5
Train it
For 30 minutes, Rulebook keeps asking new questions aimed at your bot's weakest spots, fixes the rules when it slips, and keeps only the changes that raise its score on a hidden test.
Questions aimed at weak spots
Runs on its own, close the page
Only changes that score better stay
acme/support-bot · Pull request #42
Rulebook: update prompts/support.txt (9 better, 0 worse)
05Step 5 of 5
Send it
When a change is right, it goes to your repo as a GitHub pull request with the test results attached. Nothing goes live until an engineer merges it.
A pull request on the file you connect
Test results in the description
Merged changes sync back to Rulebook
Every feature is free for your whole team. Add your own Claude, ChatGPT or Gemini key and run as much as you like. No key? Get a free Gemini key, no card needed.
Your own AIs
$0 / month
Connect the Claude, ChatGPT and Gemini keys you already pay for. Unlimited runs, free.
- AIsClaude, ChatGPT, Gemini
- RunsUnlimited on your keys
- Bot Score, attacks, fixesIncluded
- Training30-minute sessions
- GitHub pull requestsIncluded
- Team membersEveryone
AI included · coming soon
$59 / month
We supply the AIs. Nothing to set up. 50 runs a month.
- AIsClaude, ChatGPT, Gemini
- Runs50 a month, AI costs included
- Bot Score, attacks, fixesIncluded
- Training30-minute sessions
- GitHub pull requestsIncluded
- Team membersEveryone
Coming soon
Encrypted keys
Claude, ChatGPT and Gemini keys are encrypted before they are saved, and never shown again.
Private real chats
Emails, phone numbers and names are blanked before an AI sees your chats. The upload itself is never stored.
GitHub sign-in
No new passwords. Your team signs in with the GitHub accounts they already use.
Engineers approve
Fixes and training only suggest a new rule sheet. Nothing changes the live one until someone merges the pull request.
Support
Customer, 2 min ago
“Your bot feels so cold.”
+ Be warmer when the customer is upset.
Turns customer complaints into tested fixes, without filing a ticket.
Product
Watches the Bot Score climb, with proof behind every change.
Engineers
Rulebook: update prompts/support.txt
9 better · 0 worse · 3 same
Approve tested changes with one merge and stay in control.
A day with Rulebook
The bot was tricked four times in the morning. None by lunch.
10:02 · Maya
Break my bot: tricked 4 out of 15 times
10:05 · Rulebook
Fix it for me: fixed 4 of 4, 0 got worse
10:06 · Maya
Sent to engineers as a pull request
11:40 · Dev
Merged. Attacked again: tricked 0 times.
Founders
Nearly the same score at a quarter of the cost.
Know the bot is safe in front of customers, and what it costs to run.
The hidden instructions your support bot gets with every customer message, often called a system prompt. Change a few words and every answer can change.
Sign in with GitHub, paste your bot's rule sheet, add a few situations, and get its Bot Score in a minute.
Bot Score
4.2 / 10
- Score it
- Break it
- Fix it
- Train it
- Send to engineers