惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
C
CXSECURITY Database RSS Feed - CXSecurity.com
V
Visual Studio Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
小众软件
小众软件
L
LangChain Blog
Cyberwarzone
Cyberwarzone
美团技术团队
The Register - Security
The Register - Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Tor Project blog
V
V2EX
Security Archives - TechRepublic
Security Archives - TechRepublic
Hacker News: Ask HN
Hacker News: Ask HN
L
LINUX DO - 最新话题
Recent Announcements
Recent Announcements
H
Hackread – Cybersecurity News, Data Breaches, AI and More
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
aimingoo的专栏
aimingoo的专栏
人人都是产品经理
人人都是产品经理
F
Full Disclosure
V2EX - 技术
V2EX - 技术
The Cloudflare Blog
博客园 - 叶小钗
T
Threat Research - Cisco Blogs
阮一峰的网络日志
阮一峰的网络日志
G
GRAHAM CLULEY
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Latest news
Latest news
S
Security @ Cisco Blogs
Spread Privacy
Spread Privacy
Project Zero
Project Zero
K
Kaspersky official blog
MyScale Blog
MyScale Blog
Attack and Defense Labs
Attack and Defense Labs
云风的 BLOG
云风的 BLOG
博客园 - 【当耐特】
Hacker News - Newest:
Hacker News - Newest: "LLM"
大猫的无限游戏
大猫的无限游戏
P
Privacy International News Feed
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
C
Cybersecurity and Infrastructure Security Agency CISA
Webroot Blog
Webroot Blog
罗磊的独立博客
Vercel News
Vercel News
N
News and Events Feed by Topic
A
Arctic Wolf
C
CERT Recently Published Vulnerability Notes

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
My sales agent stopped forgetting. Now it knows more about my prospects than I do.
Sanjana R · 2026-05-19 · via DEV Community

Sales reps are not bad at their jobs because they're lazy. They're bad at remembering because they're human, and they're talking to 50 prospects at once.

Here's what actually happens. You get on a call with someone you spoke to six weeks ago. You vaguely remember they had a concern about budget. You open your CRM notes and find one sentence from March that says "follow up Q3." You spend the first two minutes of the call re-establishing context you already earned. The prospect notices. The deal slows down.

The problem isn't the CRM. It's that CRMs store data but don't remember context. There's a difference. Data is "last contacted: April 3." Context is "she pushed back on the onboarding timeline, loved the ROI calculator, and asked specifically about data migration before agreeing to a pilot." One is a timestamp. The other is the actual state of the deal.

That's what we built SalesMemory to fix.


What it does

SalesMemory gives sales reps a persistent memory layer across every prospect interaction. Before a call, the rep types a name and gets a structured brief: key objections raised, what to focus on today, when the last interaction happened, and a Deal Health Score from 0 to 100. After the call, the rep logs 2–3 sentences about what happened. That note gets stored permanently. Every future brief for that prospect gets smarter because of it.

The memory layer powering this is Hindsight, a semantic memory system built by Vectorize that persists, recalls, and reflects across sessions. Without it, this is just another chatbot that forgets everything the moment the session ends. With persistent memory across sessions, the agent genuinely compounds intelligence over time.

The stack: React + Vite + Tailwind on the frontend (deployed on Vercel), Python + FastAPI on the backend (deployed on Render), Groq's llama-3.3-70b-versatile as the LLM, and no database. Hindsight is the only persistence layer.


The four user flows

Pre-call brief. Rep types a prospect name. The backend calls Hindsight to recall all stored memory about that prospect. The recalled context feeds into the LLM, which returns a structured JSON brief with key objections, a 2–3 sentence recommendation for the call, the last contact date, and the Deal Health Score.

Post-call logger. Rep types the prospect name, writes a few sentences, and selects an outcome: First contact, Objection logged, Positive signal, or Deal progressed. The backend stores the entry in Hindsight with metadata. The next brief automatically includes it.

Memory timeline. Rep types a name. The backend retrieves all stored interactions in reverse chronological order — call number, rough date, summary, outcome badge. You can scroll back and watch the deal evolve.

Weekly digest. The rep clicks "Generate my week." The backend retrieves all known prospects from Hindsight, recalls memory for each, and sends everything to the LLM in one call. The output is a prioritized action plan across three buckets: needs attention now (no response after 5+ days, stalled deal), follow up this week (active deal, clear next step needed), and on track (waiting on prospect, no rep action needed). Each item includes a concrete one-sentence action.


The Deal Health Score: how it actually works

This is the part that separates SalesMemory from a memory retrieval wrapper.

Every pre-call brief includes a Deal Health Score, generated by the LLM after reading all recalled memory for that prospect. We don't store this score anywhere. We have no database. The score is computed fresh on every request by feeding all recalled memory into the LLM and asking it to reason about momentum, risk, and confidence.

That means the score automatically improves as more memory accumulates. No schema migrations, no stale scores, no recalculation jobs. The score is always a function of everything the system knows right now.

The LLM returns six fields:

  • score — integer from 0 to 100
  • label — Cold / Warming up / Engaged / Hot / At risk
  • momentum — improving / stalling / declining / new
  • risk — single biggest risk in plain English
  • recommended_action — the most important thing to do on this call
  • confidence — low / medium / high (based on how much memory exists)

The scoring rubric we give the LLM:

  • 0–20: Cold. No engagement or long silence.
  • 21–40: Warming up. Early interest, objections unresolved.
  • 41–60: Engaged. Active conversations, some positive signals.
  • 61–80: Hot. Strong signals, near decision stage.
  • 81–100: Closing. Verbal commitment or trial agreed.

Deductions: unresolved objections, budget uncertainty, long gaps since last contact, competitor mentions without resolution. Additions: pilot agreed, budget confirmed, multiple positive signals, clear next steps.

Here's what that looks like for a real prospect in the system. Priya Sharma, VP Sales at Rentokil, after four logged interactions (budget freeze flagged, onboarding concern raised, ROI calculator loved and pilot requested, pilot agreed with a new migration concern):

Score: 70/100
Label: Engaged
Momentum: ↑ Improving
Risk: "Data migration concerns may stall the deal"
Recommended action: "Provide a detailed data migration plan and timeline to alleviate Priya's concerns"
Confidence: Medium

Enter fullscreen mode Exit fullscreen mode

That's not generic. It's generated from four specific logged interactions, pulled from Hindsight and fed into a scoring rubric. The rep walks into the call knowing exactly what to address.


How memory is stored and recalled

Storing an interaction after a call:

def retain_interaction(prospect_name: str, summary: str, outcome: str, timestamp: str):
    content = f"""
Prospect: {prospect_name}
Date: {timestamp}
Outcome: {outcome}
Summary: {summary}
"""
    client.retain(
        pipeline_id=PIPELINE_ID,
        content=content,
        metadata={
            "prospect": prospect_name,
            "outcome": outcome,
            "timestamp": timestamp,
            "type": "call_log"
        }
    )

Enter fullscreen mode Exit fullscreen mode

Recalling that memory before the next call:

def recall_prospect(prospect_name: str) -> str:
    results = client.recall(
        pipeline_id=PIPELINE_ID,
        query=f"prospect interactions with {prospect_name}",
        top_k=10
    )
    return results

Enter fullscreen mode Exit fullscreen mode

The metadata is important. Storing {"prospect": name, "outcome": outcome, "timestamp": timestamp, "type": "call_log"} is what makes the timeline view reliable. Without it, you're doing full semantic search on everything and hoping the right things surface.

The weekly digest collapses all of this into a single LLM call:

async def generate_digest() -> dict:
    all_prospects = get_all_prospects()
    prospect_contexts = []

    for name in all_prospects:
        recalled = recall_prospect(name)
        if recalled:
            prospect_contexts.append({"name": name, "context": recalled})

    prompt = build_digest_prompt(prospect_contexts)
    response = groq_client.chat.completions.create(
        model="llama-3.3-70b-versatile",
        messages=[
            {"role": "system", "content": DIGEST_SYSTEM_PROMPT},
            {"role": "user", "content": prompt}
        ],
        temperature=0.3,
        max_tokens=1200
    )
    return json.loads(response.choices[0].message.content.strip())

Enter fullscreen mode Exit fullscreen mode

The alternative — one call per prospect, then merge — would be slower, more expensive, and less coherent. The LLM can only compare and prioritize prospects it can see simultaneously.


What the memory actually changes

The best way to see the value is to look at the same prospect at interaction 1 versus interaction 4.

At interaction 1, the brief for Priya Sharma says: no prior context, start fresh, no known objections. Confidence: low.

At interaction 4, after the budget freeze, the onboarding concern, the ROI calculator session, and the pilot agreement: the brief knows the deal health is 70, momentum is improving, the specific risk is data migration, and the recommended action is to come prepared with a migration timeline. Confidence: medium.

That delta is the entire product value made visible. The system didn't get smarter through retraining. It got smarter because it remembered.

The same pattern plays out across the other prospects in the system. James Okafor (Head of Revenue, Paysend) has three interactions logged — an API reliability concern, a technical deep dive where the SLA was well received, and a security report sent after a competitor pricing challenge. His brief knows he hasn't responded in 7 days since the security report went out. He lands in "needs attention now" in the weekly digest, with a specific action: follow up on the security report and address the pricing pressure directly.

Contrast that with Anika Patel (VP Growth, GoCardless), who has one interaction: GDPR compliance is a hard gate, the DPA needs signing before anything moves forward, and legal is reviewing it. Her brief says: no rep action needed yet. She's on track. The digest correctly leaves her alone.

Without memory, both of those would produce the same brief: "no context, start fresh."


What we learned

Semantic recall is not keyword search. Querying Hindsight with "prospect interactions with Priya Sharma" returns contextually relevant memories, not just exact matches. When reps log notes in inconsistent language — "she pushed back on timing" versus "onboarding timeline is a concern" — both surface for the same query. This matters more than it sounds. Real CRM notes are messy.

The prompt is the product. The quality of the Deal Health Score is entirely determined by the system prompt's scoring rubric. "Rate the deal" produces vague scores. Specific deduction and addition logic — unresolved objections subtract, budget confirmed adds, competitor mentions without resolution subtract — produces scores that match what a human sales manager would say. Prompt engineering here is not secondary to the engineering work. It is the engineering work.

One LLM call beats five. The digest endpoint sends all prospect contexts in a single prompt because the LLM reasons better when it can compare everything at once. It also cuts latency and API cost.

No database was a deliberate choice. Most developers reach for PostgreSQL immediately. We didn't. Hindsight is the only persistence layer — every interaction stored as a memory with metadata, recalled via semantic query, fed directly to the LLM. Zero schema design, zero migrations, zero ORM setup. The tradeoff: you can't run SQL aggregations like "sum all deals by stage." The gain: "recall everything relevant to Priya's budget concerns" works in a way SQL never could. For a sales context where the memory needs to be semantic, not structured, the tradeoff is worth it.

"No CRM update required" is what makes it sell. Every salesperson has been told to keep the CRM updated. Nobody does. SalesMemory works with informal, unstructured notes — "she seemed unsure about the onboarding" — because Hindsight documentation shows that the system stores and recalls semantic meaning, not structured fields. Reps log notes the way they naturally write. The system handles the rest.


The core idea behind agent memory isn't complicated: an agent that can't remember isn't really an agent. Every interaction should make the next one better. That's true for engineering incident response, for customer support, for sales.

In a sales context, the problem is acute because deals take months and reps carry dozens of them simultaneously. The rep who closes isn't the one with the best pitch. It's the one who shows up to every call knowing exactly where they left off, what the prospect cares about, and what still needs to be resolved. SalesMemory makes that possible without asking reps to change how they work.