Lesson 2 Preview

Teach AI to Understand Intent
教 AI 理解使用者意圖

A useful personal AI assistant must do more than reply to messages. It needs to understand whether the user wants information, a recommendation, a reminder, a plan or another action.

一個實用的個人 AI 助手不只需要回答訊息,還需要判斷使用者想取得資訊、獲得推薦、建立提醒、制定計劃,還是進行其他操作。

Core Question

How can an AI assistant understand what the user wants it to do?

Course Journey

Building a Personal AI Assistant
建立個人 AI 助手

Lesson 2 turns safe conversation into a first decision: what does the user want next?

  1. 1 Conversation Previous stage
  2. 2 Intent Lesson 2 focus
  3. 3 Skills Coming in later lessons
  4. 4 Memory Coming in later lessons
  5. 5 Knowledge Coming in later lessons
  6. 6 Personal Assistant Coming in later lessons

Lesson Story

From Conversation to Understanding

Byte can now hold a safe conversation, but it still needs to understand what the user wants.

Can you suggest a game for me?

This is a request for a recommendation.

Remind me to bring my science book tomorrow.

This is a request to create a reminder.

Before a personal AI assistant chooses an action, it first needs to identify the user's intent.

Byte 現在已經能進行安全對話,但它仍然需要理解使用者真正想做甚麼。在個人 AI 助手選擇下一步行動之前,它需要先判斷使用者的意圖。

What Students Learn
學生會學到甚麼

  • Classification is different from free-form generation.分類是選擇合適標籤,不是自由創作答案。
  • Labels describe user intent.標籤能說明使用者真正想做甚麼。
  • Examples and definitions improve classification.例子和定義可以幫助 AI 更穩定地分類。
  • Structured output can guide a program.結構化輸出讓程式知道下一步要做甚麼。
  • Ambiguous messages need careful checking.含糊訊息可能需要追問或測試。
  • An assistant selects actions from intent.AI 助手會根據意圖選擇下一步行動。
  • AI classifications must be tested.分類結果需要用不同例子反覆測試。

Key Words
關鍵詞

Intent
意圖

What the user wants the assistant to do.

Classification
分類

Choosing the best label for a message.

Label
類別標籤

A short name for one kind of request.

Structured Output
結構化輸出

A clear format a program can use.

Reason
原因

A short explanation for the choice.

Next Action
下一步行動

What the assistant should do after classifying.

Frontend Activity

What Does the User Want?
使用者想做甚麼?

Try classifying the message yourself first. This activity runs only in the browser and does not send answers to the server.

Ask a Question / 提出問題 Get a Recommendation / 取得推薦 Create a Reminder / 建立提醒 Make a Plan / 制定計劃 Save a Preference / 儲存喜好 Other / 其他

Message

What is the largest planet?

Choose one intent

Live AI Preview

Test a Real AI Intent Classifier
測試真正的 AI 意圖分類器

Choose an assistant context, add one short rule, and ask Byte to return an intent, reason, and suggested next action.

Safety first: do not enter your real name, password, address, phone number or other private information.

安全第一:請勿輸入真實姓名、密碼、地址、電話號碼或其他私人資料。

Step 1

Choose an assistant preset

The browser can choose only from these server-controlled contexts.

Step 2

Add one small rule without replacing the full classifier prompt.

180 characters left

Step 3

Byte Intent Classifier

Returns one allowed intent and a suggested next step.

Live demo

Keep it under 300 characters and avoid private information.

Suggested test messages

Prompt Design

Why Instructions Matter
為甚麼指令很重要

Basic instruction

Classify this message.

The AI may answer in many different formats.

Clear instruction

Choose exactly one allowed intent, give one short reason, and suggest one next action.

The program can use the result more reliably.

The public demo does not save classifications or conversations. It only returns a short result for the message you submit.

公開 Demo 不會儲存分類結果或對話,只會為你提交的訊息回傳簡短結果。

Routing

Intent → Assistant Skill

Lesson 2 identifies what the user wants. Lesson 3 will connect each intent to a different assistant skill.

Ask a QuestionAnswer Information
Get a RecommendationRecommendation Skill
Create a ReminderReminder Skill
Make a PlanPlanning Skill
Save a PreferenceMemory Skill
OtherAsk a Follow-up Question

This demo does not create real reminders, save preferences, create calendar events, or store user information.

Student Project

AI Intent Classifier

Students customize assistant context, classification rules, test messages, intent explanations, and suggested next actions.

Students test

  • Clear requests
  • Ambiguous requests
  • Incorrect classifications
  • Rule-breaking messages

Why This Matters

Small Labels, Real Decisions

A personal AI assistant needs structure before it can act. Intent classification lets a program decide whether to answer, recommend, plan, remember a preference, or ask a follow-up question.

個人 AI 助手需要先理解意圖,程式才可以決定要回答、推薦、制定計劃、記住喜好,還是追問更多資料。

Lesson 3 Preview

Next Step: Give the Assistant Useful Skills
下一步:為 AI 助手加入實用技能

Understanding intent is only the beginning. In Lesson 3, students connect each intent to a different assistant skill, such as answering questions, making recommendations or creating simple plans.

Coming Soon