Repository navigation
Image: ghcr.io/kandid-ai/agentsdr:0.4.0
Upgrading from 0.3.1 needs the database migrations listed under
Migrations below, run in order before the new image starts serving. The image
does not contain them: run them from a checkout of this tag that can reach
your database (see Upgrading). Each
is guarded with IF NOT EXISTS and safe to re-run; upgrading a 0.3.1 database
this way gives exactly the schema a fresh 0.4.0 install creates:
git clone --branch v0.4.0 https://github.com/Kandid-ai/AgentSDR && cd AgentSDR
bun install --frozen-lockfile
export DATABASE_URL=postgres://… # add DATABASE_SSL=disable for the bundled Compose database
for f in $(git log --reverse --diff-filter=A --name-only --format= v0.3.1..v0.4.0 -- 'scripts/add-*.ts' 'scripts/create-*.ts'); do
bun --conditions=react-server "$f" || break
doneThen download the new docker-compose.yml (it names 0.4.0) and
docker compose up -d. No environment variable was removed or renamed; the
new optional ones are under Configuration.
Added
-
Merge field fallbacks, 2026-11-21.
{{firstName|there}}sends
"there" to a lead with no first name instead of an empty string. Choosing a
field from Insert field asks for optional fallback text, and the list
now always offers the standard fields (first name, last name, full name,
company, job title, email, company domain) even when no lead has them yet,
each marked with how many leads are missing it. The preview says when a
lead gets the fallback. A merge field is never read as{A|B}spin text.
No migration. -
AI assistants (MCP), 2026-11-13. AgentSDR is an MCP server at
/api/mcp. Connect Claude (web and desktop), Claude Code, Cursor or any
MCP client and work CRM, Action required from a chat: read the queue and
records, review, edit and send drafts, correct classifications, move
stages, snooze, close and set Do Not Contact. Each connection carries its
own permissions (crm:read,crm:write,crm:send), actions are recorded
as "name via AI assistant", and Settings, AI assistants shows the server
URL, setup steps and each person's connections with Disconnect. API keys now
have permissions too (campaigns:read,campaigns:write, and the CRM
ones); keys created earlier keep full access. Seedocs/mcp.mdx. -
AI assistants find any lead and write like the team, 2026-11-14.
crm_list_action_requiredis nowcrm_list_records: the queue by default,
or every open lead (waiting, follow-ups exhausted) or closed ones, by stage,
sub-stage, channel and search. New read-onlycrm_get_writing_guide(the
drafter's reply rules, the team's draft instructions, the lead's sender,
local time, sequence step and matching Knowledge) andcrm_get_knowledge.
The rules are the Langfuse promptmcp/writing-rules; saving the Langfuse
integration orscripts/seed-langfuse-prompts.tscreates it. ChatGPT apps
created earlier need a refresh to see the new tools. -
Public API with API keys. Owners and admins create keys in Settings,
API keys; another application uses one to list email campaigns
(GET /api/v1/campaigns), add leads to a campaign
(POST /api/v1/campaigns/:id/leads, the same duplicate and suppression
rules as a sheet import) and stop a lead's sequence without suppressing
them (POST /api/v1/campaigns/:id/leads/stop). Seedocs/api.mdx. -
Edit a mailbox's display name and daily limit. Settings, Email,
Mailboxes: a mailbox's menu has Name and daily limit. Both were set
only when the mailbox was connected, and changing the "Emails per day"
Sending rule does not touch mailboxes connected earlier, so there was no
way to change either afterwards (PATCH /api/outreach/mailboxes/:id). -
Choose which mailboxes an email campaign sends from. A campaign's new
Mailboxes tab: All mailboxes (as before, the default) or chosen ones,
so separate campaigns can run from separate mailboxes. Each mailbox shows
the other running campaigns that use it. New leads are only given a chosen
mailbox; leads that already started keep theirs, so follow-ups stay in the
same thread. Removing a mailbox takes it out of the campaigns that chose it. -
CRM follow-ups chase every lead until they move up a stage or say stop.
Sending the reply from the CRM starts the stage's follow-ups. A sequence can
send its follow-ups, and its immediate reply, by itself (Send follow-ups
automatically / Send the immediate reply automatically, both off by
default), paced per sending account and inside its hours; email follow-ups
share the mailbox's gap and daily limit with campaigns. When a sequence runs
out it continues with the one it names, so a lead is never left idle; the
Long-term loop sends one useful touch every 21 days. A follow-up can go
out on the lead's other channel (email or LinkedIn). New organizations get
the ladder Interested, Meeting Booked, Meeting Done, Pilot, Customer (and
No-show) with a sequence per stage;scripts/apply-crm-follow-up-template.ts
brings an existing organization up to it. -
Meetings. A draft can carry
{{booking_link}}, sent as the lead's own
coded Cal.com link (a plain link to the same Cal.com user gets the code too).
The Cal.com integration's webhook books or moves the meeting and the stage; a
step can be timed before the meeting; after it, Action required asks "Did
they show up?". -
Out-of-office replies resume outreach instead of reaching Action
required: the campaign enrollments and CRM follow-ups the reply stopped are
put back, due when they were or on the return day the notice gives. No draft
is written and the record keeps its stage. -
A hand-off to a new point of contact. When a thread introduces someone
else, the draft goes To them with the original person in Cc. Both draft
editors show To and Cc. -
Follow up later on a chosen date (with why and what to do; the follow-up
is drafted on the day) and Discard lead, from Action required. -
CRM drafts are told who they go out as, today's date in the
organization's time zone and where the lead is in the sequence, and read the
organization's Knowledge whole. -
AI calling campaigns (Calling). An AI agent calls leads over WhatsApp,
sends WhatsApp messages and follows up by itself, from a reach sequence and
a chase sequence for leads who agreed to a meeting but have not booked. Each
campaign picks its goal, CRM Knowledge, instructions and voice; organization
calling instructions live in Settings, Instructions, Calling. Calls go
through Gemini Live or, per campaign, ElevenLabs (theelevenlabs
integration); Compare voices rehearses a campaign's call with both.
Calling hours, calls a day, warm-up and gaps are WhatsApp Sending rules.
The agent also answers known leads who call back. Trial: see Configuration. -
Cloud calling stations. A WhatsApp number whose WhatsApp Web runs in a
browser profile on a separate call worker (services/call-worker;
CloakBrowser by default, GoLogin or Playwright's Chromium), so calls and
messages need no rep's laptop. Call now lets a rep talk to a lead
through a station from their own AgentSDR tab, the audio relayed by the app. -
Langfuse (prompts and tracing) is a per-organization integration in
Settings, AI provider. A connected organization's prompts come from its
Langfuse project and every model call is traced there; one that has not
connected uses the prompts in code and traces nothing. -
CompanyEnrich company and people research integration for Tables.
-
Analytics shows conversion from interested to customer and from booking
links to meetings, and opens on the last 7 days. -
Lead searches match full names across first and last name, email, title
and phone digits.
Changed
- The Call campaigns page lists and creates AI campaigns only; a rep talks to
a lead with Call now. Existing rep campaigns keep their data and links. - A reply's AI classification always applies; the rep corrects the stage
before replying, rather than confirming every one. - AI-campaign booking links carry only a short code, not the contact's id.
Links sent earlier still match. - The brand font ships with the app instead of loading from Google Fonts.
- The Calling pages no longer require the Unipile integration.
Fixed
- CRM sequences: Skip step and Snooze no longer strand the steps after the
next one on an old version, where they were never drafted
(scripts/repair-crm-stale-step-versions.tsrepairs runs affected earlier). - CRM send: a paused step's draft no longer blocks sending a reply on it.
- The campaign sequence editor keeps edits across tabs.
- The public demo no longer reloads in a loop on iPhone.
- The inbox composer keeps Send in view while typing a long reply.
{{booking_link}}is refused where it cannot become a link.
Configuration
All optional; nothing was removed or renamed. See
docs/configuration.md.
LANGFUSE_TRACING=offstops traces for every organization (prompts keep
working);LANGFUSE_TRACING_ENVIRONMENTnames the environment.- AI calling (trial):
GEMINI_API_KEY(the live voice model's key, read from
env while this is a trial),CALL_WORKER_SECRET(shared with the call
worker),AGENT_SAVE_HEARD_AUDIO(test option). - Pause switches
PAUSE_CRM_AUTOSEND,PAUSE_CRM_FOLLOWUP_DRAFTS,
PAUSE_AI_CALLING. - AI assistants (MCP) issue OAuth tokens for
<BETTER_AUTH_URL>/api/mcp, so
BETTER_AUTH_URLmust be the public address.
Migrations
Run in this order (the loop above does exactly this). Each is
bun --conditions=react-server scripts/<name>.ts.
create-calling-stations.ts:calling_stationsand the cloud-call
columns oncall_sessions.add-cloak-launcher.ts: the CloakBrowser launcher option.create-calling-proxies.ts:calling_proxies.add-calling-station-linked-phone.ts,add-calling-station-link-fresh.ts.add-call-session-timeline.ts.add-crm-auto-follow-ups.ts: automatic CRM follow-up columns.add-calling-station-lease.ts.add-call-session-agent-persona.ts.add-ai-calling-campaigns.ts: AI calling campaigns.add-ai-campaign-knowledge.ts,add-crm-calling-instructions.ts,
add-ai-lead-instructions.ts.add-call-session-direction.ts,add-call-session-remote-rep.ts.add-ai-booking-code.ts,add-ai-meeting-at.ts.create-api-keys.ts:api_keys.add-api-key-scopes.ts:api_keys.scopes.create-oauth-provider-tables.ts:jwksand theoauth_*tables for AI
assistants (MCP).add-crm-follow-up-system.ts: sequence chaining, auto-sent replies and
crm_meetings.add-crm-step-channel.ts.add-ai-voice-engine.ts.add-campaign-mailboxes.ts:outreach_campaigns.mailbox_ids.add-crm-draft-recipients.ts:crm_drafts.to_emailandcc_emails.
Optional data scripts (dry run unless --apply; only if they apply to you):
apply-crm-follow-up-template.ts (the new stage ladder and sequences for an
existing organization), backfill-crm-long-term-loop.ts (idle interested
leads into the Long-term loop), queue-existing-crm-follow-ups.ts,
repair-crm-stale-step-versions.ts, retry-crm-failed-classifications.ts,
seed-langfuse-prompts.ts (saving the Langfuse integration already does this).