Bỏ qua để đến nội dung

AI Deep Resource Integration (Feature Spec)

DomainsDOL EnglishUX2.275 words11 min read
active
  • User Goal: Người dùng muốn có cái nhìn toàn diện (Holistic View) về tình hình học tập mà không cần truy cập thủ công vào từng trang con (Lịch, Bài tập, Điểm danh).
  • System Goal: Chuyển đổi Smart Search Widgets từ “Static Display” sang “Deep Aggregation Hub” - tự động tổng hợp và chế biến dữ liệu thô từ nhiều nguồn.

Tính năng này hoạt động dựa trên cơ chế Cross-Resource Synthesis (Tổng hợp chéo).

Mỗi AI Widget được thiết kế với một Cấu trúc UI (Metaphor) riêng biệt để phục vụ User Intent cụ thể, tránh việc dùng chung template generic.

AI IntentUser ProblemCore MetaphorUnique UI Structure
ACT_AI_PLAN
(Catch-up Plan)
“I missed class and feel behind.”The Rescue MissionTimeline of Recovery
- Axis: Past Sessions (Absent/Late)
- Content: Only “Must-Watch” clips + “MVP” Tasks.
- Action: Checklist interactions.
ACT_AI_EXPLAIN
(Concept Clarifier)
“I don’t understand this concept.”The FlashcardContrast Card
- Axis: Concept Definition
- Content: “Bad Example” vs “Good Example” side-by-side.
- Action: Related Concepts chips.
ACT_AI_SCHEDULE_PREP
(Class Prep)
“What do I need for tomorrow?”The Forward LinkFuture Timeline
- Axis: Upcoming Sessions (Next 7 days)
- Content: Pre-read materials + Debt alerts.
- Action: “Read Now” button.
ACT_AI_STATS
(Performance)
“How am I doing?”The DashboardData Visualization
- Axis: Time (Days/Weeks)
- Content: Radar Charts + Trend Lines.
- Action: Deep Dive filters.
ACT_VOCAB_CONNECT
(Vocab Bridge)
“How do I use these words?”The BridgeContextual Sentences
- Axis: Word-to-Lesson
- Content: “Word saved last week” -> “Appearing in tomorrow’s text”.
graph TD
User[User Intent] -->|Trigger| AI_Widget
subgraph "Practice Journey (Data Sources)"
AI_Widget -->|Pull Attendance| DB_Attendance[Attendance Logs]
AI_Widget -->|Pull Completion| DB_Activities[Activity Records]
AI_Widget -->|Pull Performance| DB_Results[Test Scores & Skill Tags]
end
subgraph "Schedule Prep (Data Sources)"
AI_Widget -->|Scan Future| DB_Schedule[Calendar Sessions]
AI_Widget -->|Deep Dive| DB_Syllabus[Lesson Content & Pre-read]
AI_Widget -->|Scan Past| DB_Homework[Unfinished Assignments]
end

3.1. Practice Journey Widget (Thống kê quá trình)

Phần tiêu đề “3.1. Practice Journey Widget (Thống kê quá trình)”

Logic: “The Learning Health Check” Thay vì chỉ hiện điểm số, widget phải trả lời được 3 câu hỏi: “Có đi học đều không?”, “Có làm bài đủ không?”, và “Kết quả thế nào?”.

ComponentDữ liệu nguồn (Source)Logic xử lý (Processing)
1. Effort MeterAttendanceLog, ActivitySubmissionTổng hợp số buổi đi học + số bài tập đã làm trong tuần. So sánh với tuần trước (momentum).
2. PerformanceTestResult, SkillTagTính điểm trung bình (AVG Score) và xác định Skill yếu nhất (Weakest Link).
3. Habit InsightActivityTimestampPhân tích khung giờ làm bài thường xuyên (e.g., “Night Owl” vs “Weekend Warrior”).

UI Presentation:

  • Attendance Heatmap: Một dải nhỏ hiển thị trạng thái điểm danh (Xanh/Đỏ).
  • Skill Radar: Biểu đồ cân bằng kỹ năng.
  • AI Advice: Text tự động sinh ra từ sự tương quan giữa các nguồn (e.g., “Bạn đi học đầy đủ nhưng điểm Reading thấp -> Cần xem lại phương pháp, không phải do lười”).

Logic: “The Forward-Backward Link” Kết nối tương lai (Bài mới) với quá khứ (Nợ cũ) để tạo ra một Action Plan hoàn chỉnh.

ComponentDữ liệu nguồn (Source)Logic xử lý (Processing)
1. UpcomingSessionSchedulerXác định 2 buổi học gần nhất.
2. SyllabusCourseSyllabus, ResourceBankLấy tên bài học -> Truy xuất video/tài liệu type=pre-read liên quan.
3. Debt CheckActivityLog (History)Quét các bài tập của 3 buổi học trước có status=incompleteisRequired=true.

UI Presentation:

  • Timeline Card: Hiển thị buổi học sắp tới nổi bật.
  • “Prep” Chip: Link trực tiếp đến video bài giảng cần xem trước.
  • “Debt” Alert: Dòng cảnh báo đỏ “Bạn còn nợ BTVN Unit 3” ngay bên cạnh lịch học mới -> Tạo áp lực tích cực.

Logic: “The Rescue Mission” Dành cho học viên đang bị tụt hậu (Falling Behind).

ComponentDữ liệu nguồn (Source)Logic xử lý (Processing)UI Output
1. Missing SessionsAttendanceLogTìm các buổi có status=Absent trong 2 tuần gần nhất.Timeline buổi vắng.
2. Knowledge GapSessionRecordLấy video bài giảng của buổi vắng + Slide bài học.Link “Xem Video (đoạn trọng tâm)“.
3. Minimum Viable PracticeKeyAssignmentsLọc ra các bài tập priority=high của buổi đó (Bỏ qua bài phụ).Checklist “Làm ngay để đuổi kịp”.

Logic: “The Precision Surgeon” Dành cho học viên muốn cải thiện một kỹ năng cụ thể (e.g., Writing Task 1).

ComponentDữ liệu nguồn (Source)Logic xử lý (Processing)UI Output
1. Error PatternQuestionTagsQuét toàn bộ lịch sử 30 bài gần nhất, filter theo tag=“Writing Task 1”. Tìm tags con có % sai cao nhất (e.g., “Overview”).Chart “Top Lỗi Sai”.
2. Teacher VoiceTeacherCommentsTổng hợp lại các lời phê cũ có keywords liên quan đến lôi sai đó.Quote “Thầy Huy đã nhắc 3 lần về…“.
3. Targeted CureKnowledgeBaseMap lỗi sai -> Bài lý thuyết/Bài mẫu (Sample) khắc phục lỗi đó.Card “Bài mẫu Band 8.0 cho dạng này”.

Logic: “The Finisher” Dành cho giai đoạn cuối khóa hoặc sát ngày thi.

ComponentDữ liệu nguồn (Source)Logic xử lý (Processing)UI Output
1. Gap AnalysisMockTestScores, InputTargetTính khoảng cách (Gap) giữa điểm thi thử gần nhất và Target đầu vào.Progress Bar “Bạn đang ở 6.5/7.0”.
2. VelocityLearningVelocityTính tốc độ tăng điểm trung bình (Band/Month). Dự báo thời gian đạt Target.Text “Dự kiến đạt mục tiêu sau 3 tuần”.
3. Focus AreaSkillDistributionChỉ ra kỹ năng đang kéo điểm xuống thấp nhất.Alert “Cần tăng cường Listening Part 4 ngay”.

Logic: “The Granular Collector” Tận dụng các lỗi sai nhỏ lẻ (Granular Mistakes) từ lịch sử làm bài để tạo giá trị ôn tập mới.

ComponentDữ liệu nguồn (Source)Logic xử lý (Processing)UI Output
1. Mistake HarvestingQuestionLog, SubmissionDetailQuét toàn bộ câu trả lời sai (isCorrect=false) trong 3 tháng qua. Phân loại theo Tags (Grammar, Vocab, Logic).Action “Ôn lại 34 câu sai Grammar”.
2. Pattern RecognitionErrorTagDistributionTìm ra các “Lỗi hệ thống” (lặp lại > 3 lần). Ví dụ: Sai thì quá khứ hoàn thành 5 lần.Alert “Bạn đang yếu phần Past Perfect”.
3. Fix-it QuizQuestionBankTạo một bài Quiz mới chỉ gồm các câu từng làm sai (Re-test) hoặc các câu tương tự (Clone).Button “Làm bài Fix-it Quiz (15p)“.

3.7. AI Vocabulary Connector (Kết nối Từ vựng)

Phần tiêu đề “3.7. AI Vocabulary Connector (Kết nối Từ vựng)”

Logic: “The Context Bridge” Xóa bỏ khoảng cách giữa từ vựng đã học và bài học sắp tới.

ComponentDữ liệu nguồn (Source)Logic xử lý (Processing)UI Output
1. Saved WordsVocabLog, FlashcardDeckLấy danh sách các từ vựng user đã lưu/bookmark hoặc làm sai trong quá khứ.List từ vựng cần chú ý.
2. Future ContextSyllabus, LessonTranscriptScan nội dung bài học ngày mai (Reading text, Listening script) để tìm sự xuất hiện của các từ đã lưu.Highlight “Từ ‘Ubiquitous’ bạn lưu tuần trước sẽ xuất hiện bài mai”.
3. Prime ActivationDefinitionDatabaseGợi ý ôn nhanh nghĩa của các từ này trước giờ học để tăng khả năng nghe hiểu/đọc hiểu.Flashcard “Ôn nhanh 3 từ này”.

3.8. AI Tutor Output Artifact Alignment (DEC-0085)

Phần tiêu đề “3.8. AI Tutor Output Artifact Alignment (DEC-0085)”

Để tránh output generic, mỗi AI deep resource widget phải map rõ với artifact taxonomy của AI Tutor.

AI Tutor ArtifactMục tiêu trong Course OpsRender form ưu tiênHành động bắt buộc
concise_answerTrả lời nhanh một khái niệm/bối cảnh lớp họcflashcard ngắn + 1 ví dụcontinue_chat hoặc mở resource liên quan
guided_checklistKế hoạch bù bài / prep trước buổi họcchecklist theo timelineopen_resource hoặc open_task
mini_exerciseLuyện tập nhanh trong luồng chatmicro-quiz/fix-it promptopen_exercise hoặc luyện tiếp trong chat
diagram_or_mindmap_readyTóm tắt cấu trúc kiến thứcnode-edge text block hoặc visual chartopen_resource deep-dive
progress_insightGiải thích tiến độ học trong course contextwindowed insight card (today/7d/30d)open_plan hoặc open_progress

Action continuity rule:

  • Với mọi artifact không tầm thường, phải có ít nhất 1 next action.
  • Không dừng ở insight text-only nếu có thể mở bước học tiếp theo.

Diagram/mindmap fallback rule:

  • Ưu tiên visual_native khi surface hỗ trợ.
  • Nếu vượt complexity/performance gate hoặc thiếu renderer:
    • fallback về structured_graph_text,
    • và fallback tiếp về guided_checklist khi cần.

Grounding and provenance rule:

  • Widget phải ưu tiên dữ liệu từ course/practice/history trước fallback tổng quát.
  • Nếu dùng fallback do thiếu dữ liệu platform, bắt buộc hiển thị note minh bạch dữ liệu.
  • Provenance visibility dùng depth policy compact|standard|detailed(on-demand) theo segment.

Để AI deep resource thực sự “giúp làm việc” thay vì chỉ hiển thị insight, mỗi widget/portal có thể phát ra UI actions an toàn thông qua action registry.

Action familyVí dụ trong course contextRule thực thi
navigatemở đúng tab Homework, Schedule, Resource, Progressroute contract phải hợp lệ trước khi mở
reveal_focusmở accordion, chuyển tab, scroll tới block cần xem, focus ô tìm kiếmchỉ dùng semantic target key, không dùng raw selector
highlighthighlight bài cần làm, quote teacher note, metric card, feedback blocknếu target mất, fallback về section gần nhất + notice
lightweight_set_stateprefill query, set filter skill/duration/status, preselect optionchỉ auto-run với thay đổi reversible và không destructive
protected_actionsubmit, payment, gửi request, thao tác có impact học vụkhông auto-run; phải confirm hoặc bị chặn

Target binding rule:

  • Widget và portal chỉ được trỏ tới semantic target keys do screen/module đăng ký.
  • Không encode DOM selector, pixel position, hay text snippet ngẫu nhiên trong payload AI.

Artifact-to-action expectation:

  • guided_checklist:
    • được phép mở đúng lane + highlight checklist item liên quan.
  • mini_exercise:
    • được phép focus vùng nhập/challenge prompt để learner bắt đầu ngay.
  • diagram_or_mindmap_ready:
    • được phép reveal block visual hoặc fallback text tương ứng trên surface hiện tại.
  • progress_insight:
    • được phép mở đúng window card (today/7d/30d) và highlight metric đang được AI giải thích.
  • continue_chat:
    • được phép focus composer của AI Tutor portal với context continuity.

3.9. Exercise Coaching Integrity Boundary (DEC-0084)

Phần tiêu đề “3.9. Exercise Coaching Integrity Boundary (DEC-0084)”
  • Nếu learner đang ở active attempt (assignment/test/exercise chưa nộp):
    • AI chỉ hỗ trợ theo hint ladder (orientation -> concept -> scaffolded steps -> self-check),
    • không đưa final answer/answer key/full rewrite để nộp.
  • Khi attempt đã finalized và user vào từ Result:
    • được phép cung cấp full reference explanation có label rõ reference.
  • Data Gap: Nếu học viên mới chưa có dữ liệu quá khứ -> Hiển thị “Onboarding Mode” (Gợi ý bài test trình độ).
  • No Schedule: Nếu khóa học đã kết thúc -> Suggest “Đăng ký khóa tiếp theo” hoặc ” Review bài cũ”.
  • Sync Latency: Dữ liệu realtime (vừa nộp bài xong) cần được cache invalidation để hiển thị ngay lập tức.
  • DEC-0083: Grounded knowledge priority + provenance transparency cho AI Tutor responses.
  • DEC-0084: Active-attempt integrity rule, không làm bài hộ learner.
  • DEC-0085: Output artifact taxonomy và action continuity cho AI deep resources.
  • DEC-0090: Diagram/mindmap layered rendering fallback policy.
  • DEC-0091: Provenance visibility depth policy theo segment.
  • 2026-03-11: Bổ sung AI-assisted UI action contract cho AI widgets/portal: navigate, reveal/focus, highlight, lightweight set-state, và protected-action boundary.