Skip to content
Internal automation platform with AI assistance, B2B lead generation, outbound sales operations

Outbound Automation Platform

One backend and one dashboard that replaced a B2B lead-generation agency's n8n workflows: approved AI follow-ups, website research and capped domain buying.

Approvals page showing an AI-drafted follow-up email waiting for approval, with Approve and send and Reject buttons
The approvals page: an AI-drafted follow-up waits for a person to approve, edit or reject it. Sample data.

The agency's outbound work depended on three separate automations: nurturing leads that replied, researching the companies it prospects, and buying fresh sending domains. Each lived in its own n8n workflow or worker, with little visibility into what had run or why something failed.

The platform brings all three behind one API and one dashboard, and adds a fourth area that watches the health of the sending mailboxes. The follow-up logic is a deliberate port of the original n8n workflows, so behaviour stayed familiar while every run became inspectable.

The system replaced the n8n workflows at a cutover in November 2026. The screenshots on this page use sample data, not the client's leads, domains or mailboxes, and no performance figures are claimed here.

Problem

Workflows that worked, but could not be seen or safely changed

Replies from cold email campaigns arrive in one tool, the pipeline lives in a CRM, and approvals happen in chat. Moving a lead between them correctly, and drafting the next follow-up without sending anything a person has not read, is a chain of many small steps. When one step failed inside a workflow, finding out which one meant digging through execution logs.

The other two jobs carried their own risks. Researching thousands of company websites with an AI model needs a hard cost ceiling, and buying domains automatically means real money leaves an account on every run, in a pattern that registrars are quick to flag if it looks mechanical.

Follow-up pipeline overview with summary counts and a card for each lane showing step-by-step run counts
The pipeline view: each lane with its steps and counts, and one failing step highlighted. Sample data.
Approach

Port faithfully, then add guard rails around every external write

Every external write in the follow-up lanes goes through one gateway. In shadow mode the platform handles real events and writes drafts but only records the calls it would have made to the CRM, the email platform and Slack, so the new system could be compared with n8n before anything went live.

A person decides what gets sent. Claude writes the draft, automated checks run on it, and it waits for approval in Slack or on the dashboard. The send uses the draft stored in the database, so nothing in a Slack button can change the recipient or the text, and the draft is claimed in the database first so it can never be sent twice.

Money has switches and ceilings. Domain buying starts in test mode, has a per-domain price cap, a daily and monthly budget per registrar, a pacing plan drawn in advance and a single kill switch that stops all purchasing.

Activity run detail panel listing each step with its duration and the calls made to external services
A single run opened to show every step and outbound call. Sample data.
Solution

Four areas, one dashboard, one API

Follow-ups turns email platform events into CRM changes. A lead marked interested becomes a contact and an opportunity, replies move the lead to review, and a timer in the CRM asks Claude for the next touch. The pipeline page shows each lane step by step with counts, and the activity page opens any run to show every call made to the CRM, the email platform, Slack and Claude, with the error if one failed.

Website research scrapes company sites in the background, fills in category fields in Gemini batches under a monthly spend cap, and exposes the results through an MCP server so the client can add websites and pull results from their own Claude. Domains asks Claude for names, checks them against naming rules and registrar availability and price, waits for approval, then buys one at a time on a paced schedule. Mailbox health reads the sending mailboxes daily and alerts on bounces, failed placement tests and DNS problems without changing anything.

The dashboard is a Next.js app with a single shell, tables on desktop that become cards on a phone, and details that open in a side panel driven by the URL so a run or a site can be shared as a link.

Key features
  • AI follow-ups with a human in the loop

    Claude drafts each touch from the email thread and CRM notes, guardrail checks run on the text, and the draft is posted for approval in Slack and on a dashboard page. Approve, edit or reject.

  • Every run is inspectable

    Each event is recorded with its steps and timings and every outbound call to the CRM, email platform, Slack and Claude, filterable by lane and result.

  • Shadow mode

    A single switch lets the platform process real events and record the writes it would have made, so behaviour can be compared with the old system before going live.

  • Website research with a spend cap

    Company sites are scraped and categorised in Gemini batches against a hard monthly budget. A built-in MCP server lets the client add websites and read or export results from Claude.

  • Domain buying under caps

    Claude suggests names, rules and registrar checks filter them, and approved names are bought one at a time under a price cap, daily and monthly budgets, business-hour pacing and a kill switch. Optional Cloudflare DNS, SPF, DMARC and MX setup follows.

  • Mailbox health alerts

    A daily check flags mailboxes and domains on bounce rate, placement tests and SPF, DKIM and DMARC results, with safeguards against mass false alarms. Phase one only alerts.

Website research page with status counts, an AI spend meter and a table of researched companies
Website research with the AI spend meter and company table. Sample data.
AI cost page with a monthly budget meter and spend per month
AI cost against the monthly cap. Sample data.
Domain run page with the purchase sequence, status per name and registrar choice
One domain run, with each name's order, status and registrar. Sample data.
Mailbox health overview with live, flagged and backup counts, placement tests and recent checks
Mailbox health in alert-only mode. Sample data.
Domain purchasing page with the next purchase time, a purchase schedule, registrar status cards and a stop button
Domain purchasing in test mode: the planned schedule, registrar caps and the stop-all switch. Sample data.
Approvals page on a phone with a draft card
The approvals page on a phone. Sample data.
Follow-up pipeline on a phone with summary counts and lane cards
The pipeline on a phone. Sample data.
Under the hood
  1. 01

    One gateway for external writes

    All follow-up writes to the CRM, email platform and Slack pass through a single gateway, which is what makes shadow mode and the full action log possible.

  2. 02

    Claims before sends

    Approvals claim the draft in the database before anything is sent, so a double click or a Slack and dashboard race cannot send twice. If the email platform fails mid-send the draft stays in Sending for a person to resolve, and it is never retried automatically.

  3. 03

    Schedules drawn in advance

    Purchase order and random gaps are planned when names are approved, so the dashboard shows each name's planned time. A database lock allows only one purchase at a time, and the price, balance, caps and ownership are re-checked before every buy.

  4. 04

    Layered, typed backend

    NestJS and TypeORM on PostgreSQL, feature modules with SQL only in repositories, schema changes only through migrations and pinned dependency versions.

  5. 05

    Server-only API access

    The dashboard's API client is server-only, so the token never reaches the browser, every server action checks the session itself, and sign-in is a plain form post with a signed session cookie.

  6. 06

    Tested against Postgres in CI

    The API's test suites run against a real Postgres in CI alongside lint, formatting, type checking and the build, with the external services replaced by mock APIs.

Outcome
  • The agency's n8n follow-up and research workflows were replaced by one platform at a November 2026 cutover.
  • Every follow-up reaches a prospect only after a person approves it, and the exact call history of each run is available to read.
  • Website research and domain buying run under hard budget limits, with a kill switch for purchasing.
  • The team can see pipeline, approvals, research spend, purchasing and mailbox health in one place instead of across several tools.

Next project

AI ReceptionistTrades and home services, roofing