Better HN
topnewbestaskshowjobs
Log inSign up

marcospassos

12 karma · joined Jul 20, 2023 (3y ago) · 10 submissions

Submissions

1.

Show HN: CMS-Powered UI Components(croct.com ↗)

2 points · by marcospassos · 1y ago · discuss

comment 1y ago · link · parent

Yep, that's something I'd have to figure out.

comment 1y ago · link · parent

The value is building the context itself.

Using MCP, this could be a method that would get the context to take decisions.

For example, here's an example of how I use it currently:

```

const context = await getContext();

const response = await generateText({ system: `Here's the user context: ${context}`, messages: [...] });

console.log(context);

// "First-time visitor using Google Chrome on a MacBook, browsing from San Francisco.

// Landed on the pricing page from a Google ad, clicked to compare plans,

// then visited the enterprise section before initiating a support chat."

```

It's like a session recorder for LLMs that captures rich user behavior and traits (like device, browser, location, and journey) and turns them into LLM context. Your agent or app instantly becomes more helpful, relevant, and aware without wiring up your own tracking and enrichment pipeline.

comment 1y ago · link · parent

Exactly! Something like a tag you install and then query prompt-ready contexts.

comment 1y ago · link · parent

Super interesting! However, it focuses on external sources rather than the user journey.

comment 1y ago · link · parent

That's a good approach. But what I'm looking for is a bit different, more like Segment, but for LLMs. Something that when a user lands on your website, clicks around, and interacts with your app, you get a full behavioral context out of the box, including click path, location, language, currency, etc. You can then inject that context directly into your prompt so the LLM understands what the user is doing and responds without guessing or asking.

comment 1y ago · link · parent

It might help with context generation. But honestly, most of the work is still in tracking, processing, enriching (different services, like IP location, etc), and all the plumbing around it.

comment 1y ago · link · parent

Yeah, exactly. My whole point is to avoid doing all that. It adds up fast. What I really want is something that handles the heavy lifting end-to-end: tracking, interpreting, and outputting a prompt-ready summary like:

"The user landed on the pricing page from a Google ad, clicked to compare plans, then visited the enterprise section before initiating a support chat."

9.

Ask HN: Building LLM apps? How are you handling user context?

31 points · by marcospassos · 1y ago · 18 comments

10.

Show HN: Dynamic headless CMS with built-in CDP, AB testing and personalization(docs.croct.com ↗)

22 points · by marcospassos · 2y ago · discuss