پاسخ هوشمند
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.

با API پاسخ هوشمند ML Kit، می توانید به طور خودکار پاسخ های مرتبط به پیام ها را ایجاد کنید. پاسخ هوشمند به کاربران شما کمک می کند تا به سرعت به پیام ها پاسخ دهند و پاسخ دادن به پیام ها را در دستگاه هایی با قابلیت ورودی محدود آسان تر می کند.
iOS اندروید
قابلیت های کلیدی
- مدل پاسخ هوشمند پیشنهادهای پاسخ را بر اساس زمینه کامل یک مکالمه، نه فقط یک پیام واحد، ایجاد می کند. این بدان معناست که پیشنهادات برای کاربران شما مفیدتر است.
- مدل روی دستگاه به سرعت پاسخها را تولید میکند و نیازی به ارسال پیامهای کاربران به سرور راه دور ندارد.
محدودیت ها
- پاسخ هوشمند برای مکالمات معمولی در برنامه های مصرف کننده در نظر گرفته شده است. پیشنهادات پاسخ ممکن است برای سایر زمینه ها یا مخاطبان مناسب نباشد.
- در حال حاضر فقط انگلیسی پشتیبانی می شود. این مدل بهطور خودکار زبان مورد استفاده را شناسایی میکند و فقط زمانی پیشنهاداتی را ارائه میدهد که انگلیسی باشد.
نحوه کار مدل
- این مدل از 10 مورد از جدیدترین پیامهای تاریخچه مکالمه برای ایجاد پیشنهادات پاسخ استفاده میکند.
- زبان مکالمه را تشخیص میدهد و تنها زمانی تلاش میکند تا زمانی پاسخ دهد که زبان انگلیسی باشد.
- این مدل پیامها را با فهرستی از موضوعات حساس مقایسه میکند و وقتی موضوع حساسی را تشخیص میدهد، پیشنهادی ارائه نمیکند.
- اگر زبان انگلیسی مشخص شود و هیچ موضوع حساسی شناسایی نشود، مدل حداکثر سه پاسخ پیشنهادی را ارائه میکند. تعداد پاسخ ها بستگی به این دارد که چه تعداد از آنها سطح اطمینان کافی را بر اساس ورودی به مدل داشته باشند.
ارائه بازخورد
به دلیل پیچیدگی پردازش زبان طبیعی، پیشنهادات ارائه شده توسط مدل ممکن است برای همه زمینه ها یا مخاطبان مناسب نباشد. اگر با پیشنهادات پاسخ نامناسب مواجه شدید، با پشتیبانی ML Kit تماس بگیرید. بازخورد شما به بهبود مدل و فیلترها برای موضوعات حساس کمک می کند.
نتایج نمونه
مهر زمان | شناسه کاربر | کاربر محلی؟ | پیام |
---|
پنجشنبه 21 فوریه 13:13:39 PST 2019 | | درست است، واقعی | در راه هستی؟ |
پنجشنبه 21 فوریه 13:15:03 PST 2019 | FRIEND0 | نادرست | دیر آمدم، ببخشید! |
پاسخ های پیشنهادی
پیشنهاد شماره 1 | پیشنهاد شماره 2 | پیشنهاد شماره 3 |
---|
جای نگرانی نیست | 😞 | مشکلی نیست! |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-15 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-15 بهوقت ساعت هماهنگ جهانی."],[[["\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! |"]]