Open-source AI sales agents should be judged by what they write
AI sales agents should leave a short queue of approved sends; Kortix is the open-source CompanyOS where that agent runs.
An AI sales agent reads a new lead, researches the company, drafts the follow-up and offers a call slot, wired to your CRM, your mailbox and your calendar. Every demo shows the reply land in seconds. The decision that separates one product from another is what the agent leaves behind: a short queue a person works in the morning, or a pipeline nobody read.
Kortix is an open-source CompanyOS — your agents, skills, company memory, and connectors in one git repo you own. Any model, your keys, self-hosted or managed cloud. The follow-up we run on it treats the write as the output.
The write outlives the reply
A reply is worth one conversation. The record the agent writes on the way past is what the team still reads in March, and a wrong write costs you the pipeline behind it. Move a stage to Qualified and the forecast and the commission conversation change with it. Set a score from a note that misread the company and the account lands in the wrong sequence. Create a task against the wrong owner and the follow-up never happens, while the dashboard shows the task exists.
The write outlives the session, and often the person who would have typed it; research that stays in a chat transcript dies with it.
Three questions that sort the tools
What runs before a person sees it. A tool that reads the lead, the company and the calendar on its own is doing the work. One that stops for permission on every read hands it back to you.
What it writes, and where. A note on the lead record is readable by the next rep and the next tool. A draft that lives inside the agent dies with it (the flow).
Who approves the send. A person, once per message, or nobody. If nobody, ask what the tool does with a lead it misread.
A sweep every 15 minutes, a person at the end
Every 15 minutes a scheduled trigger sweeps our HubSpot pipeline for new leads, and each firing spawns a fresh session in its own sandbox, with scoped access to the record, the web, our email and the calendar. One isolated sandbox per session, so this morning's sweep leaves nothing behind.
The agent researches the company, logs the research on the lead record, drafts the follow-up against our playbook, and proposes a call slot from real availability. The draft waits in the email channel, where a rep reviews, edits and sends it. A sweep of five leads runs as one session with five independent units inside it, so a research failure on one never touches the other four.
The policy fits in one file
default_agent: sales-follow-up
skills:
sales-follow-up-playbook: skills/sales-follow-up-playbook
connectors:
- slug: hubspot
name: HubSpot
provider: composio
app: hubspot
policies:
- match: "get_*"
action: always_run
- match: "search_*"
action: always_run
- match: "write_*"
action: require_approval
- match: "update_*"
action: require_approval
- match: "delete_*"
action: block
- slug: gmail
name: Gmail
provider: composio
app: gmail
policies:
- match: "draft_*"
action: always_run
- match: "get_*"
action: always_run
- match: "send_*"
action: require_approval
- slug: google_calendar
name: Google Calendar
provider: composio
app: googlecalendar
policies:
- match: "list_*"
action: always_run
- match: "get_*"
action: always_run
- match: "create_*"
action: require_approval
policy:
default_mode: risk
policies:
- match: "gmail.send_email"
action: always_run
conditions:
- arg: to
match: "*@your-company.example"
- match: "*.send_*"
action: require_approval
- match: "*.delete_*"
action: block
agents:
sales-follow-up:
prompt_file: agents/sales-follow-up.md
connectors: [hubspot, gmail, google_calendar]
secrets: none
skills: [sales-follow-up-playbook]
kortix_permissions: none
The sales-follow-up agent holds all three connectors. HubSpot runs get_* and search_*, holds write_* and update_*, and blocks delete_*, so the agent cannot delete a record. Gmail runs draft_* and get_* and holds send_*. Calendar reads run and create_* waits. default_mode: risk catches what those rules miss: reads run, writes and deletes wait.
Project-wide rules run before connector rules, and the first match in that list wins, so the exception sits at the top. gmail.send_email to your own domain runs; every other send falls to *.send_* and waits. List the wildcard first and the exception never fires. That conditioned rule is what keeps the queue short: internal notice moves without a decision, and anything a customer reads gets a person. A condition can also negate its match, so one domain can be held while the rest runs.
Approval gates you set. Off until you set them. Here the file sets them beside the agent's persona and skills, so a change arrives as a diff somebody reviews. Every action is recorded. Reading, exporting and streaming the audit log depend on the plan. How the actions resolve, and where the credential sits, is in how to give an agent tool access without handing over a key.
Four calls on one lead
Northwind fills in the form on Tuesday morning. The next sweep picks it up, and the policy sees four kinds of call on that lead.
Reading the HubSpot record runs. It is a get_*, and nothing leaves the building. Writing the research note back is a write_*, so it is held. A send to the lead misses the conditioned rule, which covers only your own domain, so *.send_* holds it. A rep decides what goes out. The calendar slot for the account owner is a create_* on the calendar connector, so it waits too and stays a proposal. The read ran and the three writes waited.
Open the call and you see what the app will receive, with private values hidden (connectors). An approval covers that exact action, so changing the recipient on a draft needs a second decision.
The queue has to stay short enough to work
Ask on every call and the queue stops being a queue. One sweep of five leads makes a dozen decisions before lunch, most about a note nobody would read anyway. A person approves the first three carefully, then clicks through the rest like a cookie banner. By the end of the month the gate is off, and the pipeline is worse for looking supervised.
Two rules keep it small. Reads run, which default_mode: risk already gives you. And each lead contributes one write worth a person's attention: the send. This manifest holds every write, so one lead arrives as three rows. Let the research note and the slot run; leave the send where it is, because a person can correct a note later and the email is what a customer reads.
That tuning has a limit: there is no "approve everything for this session", so the note write needs an Allow rule of its own.
The queue is worked in Review, or from the approval card in a Slack or Teams thread. A project manager, or the person who started the session, decides.
Approve and the call runs exactly as shown, once, as the agent that asked, and the agent resumes with the result. Deny and the session continues without it, with an optional message back.
The denial is the useful one, because it is the only training signal the playbook gets. A message saying the draft led with pricing on a company that has not seen the product is worth more than a hundred approvals, if it lands in the skill that writes the follow-ups or the memory the next session loads. A denial that says no and nothing else teaches the next sweep nothing, and the same draft comes back tomorrow.
Ignore a call and it expires: 24 hours by default, or the expiry the project sets. An expired call never ran, which makes an unworked queue a slower version of sending.
Where this stops
The sweep sees new leads. The records already in your pipeline when the trigger went live are a separate job, about data quality rather than follow-up speed.
None of this replaces a salesperson. The rep still decides what goes out and owns the account; what changes is how much research happens before the first sentence.
Some accounts should never open with an agent. An enterprise deal that arrives through a warm intro, or a customer's expansion, is a relationship before it is a lead. The agent can research those. It should not write first.
A team that wants outbound run for it, with no configuration to own and no queue to work, should buy a managed AI SDR. That product is priced for the outcome; a person who never wanted policy files should not be handed one. Kortix runs the agent; the queue is the work the team keeps. Free is $0 with 500 credits a month and 1 project, on your own API key or a connected ChatGPT subscription. Credits start at $50 a month. Enterprise is custom, with SAML SSO and SCIM directory sync, advanced RBAC and audit logs, and cloud, VPC or on-prem deployment (pricing, checked October 2026).
Time one morning of the queue on your own leads. Ask for that queue in the next demo.
If you want the failure modes behind the gate, how to build reliable AI agent workflows covers them.