So yesterday I built a real estate AI chatbot that runs the entire pipeline for agents. However, I got stuck on how to track the user across sessions. The frustrating part is that I did not know how to solve this, so I trusted the AI to solve it for me somehow. That did not work at all.
But after some back and forth I found a hacky solution. I bet a senior dev would not like it, but it worked, so. But here is what I did later that day: I went to Claude and asked it:
"How do people track not-signed-in users across sessions?"
And that's when it shared how they go about it:
- Anonymous IDs (most common): Generate a random UUID on first visit.
- Session cookies: The server sets a cookie on the first request.
- Fingerprinting (less reliable, more controversial)
- Identity stitching
Here's the thing: I had no clue how any of this worked, but I figured I should learn about it. So I went into Antigravity and asked it to build a system for me, so I could test it out and see how it works. And once the build was done, I copied it by hand and tried to understand how it works.
And this is the exciting thing about the time we're living in right now. You can come across a problem and use Claude as your teacher to learn something. And if you're savvy enough, you'll be able to understand how it works and build it yourself.