智慧回覆
透過集合功能整理內容
你可以依據偏好儲存及分類內容。

您可以透過 ML Kit 的智慧回覆 API 自動產生相關回覆。智慧回覆可讓使用者快速回覆訊息,而在輸入功能有限的裝置上,也能更輕鬆地回覆訊息。
iOS
Android
主要功能
- 智慧回覆模型會根據對話的完整脈絡產生回覆建議,而不只是根據單一訊息。因此這些建議對使用者而言較為實用。
- 裝置端模型會快速產生回覆,因此您不必將使用者的訊息傳送至遠端伺服器。
限制
- 智慧回覆是針對消費者應用程式中的輕鬆對話使用。回覆建議可能不適合其他情況或目標對象,
- 目前僅支援英文。模型會自動辨識使用者使用的語言,並且僅針對英文提供建議。
模型的運作方式
- 模型會使用對話記錄中最多 10 則最新訊息來產生回覆建議。
- 系統會偵測對話的語言,並只會在語言判定為英文時嘗試提供回應。
- 此模型會將訊息與敏感主題清單進行比對,並在偵測到敏感主題時提供建議。
- 如果語言判斷為英文,且沒有偵測到任何敏感主題,則模型最多會提供三個建議的回應。回應的數量取決於有多少項目符合模型的輸入內容,且符合一定程度的信賴水準。
提供意見
由於自然語言處理相當複雜,模型提供的建議可能不適合所有情境或目標對象。如果您遇到不當回覆建議,請與 ML Kit 支援聯絡。您的意見回饋可以協助改善模型及敏感主題的篩選器。
搜尋結果範例
時間戳記 |
User-ID |
本機使用者? |
訊息 |
2019 年 2 月 21 日星期四 13:13:39 |
|
true |
你還在路上嗎? |
2019 年 2 月 21 日星期四 13:15:03 |
FRIEND0 |
false |
遲到了,抱歉! |
建議的回覆
建議 #1 |
建議 #2 |
建議 #3 |
沒問題 |
😞 |
沒問題! |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-29 (世界標準時間)。
[null,null,["上次更新時間:2025-08-29 (世界標準時間)。"],[[["\u003cp\u003eML Kit's Smart Reply API automatically generates relevant replies to messages, aiding quick responses and assisting devices with limited input.\u003c/p\u003e\n"],["\u003cp\u003eThe on-device model processes conversation history locally to provide quick replies without sending data to a remote server, prioritizing user privacy.\u003c/p\u003e\n"],["\u003cp\u003eSmart Reply is designed for casual English conversations and may not be suitable for all contexts; feedback on inappropriate suggestions is encouraged for model improvement.\u003c/p\u003e\n"],["\u003cp\u003eThe model analyzes up to 10 recent messages, identifies English language, filters sensitive topics, and offers up to 3 suggestions based on confidence levels.\u003c/p\u003e\n"]]],[],null,["With ML Kit's smart reply API, you can automatically generate relevant\nreplies to messages. Smart reply helps your users respond to messages quickly,\nand makes it easier to reply to messages on devices with limited input\ncapabilities.\n\n[iOS](/ml-kit/language/smart-reply/ios)\n[Android](/ml-kit/language/smart-reply/android)\n\nKey capabilities\n\n- The smart reply model generates reply suggestions based on the full context of a conversation, not just a single message. This means the suggestions are more helpful to your users.\n- The on-device model generates replies quickly and doesn't require you to send users' messages to a remote server.\n\nLimitations\n\n- Smart reply is intended for casual conversations in consumer apps. Reply suggestions might not be appropriate for other contexts or audiences.\n- Currently, only English is supported. The model automatically identifies the language being used and only provides suggestions when it's English.\n\nHow the model works\n\n- The model uses up to 10 of the most recent messages from a conversation history to generate reply suggestions.\n- It detects the language of the conversation and only attempts to provide responses when the language is determined to be English.\n- The model compares the messages against a list of sensitive topics and won't provide suggestions when it detects a sensitive topic.\n- If the language is determined to be English and no sensitive topics are detected, the model provides up to three suggested responses. The number of responses depends on how many meet a sufficient level of confidence based on the input to the model.\n\nProvide feedback\n\nDue to the complexity of natural language processing, the suggestions provided\nby the model may not be appropriate for all contexts or audiences. If you\nencounter inappropriate reply suggestions, reach out to\n[ML Kit support](/ml-kit/community). Your feedback\nhelps to improve the model and the filters for sensitive topics.\n\nExample results\n\nInput\n\n| Timestamp | User ID | Local User? | Message |\n|------------------------------|---------|-------------|----------------------|\n| Thu Feb 21 13:13:39 PST 2019 | | true | are you on your way? |\n| Thu Feb 21 13:15:03 PST 2019 | FRIEND0 | false | Running late, sorry! |\n\nSuggested replies\n\n| Suggestion #1 | Suggestion #2 | Suggestion #3 |\n|---------------|---------------|---------------|\n| No worries | 😞 | No problem! |"]]