AIEE.DEVSOQ TMS CRD
HomeExport PDFOverview

Contents

/
  • 1.1Overview
  • 1.2About AIEE.DEV
  • 1.3Parties & sign-off
  • 2.1Plan SOQ-25K
  • 2.2Max claim (EDG)
  • 2.3Rate card
  • 3.1Discovery pack
  • 3.2Brand & website appendix
  • 4.1Attachment A
  • 4.2PRD
  • 4.3Solution overview
  • 4.4Registration
  • 4.5Admin
  • 4.6CRM & sales
  • 4.7Student & trainer portals
  • 4.8SWDA & finance
  • 4.9Platform
  • 4.10Chat agents
  • 4.11Ops modules
  • 4.12Business benefits
  • 4.13DSMR research
  • 4.14Build vs buy
  • 4.15Market & competitors
  • 5.1Project control plan
  • 5.2Prototype & screens
  • 5.3Capability roadmap
  • 5.4UI/UX
  • 5.5Frontend
  • 5.6Backend
  • 5.7Architecture
  • 5.8Tech spec
  • 5.9Directory structure
  • 5.10Handover pack
AIEE.DEVSOQ TMS / Coding Requirement Documentation
4.10 / 4.10 Chat agents
Pei Han CCO / Eddy CPO / HK CSO / Andy Koh CTOaiee.dev4.10 / Confidential
4. Requirements4.10 Chat agents
Section 4.10

Chat Agents — OpenRouter & Personas

One OpenRouter gateway, multimodal models, and a customisable chat agent per user — Student, Educator, Company, and Admin packs.

Decision (locked for product design)

ChoiceValue
LLM gatewayOpenRouter — single API key, multi-provider, model hot-swap
MultimodalYes — text + images + PDFs (certificates, attendance sheets, NRIC/passport scans where allowed)
Agent modelEvery user gets their own chat agent (isolated threads + memory scoped to that user)
CustomisationPersona packs + per-org overrides (prompt, tools, model tier, knowledge scope)
PhasePhase 2 after Plan SOQ-25K core TMS go-live (not in the 28-day MVP build)

Why OpenRouter

  1. One integration — SOQ TMS talks to OpenRouter only; swap models without rewriting the app.
  2. Open + closed models — use open-weight for cost, premium closed for hard funding/policy questions.
  3. Failover — if one provider is down, route to a backup model ID.
  4. Spend control — per-model and per-org budgets; log every call with user_id + agent_id.

Secrets: OpenRouter API key lives in server env only. Browsers never see the key. Chat goes through SOQ TMS /api/chat with auth + RBAC.


Recommended models (via OpenRouter)

Pick one default + one open + one premium. Admin can change the mapping later without a deploy.

TierSuggested OpenRouter modelUse forMultimodal
Default (volume)google/gemini-2.5-flash (or current Gemini Flash on OpenRouter)Student & educator everyday chat, image/PDF Q&AText - image - PDF
Open-weightqwen/qwen2.5-vl-72b-instruct (or current Qwen VL / Qwen3 VL Max)Cost control, open-model preference, on-prem path laterText - image
Premium reasoninganthropic/claude-sonnet-4 (or current Claude Sonnet)Admin / funding / policy answers that need careful groundingText - image
Budget fallbackopenai/gpt-4o-mini or Gemini Flash-LiteOutage failover, short FAQ repliesText - image

Practical default for SOQ

ChoiceModelWhy
DefaultGemini FlashBest speed / cost / multimodal for training ops
Open optionQwen VLOrg-wide or per-persona open-weight preference
Premium (Admin / funding)Claude SonnetCloser adherence to policy text

Model IDs on OpenRouter change over time. Store them as config (agent_profiles.model_id), not hard-coded constants. Re-validate IDs at kickoff of Phase 2.


Persona packs (customisable)

Every signed-in user gets their own agent instance: private thread history, optional short-term memory, and tools limited by role.

PersonaWhoAgent jobAllowed context (RAG / tools)Default model tier
StudentLearnersCourse help, schedule, fees due, attendance status, "what's next"Own enrolment, timetable, invoices, course materialsDefault (Flash)
EducatorTrainers / lecturersRoster, session prep, attendance help, marking guidanceOwn classes, roster, session materialsDefault (Flash)
CompanyCorporate sponsors / HRStaff enrolments, invoices, progress summariesOwn company cohort onlyDefault (Flash)
AdminSOQ ops / admissions / financeOps Q&A, Student 360 summaries, SWDA status explainersRole-scoped TMS data + approved SOP docsPremium (Sonnet)
Sales (optional)Agents / CRM usersLead follow-up scripts, course recommendersOwn leads + public catalogueDefault (Flash)

What “customisable” means

SOQ (or AIEE.DEV on behalf of SOQ) can edit without code:

SettingExample
Display name & avatar"SOQ Study Buddy", "Trainer Copilot"
System promptTone, language (EN first; ZH later), what to refuse
Model tierDefault / Open / Premium
Knowledge basesCourse handbook, FAQ, SOPs (per persona)
Tools on/offLookup attendance - create lead note - draft email (never auto-submit SWDA)
ModalitiesText only - text+image - text+image+PDF
GuardrailsNo PII to other students; no inventing grant amounts; escalate to human

Product behaviour

Technical architecture
Rendering diagram…
Interaction sequence
Rendering diagram…

Rules (non-negotiable)

  1. One agent per user — no shared chat history across students.
  2. RBAC before RAG — the agent only sees what the user’s role already allows in the TMS.
  3. No silent government submits — SWDA / Xero writes need human confirmation.
  4. PDPA — chat logs retention policy; redact NRIC in prompts where possible; Singapore region storage preference.
  5. Audit — every reply stores model_id, tokens, persona, and whether tools were used.

Scope vs Plan SOQ-25K

In Plan SOQ-25K (28 days)Phase 2 Chat Agents
Core TMS portals, SWDA hub skeleton, Xero pathOpenRouter gateway + chat UI
Rules engine / workflow automationPersona packs + per-user agents
Document storageMultimodal upload in chat
—Admin console to customise agents

Commercial: Phase 2 is a fixed add-on — quote separately after core handoff (no maintenance retainer).


Acceptance criteria (Phase 2)

  1. OpenRouter key configured; chat works for Student and Admin personas in staging.
  2. Multimodal: user uploads a PDF or image and gets a grounded answer from allowed context.
  3. Student A cannot see Student B’s chat or enrolment data via the agent.
  4. Admin can change model tier and system prompt for the Student pack without a deploy.
  5. Failover: if primary model errors, agent retries with configured fallback model.

Related

Link
4.9 Platform services — RBAC, notifications, audit
4.11 Ops modules — Singpass - payments - CareerFuture add-ons
4.12 Business benefits — Phase 2 capability map
4.7 Student & trainer — portal surfaces where chat lives
4.9 Platform4.11 Ops modules

aiee.dev / Confidential

AIEE.DEV