apps/docs/user-profiles/use-cases.mdx
The most common use case: building AI assistants that truly know your users.
What profiles provide:
Example prompt enhancement:
const systemPrompt = `You are assisting ${userName}.
Their background:
${profile.static.join('\n')}
Current focus:
${profile.dynamic.join('\n')}
Adjust your responses to match their expertise level and preferences.`;
Result: An assistant that explains React hooks differently to a junior developer vs a senior architect.
Give support agents (or AI) instant context about customers.
What profiles provide:
Benefits:
// Support agent dashboard
async function loadCustomerContext(customerId: string) {
const { profile } = await getProfile(customerId);
return {
summary: profile.static, // Long-term customer info
recentIssues: profile.dynamic // Current tickets, recent problems
};
}
Adapt learning content to each student's level and progress.
What profiles provide:
Example adaptation:
// Profile might contain:
// static: ["Visual learner", "Strong in algebra, struggles with geometry"]
// dynamic: ["Currently studying calculus", "Preparing for AP exam"]
const tutorPrompt = `You're helping a student with:
${profile.static.join('\n')}
Current focus: ${profile.dynamic.join('\n')}
Adapt explanations to their learning style and build on their strengths.`;
IDE assistants and coding tools that understand your codebase and habits.
What profiles provide:
Example:
// Profile for a developer:
// static: ["Prefers TypeScript", "Uses functional patterns", "Senior engineer"]
// dynamic: ["Working on auth refactor", "Recently learning Rust"]
// Code assistant knows to:
// - Suggest TypeScript solutions
// - Use functional patterns in examples
// - Provide senior-level explanations
// - Connect suggestions to the auth refactor when relevant
Internal tools that understand each employee's role and responsibilities.
What profiles provide:
Example:
// HR assistant that knows:
// - Employee's team and manager
// - Their location/timezone
// - Recent PTO requests
// - Benefits elections
const response = await hrAssistant.answer(
"When is my next performance review?",
{ profile: employeeProfile }
);
// Can answer with specific dates, manager name, etc.
Personalized shopping experiences beyond basic recommendation engines.
What profiles provide:
Example conversation:
User: "I need something for a wedding next month"
// Profile knows: prefers classic styles, size M, budget-conscious,
// previously bought navy suits