Building a University AI Chatbot Platform: Unified Authentication and Cross-Campus Sharing with LLMs

    How universities can deploy a large language model chat service for teaching: a case study covering unified identity authentication, federated login for consortium universities, RAG-based chat modes, and operational practices for secure, scalable open sharing.

    Building a University AI Chatbot Platform: Unified Authentication and Cross-Campus Sharing with LLMs

    1. Background: Bringing LLMs into University Teaching

    The rapid development of large language models has opened new possibilities for higher education. From intelligent Q&A and course tutoring to research assistance, LLMs are becoming core infrastructure in teaching scenarios. However, universities face several practical challenges when adopting these capabilities:

    1. Fragmented account systems: Public cloud LLM services typically require separate registration, making integration with a university’s existing identity system difficult;
    2. Limited access scope: A self-built platform usually serves only its own campus, so high-quality AI teaching resources struggle to reach other institutions;
    3. Compliance and security: Conversations between students and faculty involve privacy and academic integrity concerns, requiring controlled deployment and governance;
    4. Usability barriers: Faculty and students have varying levels of technical skill, demanding a unified, low-friction entry point.

    To address these issues, one university leveraged the combined strength of its IT center and its AI education research center to build an LLM chat platform open to all campus users and to partner universities, exploring a “self-built platform + consortium sharing” path for deploying educational AI.

    2. Platform Positioning and Design Approach

    2.1 Dual-Center Governance

    The platform is jointly run by the university’s IT center and its AI education research center—a model worth emulating:

    • The IT center handles infrastructure, account integration, network access, and service stability—essentially a platform engineering role;
    • The education research center defines usage policies for teaching scenarios, prompt-based sample courses, and teaching effectiveness evaluation, ensuring AI capabilities genuinely serve teaching rather than remaining a novelty.

    Clear division of labor between the technical team and the pedagogy team is a key prerequisite for sustainable operation of a university AI platform.

    2.2 A Two-Tier “Internal Use + Sharing” Architecture

    The platform is designed with two layers:

    • Campus tier: For faculty and students of the host university, logging in via campus unified identity authentication;
    • Consortium tier: Open to member universities of a national education federation identity network (similar to CARSI-style mechanisms). External users authenticate with their own campus accounts through federated identity.

    This federated authentication approach puts the “build once, benefit many universities” principle into practice. According to public information, the platform has been shared with more than 800 consortium universities, forming a large-scale educational AI sharing initiative.

    3. Unified Identity Authentication Design

    3.1 Technical Essentials of Multi-Path Login

    The platform supports two login paths, backed by two different authentication mechanisms:

    Campus unified identity authentication (CAS/OAuth-style protocols)

    Campus users select the unified authentication entry on the login page. The platform redirects them to the university’s authentication center, and after successful verification, a token is returned. The typical flow:

    1. User request → Platform login page → Redirect to campus auth center
    2. → User enters campus credentials → Auth center verifies
    3. → Redirect back with authorization code → Platform exchanges code for token
    4. → Session established, user enters chat interface

    Federated authentication (consortium university users)

    External users choose the federation login entry, first search for and select their home university, then complete verification through that university’s identity system. This flow relies on the cross-institutional trust framework established by the education federation:

    1. User selects federated login on the platform’s login page;
    2. The platform displays the list of member universities, and the user locates their institution;
    3. The user is redirected to their home institution’s IdP for authentication;
    4. After successful authentication, the platform receives only minimal user attributes (e.g., home institution, anonymized identifier);
    5. A session is established and access is granted according to federation policies.

    Engineering tip: Cross-institutional authentication should follow the principle of minimal attribute disclosure—request only the least user information needed for authorization, avoiding exposure of sensitive personal data to the platform. This is a widely accepted best practice in SAML/OIDC federated authentication design.

    3.2 Compliance Interaction on First Login

    On first login, the platform requires users to accept the terms of use, with a “don’t show again” option. From a product perspective, this design balances two goals:

    • Compliance: Clearly informing users of data usage boundaries and behavioral rules, while retaining a record of consent;
    • Experience: Persisting the consent state avoids repeated interruptions and reduces friction.
    1. {
    2. "first_login": true,
    3. "terms_version": "v1.0",
    4. "user_consent": true,
    5. "consent_record": "2025-02-20T10:00:00Z"
    6. }

    When implementing this, record the terms version number and re-trigger the consent flow whenever the terms are updated.

    4. Multiple Access Entry Points

    The platform offers three access paths to accommodate different usage habits:

    Access Method Use Case Technical Considerations
    Direct URL access Frequent users, bookmark entry Ensure availability of a dedicated domain with full HTTPS encryption
    Campus portal integration New users, official entry point Managed through the smart campus portal to boost trust
    Mobile access Fragmented learning scenarios Responsive design or a mobile app wrapper

    When multiple entry points coexist, session consistency matters: the same user logging in from different entry points should share unified session state and quota, avoiding a fragmented experience. The common solution is centralized session management combined with single sign-on (SSO).

    5. Organizing Chat Modes

    After login, the platform offers multiple chat modes for users to choose from:

    1. Web search mode: Combines real-time retrieval with LLM generation, suitable for time-sensitive queries. Technically, this usually follows the Retrieval-Augmented Generation (RAG) paradigm—relevant web content is retrieved first, then the model synthesizes an answer—significantly reducing hallucination risk;
    2. Deep thinking mode: For complex tasks such as math reasoning, coding, and logical analysis, it invokes models with reasoning-chain capabilities, trading some response speed for reasoning quality.

    For teaching purposes, it helps to guide students and faculty toward this mental model:

    • Fact lookup and material summarization → Web search mode;
    • Problem solving, paper ideation, code debugging → Deep thinking mode;
    • Personal privacy or unpublished research data → Input with caution and follow data compliance requirements.

    6. Operations and Security for Open Sharing

    Serving hundreds of universities places high demands on operations. Key practices include:

    1. Elastic scaling: Chat traffic has clear peaks (semester start, exam weeks). Use container platforms for on-demand scaling, with queueing to smooth inference load spikes;
    2. Access auditing: Log login sources, authentication methods, and usage frequency—for security auditing as well as later teaching effectiveness analysis;
    3. Content safety: Deploy bidirectional content filtering on both input and output, in line with generative AI service regulations;
    4. Quotas and fairness: Set reasonable usage quotas for consortium users to prevent a small number of users from exhausting resources and to keep the service fair;
    5. Graceful degradation: When one inference channel fails, fall back to a backup model service to maintain baseline availability.

    7. Conclusion and Outlook

    This case shows that universities don’t have to choose between “building everything from scratch” and “fully depending on external services”—a middle path exists:

    • Use unified identity authentication as the foundation to lower adoption barriers;
    • Use an educational federation identity system as the bridge for cross-campus sharing;
    • Use dual-center governance (technology + pedagogy) to ensure AI genuinely integrates into teaching.

    For university IT teams planning similar platforms, prioritize three issues first: account system integration, compliance terms design, and elastic compute planning. On that foundation, gradually add teaching-oriented features such as course-specific assistants, homework integrity checks, and prompt engineering case libraries—moving the LLM from “usable” to “indispensable” as core infrastructure for digital transformation in education.