Case Study · Refuge Memorial

A Custom CRM for an Insurance Team That Sells Funeral Plans

Refuge Memorial's agents sell funeral plans by phone. KeyesCode built them a custom CRM that holds agents and their customers in one system: each customer's consultation and plan, recorded in the dashboard and presented live on the customer's phone, and the full agent lifecycle — signup, onboarding, payments, ad campaigns, reporting, and QA — that replaced a Monday.com + n8n stack, with an audit trail on every action.

Next.jsNestJSTypeScriptPostgreSQLWebSocketsTwilioBullMQStripeAWS S3Google CalendarDocker
Refuge Memorial custom CRM — agent dashboard
The problem

A phone sale and an agent operation that had outgrown their tools

The sale happens on a phone call, and it needed something better than a shared screen. Behind the calls, onboarding, payments, campaigns, and reporting each lived in a different place, held together by Monday.com boards and n8n workflows that broke quietly and left no record of what happened.

A sales call with nothing good to look at

Agents walk customers through a funeral plan by phone. Read aloud, options blur together, and a screen share shows the agent's whole screen shrunk to a phone, with no way to tell whether the customer is still following.

Brittle automations

The agent lifecycle lived in n8n flows glued to Monday.com boards. Every new step meant another fragile automation, and a single failed node could silently stall an agent's onboarding.

No audit trail

When a record changed, nobody could say who changed it or why. Approvals, payments, and campaign edits had no reliable history to reconstruct.

Manual payment-to-campaign handoffs

An agent paying for advertising didn't automatically get a campaign. A person had to notice the payment, set up the campaign, and remember to extend it — a handoff that broke as volume grew.

The solution

One CRM for the customer conversation and the agent behind it

KeyesCode designed and developed a custom CRM modeled on how the business actually sells. An agent opens a consultation for each customer, records their plan, and presents it live on the customer's phone. The same system runs the agent side: who an agent is, how they get approved and trained, how they pay, what that payment unlocks, and how their performance gets reported back.

Live on their phone

Customers follow their plan as the agent builds it

One system

Customers and agents, replacing Monday.com and n8n

Pay → live

Stripe payments provision campaigns automatically

Customer consultations

Every customer's funeral plan, recorded in the dashboard

Agents record each customer and their plan in the CRM while they're on the call, and the customer watches it come together on their own phone, seeing only what they're meant to see.

A consultation for every customer

The agent opens a consultation for each customer and records it in the dashboard: the customer's details, who is responsible for arrangements, their preferences, the funeral package they choose, and the casket or urn and extras picked from a catalog. A consultation can be resumed and reviewed later.

A live presentation on the customer's phone

During the call the agent texts the customer a link. Their phone follows along step by step and draws its own screen from only the details the customer is meant to see. Private notes and internal details never leave the agent's screen.

The agent sees what the customer sees

A live preview of the customer's phone sits beside the agent's view, along with whether the customer is connected and which catalog item they're looking at, so the agent always knows what to talk about next.

A plan document from the same record

The conversation ends with a branded plan document generated from a saved copy of the consultation. The customer reads it on their phone while still on the call, and it's theirs to keep.

Why we replaced the screen share, and what the customer's phone actually receives:

Why we stopped screen-sharing with customers
Agent operations

Signup, onboarding, payments, campaigns, reporting, and QA

The same CRM runs the agent side of the business. Each stage of the agent lifecycle is a first-class part of the system, not a bolt-on automation.

Self-serve agent signup with admin approval

Agents apply and create their own accounts. Admins review and approve from a queue, and approval is what unlocks the rest of the onboarding flow.

Video onboarding & live training

New agents work through video onboarding, then book live training sessions through a Google Calendar integration — no back-and-forth email scheduling.

Stripe payments that provision ad campaigns

A successful Stripe payment automatically provisions the agent's advertising campaign; renewals extend it. The handoff that used to be manual now happens on the webhook.

Weekly performance pipeline

A scheduled pipeline assembles each agent's weekly performance report, with a preview-before-send step so the team can review emails before they go out.

Call-recording QA

Agent call recordings are stored and surfaced for quality review, so coaching is based on the actual calls rather than second-hand summaries.

Five-role access control with audit trail

Five distinct roles scope what each user can see and do, and every action is written to an audit trail — the accountability the old stack never had.

Technology

A production stack, real-time where the customer is

Typed end to end: a Next.js front end over a NestJS API and PostgreSQL, a live WebSocket connection to the customer's phone, Twilio for the texted link, PDF plan documents, BullMQ for scheduled work, Stripe and Google Calendar integrations, S3 for media, and Docker for deployment.

Next.js + TypeScript

The agent and admin dashboard, and the customer's phone view of a consultation.

NestJS

The API: consultations, auth, roles, approvals, payments, reporting, and integrations.

PostgreSQL

The system of record for customers' consultations, agents, campaigns, payments, and the audit trail.

WebSockets

The live connection that keeps the customer's phone in step with the agent during a consultation.

Twilio SMS

Texts the customer the link that opens the presentation on their phone.

React PDF

Renders each plan document in its own worker thread, from a saved copy of the consultation.

BullMQ

Background jobs for the weekly performance pipeline and scheduled work.

Stripe

Payments and renewals, with webhooks that provision and extend campaigns.

AWS S3

Storage for call recordings and onboarding media.

Google Calendar API

Live training session booking from inside the onboarding flow.

Docker

Reproducible builds and deployments across environments.

The outcome

Customers see their plan, and the handoffs happen on their own

Refuge Memorial now runs its sales from a CRM it owns. Every customer's consultation is recorded in the dashboard, presented live on the customer's phone, and closed with a plan document built from the same record. Behind the calls, a new agent applies, gets approved, completes video onboarding, books training on the calendar, pays through Stripe, and has an advertising campaign provisioned without anyone in the loop. Weekly performance reports wait for a preview before sending, call recordings are there for QA, and every action is attributable in the audit trail.

Need a CRM built around how you sell?

We build custom CRMs and operations software that replace the tool stack — modeled on how your business actually works, and owned by you.