<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: k.Jathin Sri varma</title>
    <description>The latest articles on DEV Community by k.Jathin Sri varma (@kjathin_srivarma_dcc6ac).</description>
    <link>https://dev.to/kjathin_srivarma_dcc6ac</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4147112%2F1a671299-8651-42cd-a749-2852914eedc3.jpg</url>
      <title>DEV Community: k.Jathin Sri varma</title>
      <link>https://dev.to/kjathin_srivarma_dcc6ac</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kjathin_srivarma_dcc6ac"/>
    <language>en</language>
    <item>
      <title>I built a sales agent that still remembers the deal after I close the tab</title>
      <dc:creator>k.Jathin Sri varma</dc:creator>
      <pubDate>Mon, 28 Sep 2026 12:24:03 +0000</pubDate>
      <link>https://dev.to/kjathin_srivarma_dcc6ac/i-built-a-sales-agent-that-still-remembers-the-deal-after-i-close-the-tab-3lfb</link>
      <guid>https://dev.to/kjathin_srivarma_dcc6ac/i-built-a-sales-agent-that-still-remembers-the-deal-after-i-close-the-tab-3lfb</guid>
      <description>&lt;p&gt;Sales work is not one conversation. It is weeks of meetings, emails, objections, pricing talks, and changing stakeholders. The details that matter most—who the CFO is, why price is a blocker, which competitor just entered the shortlist—are easy to lose between sessions.&lt;/p&gt;

&lt;p&gt;I built a conversational deal agent for that problem. It uses &lt;a href="https://github.com/vectorize-io/hindsight" rel="noopener noreferrer"&gt;Hindsight&lt;/a&gt; as persistent &lt;a href="https://vectorize.io/what-is-agent-memory" rel="noopener noreferrer"&gt;agent memory&lt;/a&gt; and Groq to generate answers, so it can recall deal context across interactions instead of starting from zero every time.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Sales representatives often reopen CRM notes, meeting transcripts, Slack threads, and personal notebooks just to reconstruct an active deal. That retrieval tax is expensive. Context is scattered across tools. Objections get buried. New teammates inherit incomplete history. Simple questions such as “What did we already say about pricing?” require hunting rather than asking.&lt;/p&gt;

&lt;p&gt;A chatbot that only remembers the current session is not enough. The useful agent is the one that still knows the deal after the app is restarted. This project gives the agent that capability. Over time it can recall customer and stakeholder details, objections, competitors, pricing discussions, deal status, and previous interaction context. The design goal is simple: the agent should get more useful the longer it is used.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;The Deal Intelligence Agent is a Streamlit chat application. A sales rep talks to it in natural language. Before each reply, the app asks Hindsight for memories related to the latest message. Those memories are added to the model context. After the reply, new deal information is stored so later questions can retrieve it.&lt;/p&gt;

&lt;p&gt;That loop—&lt;strong&gt;recall, generate, retain&lt;/strong&gt;—is the product. It is not a full CRM replacement. It is a memory-first conversation layer on top of deal knowledge: fast to query, persistent across sessions, and designed around how reps actually talk about deals.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;

&lt;p&gt;The flow is linear:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A sales rep sends a message in the Streamlit chat UI.&lt;/li&gt;
&lt;li&gt;The app calls &lt;strong&gt;Hindsight Recall&lt;/strong&gt; and pulls persistent memories relevant to that prompt.&lt;/li&gt;
&lt;li&gt;Recalled context is combined with the user message and sent to a &lt;strong&gt;Groq&lt;/strong&gt; LLM (&lt;code&gt;openai/gpt-oss-20b&lt;/code&gt; via an OpenAI-compatible API).&lt;/li&gt;
&lt;li&gt;The model produces the agent reply.&lt;/li&gt;
&lt;li&gt;The app calls &lt;strong&gt;Hindsight Retain&lt;/strong&gt; and stores the new deal information.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Memory sits in the critical path of every turn, not off to the side.&lt;/p&gt;

&lt;h2&gt;
  
  
  How memory works
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://hindsight.vectorize.io/" rel="noopener noreferrer"&gt;Hindsight&lt;/a&gt; is used in two places.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Recall.&lt;/strong&gt; Before generation, the application requests memories related to the latest user message:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
memories = recall(prompt)
![ ](https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/6ev27p34qwheunnvrkm3.png)
github - deal-intelligence-agent

![ ](https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/q0qhwg51s2a5jafdk04z.png)
app interface
![ ](https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/gp5qvce6bj6ppk4vtul2.png) 
in termal

![ ](https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/9x4dugr6czqs75uh8xgf.png)

Architecture
                    ┌──────────────────────┐
                    │      User / Sales Rep│
                    └──────────┬───────────┘
                               │
                               ▼
                    ┌──────────────────────┐
                    │   Streamlit Chat UI  │
                    └──────────┬───────────┘
                               │
                               ▼
                    ┌──────────────────────┐
                    │  Hindsight Recall    │
                    │  Persistent Memory   │
                    └──────────┬───────────┘
                               │
                               ▼
                    ┌──────────────────────┐
                    │      Groq LLM        │
                    │  openai/gpt-oss-20b  │
                    └──────────┬───────────┘
                               │
                               ▼
                    ┌──────────────────────┐
                    │      Agent Reply     │
                    └──────────┬───────────┘
                               │
                               ▼
                    ┌──────────────────────┐
                    │ Hindsight Retain     │
                    │ Save new deal memory │
                    └──────────────────────┘.  

team satya and jathin 
![ ](https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/n6x6zlqi8xe3to5i073j.jpg)


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>llm</category>
      <category>agents</category>
    </item>
  </channel>
</rss>
