Feature Requests

User-Awareness

M
Marcos AlcozerinFeature Requests
8 months ago

Inject user context (name, role, school assignment) into every prompt so Kai can tailor responses to who is asking.

Problem

Today, Kai treats every prompt the same regardless of who is asking. A teacher at Lincoln Elementary asking "How was attendance in my homeroom last month compared to the months prior?" gets no better treatment than another user. Kai doesn't know they're a teacher, which school they're at, or which students are theirs.


This forces users to over-specify every question or for Kai to repeatedly ask clarifying questions. Instead of asking naturally — "How are my students doing in math?" — they have to spell out "How are the 3rd grade students at Lincoln Elementary doing in math for Ms. Johnson's class?" Every time. The burden of context falls entirely on the user.


This is especially painful for teachers and school leaders who work within a narrow, well-defined scope (their school, their grade, their students) and ask the same kinds of scoped questions repeatedly. District-level staff are affected too — a superintendent asking "How did our schools perform?" expects district-wide results without having to say "across all schools in the district."

Proposed Solution

When a user sends a message, Kai automatically injects their profile context into the prompt sent to the agent. The agent uses this context to scope queries and personalize responses.


  • User context is injected transparently — the user doesn't see it, but Kai's responses reflect their identity

  • Context includes attributes like: name, role (teacher, principal, district admin), school assignment, grade level (if applicable)

  • The agent uses this context to resolve ambiguous references: "my students," "our school," "my homeroom," "last month's attendance"

  • When a question is ambiguous, the agent defaults to the user's scope — a teacher asking "How's attendance?" gets their school's data, not a district-wide dump

  • Users can still explicitly ask about data outside their default scope (e.g., "How's attendance at Jefferson Middle?") — user awareness sets smart defaults, it does not enforce access boundaries (see Role-Based Data Access Controls for security enforcement)

User Stories

  • As a teacher, I want Kai to know my school and course sections so that when I ask "How was attendance in my homeroom?", it returns data for my students without me having to specify every detail.

  • As a principal, I want Kai to know I'm at Lincoln Elementary so that "How are we doing on chronic absenteeism?" automatically scopes to my school.

  • As a district admin, I want Kai to know my role so that "How are our schools performing?" returns district-wide results appropriate to my level.

  • As a data team member, I want Kai to greet me by name and understand my role so that our conversations feel natural and contextual from the first message.

Success Criteria

  • User profile context (name, role, school assignment) is included in every prompt sent to the agent

  • Ambiguous references like "my students," "our school," and "my homeroom" resolve correctly based on user context

  • A teacher asking "How's attendance?" sees their school's data by default, without specifying school or class

  • A principal asking the same question defaults to school-level data

  • A district admin asking the same question defaults to district-wide data

  • A user can still override the default scope by being explicit (e.g., "How's attendance district-wide?") — this feature does not restrict access

  • Users do not need to re-state their identity or scope in follow-up questions within a conversation

Open Questions

Which attributes live on the user profile vs. get fetched dynamically?

An example:

  • User-maintained (imported at account creation, editable by the user): name, role (teacher, principal, district admin), site/school assignment. These are stable, identity-level attributes that change infrequently.

  • Agent-fetched (queried at runtime from the data warehouse): course section identifiers, rosters, schedules. These are volatile, SIS-sourced attributes that change term-to-term. The agent resolves them dynamically when the user's question requires that level of scoping.


  • How should the agent handle cases where user context is incomplete (e.g., a user with no school assignment)?

Out of Scope

  • Data access restrictions or security enforcement — user awareness sets defaults, not boundaries. See Role-Based Data Access Controls for restricting what data users can see.

  • User-configurable preferences or settings (e.g., "always show me bar charts") — separate feature

Platform

This feature is Kai web app specific, and would not be available for those using Kai through Gemini Enterprise.

  1. In Review
  2. Planned
  3. In Progress
  4. Completed
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...