Smart Search Platform - AI Keyword to Widget Map
SharedShared Capabilities1.867 words9 min read
Purpose
Phần tiêu đề “Purpose”- Chuẩn hóa cách map từ khóa AI sang action intent, widget hiển thị và CTA tiếp theo.
- Mở rộng ý tưởng candidate feature theo area tại
ux-patterns/SSP_AI_Innovation_By_Area.md(chưa kích hoạt taxonomy chính thức).
1. Mapping Contract
Phần tiêu đề “1. Mapping Contract”| Keyword Cluster | Intent | Inline Feature Key | Widget | Core Data | Primary CTA | Secondary CTA |
|---|---|---|---|---|---|---|
thống kê, tiến độ, báo cáo, phong độ | ACT_AI_STATS | AIF_LEARNING_PERFORMANCE_RADAR | Unified Stats | skill balance, trend, completion | Xem phân tích | Hỏi sâu hơn với AI Tutor |
quá trình, nỗ lực, streak | ACT_AI_PRACTICE_PROCESS | AIF_PRACTICE_BEHAVIOR_VIEW | Practice Journey | attendance, activity volume, momentum | Xem hành vi học | Hỏi sâu hơn với AI Tutor |
chuẩn bị, lịch tới, học gì mai, tài liệu buổi mai, slide unit | ACT_AI_SCHEDULE_PREP | AIF_SCHEDULE_PREP_CHECKLIST | Schedule Prep | next sessions, pre-read, debt tasks | Chuẩn bị ngay | Hỏi sâu hơn với AI Tutor |
tóm tắt, recap, ghi chú, từ recap làm gì | ACT_AI_SESSION_SUMMARY | AIF_SESSION_RECAP_BRIEF | Session Recap | teacher note, key points, linked homework | Đọc recap | Hỏi sâu hơn với AI Tutor |
lỗi sai, error, sửa lỗi | ACT_AI_ERROR_BANK | AIF_ERROR_CLUSTER_CLINIC | Mistake Clinic | recurring errors, fix-it quiz | Ôn lỗi ngay | Hỏi sâu hơn với AI Tutor |
kế hoạch, bắt kịp, gỡ bài, phục hồi, high attention, làm gì trước, triage deadline | ACT_AI_PLAN | AIF_CATCHUP_PLAN_INLINE | Catch-up Plan | missing sessions, MVP tasks, must-watch clips | Bắt đầu kế hoạch | Hỏi sâu hơn với AI Tutor |
thi thử, full test, mock test, đề thi thử | ACT_TEST | AIF_MOCK_FULL_TEST | Mock Full-test Builder | program/form preference, recent level signal | Tạo đề thi | Hỏi sâu hơn với AI Tutor |
giải thích, tại sao sai, concept | ACT_AI_EXPLAIN | AIF_CONCEPT_CLARIFIER | Concept Clarifier | definition, bad-vs-good, related concepts | Hiểu nhanh | Hỏi sâu hơn với AI Tutor |
vocab, từ này dùng ở đâu, ngữ cảnh | ACT_AI_VOCAB_CONNECT | AIF_VOCAB_CONTEXT_BRIDGE | Vocab Connector | saved words, upcoming lesson context | Ôn từ ngay | Hỏi sâu hơn với AI Tutor |
hỏi ai, chat ai, mentor | ACT_AI_TUTOR | AIF_TUTOR_ENTRY | Floating AI Tutor | handoff payload | Mở portal | - |
1.1 Umbrella keyword mode (Msearch)
Phần tiêu đề “1.1 Umbrella keyword mode (Msearch)”- Mục tiêu: khi user gõ từ khóa tổng quát, hệ thống phải liệt kê đầy đủ nhóm tính năng liên quan thay vì chỉ match 1 intent đơn lẻ.
- Trigger gợi ý bắt buộc:
ai,AI,tính năng ai,ai có gì,trợ lý ai.làm bài,làm bài tập,luyện tập,practice,làm đề.
- Behavior:
- nếu match
AI umbrella: render toàn bộ AI feature list theo area policy (ACT_AI_*khả dụng trong context hiện tại). - nếu match
Practice umbrella: render toàn bộ action list liên quan làm bài/luyện tập. - không áp dụng giới hạn
max 3như prefix completions cho umbrella mode.
- nếu match
1.2 Umbrella bundles (khuyến nghị render)
Phần tiêu đề “1.2 Umbrella bundles (khuyến nghị render)”| Umbrella query | Bundle render | Nội dung bắt buộc | Hero mặc định |
|---|---|---|---|
AI | AI Feature Catalog | ACT_AI_STATS, ACT_AI_PRACTICE_PROCESS, ACT_AI_SCHEDULE_PREP, ACT_AI_SESSION_SUMMARY, ACT_AI_ERROR_BANK, ACT_AI_PLAN, ACT_AI_EXPLAIN, ACT_AI_VOCAB_CONNECT, ACT_AI_TUTOR (lọc theo area policy) | Mở AI phù hợp nhất cho ngữ cảnh hiện tại |
làm bài / làm bài tập | Practice Action Catalog | ACT_EXERCISE, ACT_ASSIGNMENT, ACT_TEST, ACT_DICTATION, ACT_VOCAB + nhóm AI hỗ trợ làm bài (ACT_AI_ERROR_BANK, ACT_AI_EXPLAIN) | Bắt đầu bài phù hợp nhất lúc này |
1.3 Grouping rules trong umbrella mode
Phần tiêu đề “1.3 Grouping rules trong umbrella mode”AI Feature Catalog:- Group 1:
AI phân tích. - Group 2:
AI kế hoạch/chuẩn bị. - Group 3:
AI sửa lỗi/giải thích. - Group 4:
AI Tutor.
- Group 1:
Practice Action Catalog:- Group 1:
Làm bài ngay. - Group 2:
Làm bài theo loại. - Group 3:
AI hỗ trợ làm bài.
- Group 1:
- Mỗi item phải có
vì sao gợi ý+ CTA rõ để vào action thực tế.
1.4 Facet tags cho AI features
Phần tiêu đề “1.4 Facet tags cho AI features”- Mỗi AI feature item bắt buộc có facet tags tối thiểu:
featureFamily=aicontentType=insight | plan | guide(tùy widget)contentFormat=widget | report | checklist
- Ví dụ:
Unified Stats->ai/insight/reportSchedule Prep->ai/plan/checklistConcept Clarifier->ai/guide/widget
- Kết quả:
- user gõ
báo cáo,checklist,widgetvẫn ra các AI features liên quan, dù không gõ từAI.
- user gõ
1.5 Priority inline features (khóa cho bản runtime hiện tại)
Phần tiêu đề “1.5 Priority inline features (khóa cho bản runtime hiện tại)”- Bộ feature ưu tiên theo nhu cầu bạn đã nêu:
AIF_MOCK_FULL_TEST:- label:
AI Thi thử Full Test. - job: tạo đề thi sát thực tế theo trình độ hiện tại.
- primary CTA:
Tạo đề thi.
- label:
AIF_LEARNING_PERFORMANCE_RADAR:- label:
Phân tích hiệu suất học tập. - job: radar + xu hướng + so sánh mục tiêu tuần/tháng.
- primary CTA:
Xem phân tích.
- label:
AIF_PRACTICE_BEHAVIOR_VIEW:- label:
Xem hành vi luyện tập. - job: attendance, activity volume, momentum học tập.
- primary CTA:
Xem trước Inline.
- label:
- Rule:
- 3 feature này luôn nằm trong
AI umbrella catalognếu context có đủ dữ liệu tối thiểu. - thiếu dữ liệu thì vẫn hiện card với trạng thái
empty-data+ CTA tạo dữ liệu đầu vào, không ẩn cứng. AIF_MOCK_FULL_TESTdùng canonical intentACT_TEST(intent-variant mapping), không tách intent mới trong v1.
- 3 feature này luôn nằm trong
2. AI Inline Surface System
Phần tiêu đề “2. AI Inline Surface System”Widgettrong bảng mapping không đồng nghĩa vớimột card cố định.- Render cuối phải đi qua
AI inline archetypecủa page hiện tại, không được ép mọi intent vào layoutSummary + Evidence + Actions.
2.1 Archetype guide
Phần tiêu đề “2.1 Archetype guide”| Archetype | Khi nào dùng | Output mặc định | Evidence |
|---|---|---|---|
action_hub | Home / entry pages cần câu trả lời nên làm gì tiếp | 1 primary next step + 1..2 alternate step + short why-now | optional |
strategy_panel | Program landing / planning surfaces | strategic summary + ordered steps + 1 primary CTA | optional |
coaching_rail | Active attempt / active work | micro hint + scaffolded step + self-check | hidden by default |
analysis_panel | Result / progress diagnosis / recap | signal -> meaning -> fix -> next action | recommended |
queue_guide | Course / vocabulary / queue-driven pages | do-now item + short clarifier + deeper CTA | optional |
2.2 Minimum contract cho mọi AI inline surface
Phần tiêu đề “2.2 Minimum contract cho mọi AI inline surface”- Phải luôn có:
1 primary insight hoặc next step,1 primary CTA,- context cue ngắn (
hôm nay,bài vừa nộp,task đến hạn,từ cần ôn…).
- Có thể có:
secondary CTAsang AI Tutor,evidencengắn,ordered stepshoặcqueue items,reason tags.
- Không cho phép:
- mở chat tự do ngay trong inline surface,
- tự bật AI Tutor khi surface vừa render,
- ép render
evidencecho page action-first nếu evidence không giúp quyết định.
2.3 Archetype mapping rule
Phần tiêu đề “2.3 Archetype mapping rule”Intentquyết địnhnội dung, nhưngpage archetypequyết địnhhình thức render.- Ví dụ:
ACT_AI_PLANở Home có thể render dạngaction_hub,- cùng
ACT_AI_PLANở Program landing render dạngstrategy_panel, - cùng cluster
giải thích/sửa lỗiở Result render dạnganalysis_panel, - nhưng ở Attempt phải xuống
coaching_rail.
3. Keyword Matching Rules
Phần tiêu đề “3. Keyword Matching Rules”- Ưu tiên exact phrase -> synonym -> semantic cluster.
- Nếu nhiều intent cùng điểm:
- ưu tiên intent có
context relevancecao hơn. - nếu vẫn hòa, ưu tiên
ACT_AI_TUTORchỉ khi user có từ khóa hỏi trực tiếp.
- ưu tiên intent có
- Nếu query mơ hồ:
- trả
disambiguation chipsthay vì đoán cứng.
- trả
4. Fallback Behavior
Phần tiêu đề “4. Fallback Behavior”- No data:
- hiển thị onboarding insight (
chưa đủ dữ liệu) + CTA tạo dữ liệu đầu vào.
- hiển thị onboarding insight (
- Stale data:
- hiển thị badge
Dữ liệu gần nhất: ...+ CTA refresh.
- hiển thị badge
- Adapter timeout:
- trả bản tóm tắt nhẹ + CTA mở module nguồn.
5. Handoff Payload to AI Tutor
Phần tiêu đề “5. Handoff Payload to AI Tutor”interface AIInlineTutorHandoffPayload { inlineFeatureKey: string; intentId: string; query: string; inlineSummary: string; evidence?: string[]; provenanceHints?: Array<{ sourceClass: 'practice' | 'course' | 'blog' | 'history'; sourceId?: string; }>; recommendedActions?: string[]; sourceModule: 'home' | 'course' | 'learning' | 'practice' | 'vocabulary'; pageContextId?: string; freshnessAt?: string; confidence?: 'low' | 'medium' | 'high'; payloadTier?: 'full' | 'balanced' | 'lite'; returnTo: string;}5.1 Handshake rules
Phần tiêu đề “5.1 Handshake rules”Step 1: user bấmHỏi sâu hơn với AI Tutortrên card inline.Step 2: validate packet required fields.Step 3: emitsearch_ai_tutor_handoff_start.Step 4: mở AI Tutor với seed context từ packet.Step 5: emitsearch_ai_tutor_handoff_success.
5.2 Fallback rules (bắt buộc)
Phần tiêu đề “5.2 Fallback rules (bắt buộc)”- Nếu thiếu/lỗi packet:
- vẫn mở AI Tutor,
- fallback seed =
intentId + query + sourceModule, - hiển thị notice nhẹ:
Đã mở AI Tutor với ngữ cảnh rút gọn, - emit
search_ai_tutor_handoff_fallback_open.
References
Phần tiêu đề “References”SSP_Master_Product_Spec.mdSSP_00_Overview.mdcontracts/SSP_Intent_Taxonomy_Result_Contract.mdcontracts/SSP_Context_Pack_Adapter_Contracts.mdux-patterns/SSP_Area_Positioning_Page_Behavior.mdux-patterns/SSP_AI_Innovation_By_Area.mdux-patterns/SSP_UI_Placeholder_By_Flow.md../Course Management/CM_REF_AI_Result_Templates.md../Course Management/CM_TECH_AI_Deep_Resources.md
Change log
Phần tiêu đề “Change log”- 2026-03-16: Thay fixed card contract bằng
AI Inline Surface System; render giờ phụ thuộcpage archetype, không còn ép mọi AI widget vào layoutSummary + Evidence + Actions. - 2026-02-28: title: “Smart Search Platform - AI Keyword to Widget Map”
- 2026-03-01: Add AI Inline feature keys, fixed escalation CTA to AI Tutor, and packet/fallback handshake contract.
- 2026-03-01: Add canonical mapping
ACT_TEST + AIF_MOCK_FULL_TESTand payload tier/provenance hints for handoff.