Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 3 min read

How a Validator agent stops AI agents from sending bad outreach

We built ramen-agents, an open-source (Apache-2.0) team of AI agents for finding local businesses that have a gap you can fix, such as no website. This post explains one part of it: the Validator, the step that checks th

We built ramen-agents, an open-source (Apache-2.0) team of AI agents for finding local businesses that have a gap you can fix, such as no website. This post explains one part of it: the Validator, the step that checks the other agents' work before anyone sees it. The idea carries over to any agent project.

The problem

An agent that writes outreach emails will, sooner or later, write a bad one. It states something about a business that nobody checked. It cites a number it made up. It addresses a private person instead of a business. A prompt that says "do not do that" helps, but a prompt is a request, not a guarantee.

Two ideas: a checker and a fence

ramen-agents has five AI agents. They find businesses, research the market, price an offer and write the email. A sixth part, the Validator, does not create anything. It only checks.

  1. Check every write. Before a result is saved to the shared board, the Validator checks it against a written list of rules. A result that breaks a rule is refused, with the reason attached.
  2. Fence what the agents may do. The agents never send an email, sign up for anything or spend money. This is not an instruction in a prompt. It is a fence in the code: the agents have no step that does those things. The email is a draft. A person reads it and sends it.

The split matters. The agents are free to be creative inside the fence. The Validator is boring on purpose: plain rules, the same answer every time.

An example refusal (illustrative)

Imagine an agent finds a business with no website and drafts the offer. The draft says the business "has a 4.8 rating from hundreds of reviews". Say that figure is not in the record the agent was given. The Validator compares the draft with the record, sees a value that is not there, and refuses the write. The agent gets the reason and has to fix the draft or drop the lead.

A refusal is not a failure. It is the system working. The refusal rate is a number you can watch, and it tells you whether the agents are drifting.

What it cost to run

On the default free model tiers, the model fees are $0. Search is keyless. It never asks for a card. It runs on your Mac. Since late September, the agents have found over 1,200 local businesses this way.

We will not claim this is cheap for every setup. It is free on the default free tiers, and those tiers have limits. We keep a list of free AI APIs with the allowances checked against each provider's own page: https://rebuzz-llc.github.io/ramen-agents/free-ai-apis.html

Try it with no key

The quick demo needs Python 3.11+ and no key or account:

git clone -b engine https://github.com/reBuzz-llc/ramen-agents ramen-engine
cd ramen-engine
python3 -m venv .venv && . .venv/bin/activate
pip install -e .
bot new "My Explorer" --fake --dir ./demo
bot --config ./demo/my-explorer/config.toml demo

That runs one research session with a fake model, so you can read the output and the checks without spending anything.

What to copy even if you never use it

  • Put a checker between agents and anything that persists.
  • Write the rules down in plain text so a person can read them.
  • Make the dangerous actions impossible in code, not discouraged in prompts.
  • Keep a human at the last step.

Disclosure

We built ramen-agents, and we also offer a paid done-for-you setup. The code is open source and works without it.

Repo: https://github.com/reBuzz-llc/ramen-agents

If you try it and a rule seems wrong or missing, open an issue. We would like to know.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.