ฟีเจอร์ช่วยตอบ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ

ฟีเจอร์ช่วยตอบ API ของ ML Kit ช่วยให้คุณสร้างการตอบกลับที่เกี่ยวข้องกับข้อความได้โดยอัตโนมัติ ฟีเจอร์ช่วยตอบช่วยให้ผู้ใช้ตอบกลับข้อความได้อย่างรวดเร็ว และทำให้ตอบกลับข้อความได้ง่ายขึ้นในอุปกรณ์ที่มีความสามารถในการป้อนข้อมูลแบบจำกัด
iOS
Android
ความสามารถหลัก
- รูปแบบการตอบแบบสมาร์ทจะสร้างคำแนะนำการตอบกลับตามบริบททั้งหมดของการสนทนา ไม่ใช่แค่ข้อความเดียว ซึ่งหมายความว่าคำแนะนำจะมีประโยชน์ต่อผู้ใช้มากขึ้น
- โมเดลในอุปกรณ์จะสร้างการตอบกลับอย่างรวดเร็วและคุณไม่จำเป็นต้องส่งข้อความของผู้ใช้ไปยังเซิร์ฟเวอร์ระยะไกล
ข้อจำกัด
- ฟีเจอร์ช่วยตอบมีไว้สำหรับการสนทนาที่ไม่เป็นทางการในแอปของผู้บริโภค คำแนะนำการตอบกลับอาจไม่เหมาะสำหรับบริบทหรือผู้ชมอื่นๆ
- โดยขณะนี้รองรับเฉพาะภาษาอังกฤษเท่านั้น โมเดลจะระบุภาษาที่ใช้โดยอัตโนมัติและให้คำแนะนำเมื่อเป็นภาษาอังกฤษเท่านั้น
วิธีการทํางานของโมเดล
- โมเดลจะใช้ข้อความล่าสุดจากประวัติการสนทนาไม่เกิน 10 ข้อความเพื่อสร้างคำแนะนำการตอบกลับ
- โดยจะตรวจจับภาษาของการสนทนาและพยายามให้คําตอบเมื่อระบุภาษานั้นเป็นภาษาอังกฤษเท่านั้น
- โมเดลนี้จะเปรียบเทียบข้อความกับรายการหัวข้อที่ละเอียดอ่อนและจะไม่ให้คำแนะนำเมื่อตรวจพบหัวข้อที่ละเอียดอ่อน
- หากมีการระบุว่าภาษานั้นเป็นภาษาอังกฤษและตรวจไม่พบหัวข้อที่ละเอียดอ่อน โมเดลจะแสดงคำตอบที่แนะนำสูงสุด 3 รายการ จำนวนการตอบกลับจะขึ้นอยู่กับจำนวนคำตอบที่ตรงกับระดับความเชื่อมั่นที่เพียงพอโดยอิงตามอินพุตไปยังโมเดล
แสดงความคิดเห็น
เนื่องจากความซับซ้อนของการประมวลผลภาษาธรรมชาติ คำแนะนำจากโมเดลจึงอาจไม่เหมาะสมกับบางบริบทหรือผู้ชม หากพบคำแนะนำการตอบกลับที่ไม่เหมาะสม โปรดติดต่อทีมสนับสนุนของ ML Kit ความคิดเห็นของคุณจะช่วยปรับปรุงโมเดลและตัวกรองสำหรับหัวข้อที่ละเอียดอ่อน
ตัวอย่างผลการแข่ง
การประทับเวลา |
User-ID |
เป็นผู้ใช้ภายใน? |
ข้อความ |
พฤ. 21 ก.พ. 13:13:39 น. PST 2019 |
|
จริง |
คุณกำลังเดินทางใช่ไหม |
พฤ. 21 ก.พ. 13:15:03 น. PST 2019 |
FRIEND0 |
false |
ขออภัยที่ไปสาย ขออภัย |
คำตอบที่แนะนำ
คำแนะนำ #1 |
คำแนะนำ #2 |
คำแนะนำ #3 |
ไม่ต้องกังวล |
😞 |
ก็ไม่เป็นไร |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-29 UTC
[null,null,["อัปเดตล่าสุด 2025-08-29 UTC"],[[["\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! |"]]