[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f20c5hz7me6hhr":3},{"_id":4,"slug":5,"title":6,"subtitle":7,"kind":8,"cards":9,"tags":58,"categories":60,"source":62,"lang":65,"author":66,"audioState":69,"stats":70,"publishedAt":73,"renderer":74},"6abbd6dfca21c797c7e9e0bc","an-agent-that-remembers-what-you-actually-need-97ea3491","An Agent That Remembers What You Actually Need","A grocery assistant can answer “Where is the bread?” in a second.","news",[10,13,18,23,28,33,38,43,48,53],{"headline":6,"body":11,"imageUrl":12,"sourceImageUrl":12},"A grocery assistant can answer “Where is the bread?” in a second. That is not the interesting part.","https:\u002F\u002Fmedia2.dev.to\u002Fdynamic\u002Fimage\u002Fwidth=1200,height=627,fit=cover,gravity=auto,format=auto\u002Fhttps%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0kujkx94cqwuxb62nb9i.jpeg",{"headline":14,"body":15,"imageUrl":16,"images":17},"The harder problem is answering the next question","The harder problem is answering the next question correctly when the customer has already told the system something important earlier. “Naku brown bread ante chala istam, white bread vaddu.” “Naku brown bread ante chala istam, white bread vaddu.” “Which bread should I buy?” “Which bread should I buy?” A normal chatbot can understand the second sentence. A useful grocery assistant should connect it to the first one.","\u002Fapi\u002Fmedia\u002Fposts\u002Fan-agent-that-remembers-what-you-actually-need-97ea3491\u002F1.webp",{"local":16},{"headline":19,"body":20,"imageUrl":21,"images":22},"That is what I built with the GrocerAI","That is what I built with the GrocerAI Customer Agent: an AI shopping assistant that combines real-time store data, tool-based actions, multilingual conversations, customer-specific memory, and a persistent learning loop. The goal was not to build another chatbot. The goal was to make the customer experience become more useful over time. The Problem With a Normal Shopping Chatbot A grocery assistant has to answer questions about things that change constantly: What alternatives are available? What is already in the cart? What is still needed for the shopping mission? Has the customer mentioned a preference before? These are different kinds of information. Some belong to the current store state. Some belong to the customer's current session. Some are experiences that may become useful later. I therefore designed the Customer Agent around three layers:","\u002Fapi\u002Fmedia\u002Fposts\u002Fan-agent-that-remembers-what-you-actually-need-97ea3491\u002F2.webp",{"local":21},{"headline":24,"body":25,"imageUrl":26,"images":27},"The structured backend remains the source of truth","The structured backend remains the source of truth for current facts. Hindsight provides the memory layer for experiences that can influence future reasoning. The Customer Agent Is Tool-Driven The LLM is responsible for understanding the customer's request and deciding what information or action is needed. It does not directly invent inventory or shelf locations. Instead, it uses backend tools such as: “Do you have brown bread?” “Do you have brown bread?” That distinction matters. The model handles reasoning. The application handles authoritative store state. This makes the assistant much more useful than simply asking an LLM to generate an answer from its own knowledge. Adding Persistent Customer Memory The biggest change came when I added Hindsight. The Customer Agent can retain useful experiences and recall them when a future interaction makes them relevant.","\u002Fapi\u002Fmedia\u002Fposts\u002Fan-agent-that-remembers-what-you-actually-need-97ea3491\u002F3.webp",{"local":26},{"headline":29,"body":30,"imageUrl":31,"images":32},"I kept customer memories isolated using customer-specific memory","I kept customer memories isolated using customer-specific memory banks: This is important because personalization is only useful if the memory belongs to the correct customer. A preference from USER00001 should never influence USER00002. I explicitly tested this isolation rather than assuming it would work. Memory Should Survive Language Changes GrocerAI supports English, Telugu, Hindi, and mixed-language conversations. That created an interesting test. A customer can express a preference in Telugu: Later, they can ask in English: The useful behavior is not literal sentence matching. The agent needs to retrieve the underlying preference and connect it to the new request.","\u002Fapi\u002Fmedia\u002Fposts\u002Fan-agent-that-remembers-what-you-actually-need-97ea3491\u002F4.webp",{"local":31},{"headline":34,"body":35,"imageUrl":36,"images":37},"The same idea applies to other customer experiences","The same idea applies to other customer experiences, such as remembering lactose intolerance and later using that information when discussing alternatives such as oat milk. That is where persistent semantic memory becomes more useful than keeping a giant conversation transcript. The Customer Agent Also Understands Shopping Missions Shopping is rarely just a sequence of independent questions. A customer may have a mission: The Customer Agent can work with that mission while the customer browses the store.","\u002Fapi\u002Fmedia\u002Fposts\u002Fan-agent-that-remembers-what-you-actually-need-97ea3491\u002F5.webp",{"local":36},{"headline":39,"body":40,"imageUrl":41,"images":42},"It can identify what has already been completed","It can identify what has already been completed, what is still needed, and what actions can help the customer finish the mission. This turns the interaction from: “Ask a question → get an answer” “Ask a question → get an answer” “Start a shopping goal → receive assistance throughout the journey.” “Start a shopping goal → receive assistance throughout the journey.” Voice Uses the Same Agent I did not want voice to become a separate intelligence layer.","\u002Fapi\u002Fmedia\u002Fposts\u002Fan-agent-that-remembers-what-you-actually-need-97ea3491\u002F6.webp",{"local":41},{"headline":44,"body":45,"imageUrl":46,"images":47},"The same customer state, tools, mission, and memory","The same customer state, tools, mission, and memory can therefore be used whether the customer interacts through text or voice. That keeps the architecture consistent. From Big Store Display to Personal Companion GrocerAI also separates the physical store experience from personal customer assistance.","\u002Fapi\u002Fmedia\u002Fposts\u002Fan-agent-that-remembers-what-you-actually-need-97ea3491\u002F7.webp",{"local":46},{"headline":49,"body":50,"imageUrl":51,"images":52},"The main store display handles shopping interactions such","The main store display handles shopping interactions such as browsing, searching, product information, cart actions, navigation, and checkout. A customer can scan a QR code to activate a personal companion session. That session gets a customer identifier and can provide personalized information such as: shopping mission progress personalized aisle guidance synchronized cart information The important architectural rule is that the mobile experience is not a second independent cart. It shares the customer's active shopping session with the store display. The Complete Customer Learning Loop The final Customer Agent loop became: The important part is that memory is inside the decision cycle. It is not simply a page showing stored memories. 1. An LLM should not be the database Current inventory, cart state, mission state, and orders need deterministic application data.","\u002Fapi\u002Fmedia\u002Fposts\u002Fan-agent-that-remembers-what-you-actually-need-97ea3491\u002F8.webp",{"local":51},{"headline":54,"body":55,"imageUrl":56,"images":57},"The model should reason over that information rather","The model should reason over that information rather than becoming the source of truth. 2. Memory should be selective Not every conversation sentence deserves to become a long-term memory. Useful memory is information that can improve a future decision. 3. Personalization requires isolation A memory system that accidentally mixes customers destroys trust. Customer-specific memory boundaries therefore became a first-class architectural requirement. 4. Multilingual support becomes more valuable with memory Understanding Telugu or Hindi is useful.","\u002Fapi\u002Fmedia\u002Fposts\u002Fan-agent-that-remembers-what-you-actually-need-97ea3491\u002F9.webp",{"local":56},[59],"dev",[61],"Technology",{"name":63,"url":64},"Dev.to","https:\u002F\u002Fdev.to\u002Fadbuth_kumarkota_b65df72\u002Fan-agent-that-remembers-what-you-actually-need-29hp","en",{"handle":67,"displayName":68},"spots","Spots","queued",{"views":71,"likes":72,"saves":72,"shares":72,"completions":72,"opens":72,"skips":72,"depthSum":72},3,0,"2026-09-29T15:18:55.592Z","local"]