[null,null,["最后更新时间 (UTC):2025-08-07。"],[],[],null,["Smart Reply \nplat_ios plat_android \n\nWith 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](/docs/ml-kit/ios/generate-smart-replies)\n[Android](/docs/ml-kit/android/generate-smart-replies)\n| This is a beta release of ML Kit for Firebase. This API might be changed in backward-incompatible ways and is not subject to any SLA or deprecation policy.\n\nKey capabilities\n\n|---------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Generates contextually-relevant suggestions | The Smart Reply model generates reply suggestions based on the full context of a conversation, and not just a single message, resulting in suggestions that are more helpful to your users. |\n| Runs on the device | 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 detects if a different language is used and if so, will not provide suggestions.\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- Next, 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\nProviding feedback\n\nDue to the complexity of natural language processing, the suggestions provided\nby the model might not be appropriate for all contexts or audiences. If you\nencounter inappropriate reply suggestions, reach out to\n[Firebase support](/support). Your feedback\nhelps to continue to improve the model and sensitive topic filter.\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! |"]]