رد سريع
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.

باستخدام واجهة برمجة تطبيقات الردود السريعة في أدوات تعلّم الآلة، يمكنك إنشاء ردود ذات صلة على الرسائل تلقائيًا. تساعد ميزة "الرد السريع" المستخدمين في الرد على الرسائل بسرعة،
وتسهل الرد على الرسائل على الأجهزة ذات إمكانات الإدخال
المحدودة.
iOS
Android
الإمكانات الرئيسية
- ينشئ نموذج الرد السريع اقتراحات الردود بناءً على السياق الكامل للمحادثة، وليس فقط رسالة واحدة. وهذا يعني أن الاقتراحات
أكثر فائدة للمستخدمين.
- يعمل النموذج على الجهاز فقط على إنشاء الردود بسرعة ولا يتطلب منك إرسال رسائل المستخدمين إلى خادم بعيد.
القيود
- تم تصميم ميزة "الرد السريع" للمحادثات العادية في تطبيقات المستهلكين. قد لا تكون اقتراحات الردود
مناسبة للسياقات أو الجماهير الأخرى.
- لا تتوفَّر حاليًا سوى اللغة الإنجليزية. يحدّد النموذج تلقائيًا اللغة المستخدَمة ولا يقدّم اقتراحات إلا إذا كانت اللغة بالإنجليزية.
آلية عمل النموذج
- ويستخدم النموذج ما يصل إلى 10 من أحدث الرسائل من سجلّ المحادثات
لإنشاء اقتراحات الردود.
- ويحدد لغة المحادثة ويحاول تقديم
الردود فقط عندما يتم تحديد اللغة الإنجليزية.
- يقارن النموذج الرسائل بقائمة من الموضوعات الحساسة
ولا يقدم اقتراحات عندما يكتشف موضوعًا حساسًا.
- وإذا تبيّن أنّ اللغة هي الإنجليزية ولم يتم التعرّف على أي مواضيع حسّاسة،
يقدّم النموذج ما يصل إلى ثلاث إجابات مقترَحة. ويعتمد عدد الردود على عدد الردود التي تستوفي مستوى كافٍ من الثقة بناءً على مدخلات النموذج.
تقديم ملاحظات وآراء
بسبب تعقيد معالجة اللغات الطبيعية، قد لا تكون الاقتراحات
التي يقدّمها النموذج مناسبة لجميع السياقات أو شرائح الجمهور. وإذا
صادفت اقتراحات ردود غير ملائمة، يُرجى التواصل مع
فريق دعم ML Kit. تساعد ملاحظاتك في تحسين النموذج وعوامل تصفية الموضوعات الحساسة.
أمثلة النتائج
الطابع الزمني |
رقم تعريف المستخدم |
هل أنت مستخدم محلي؟ |
مراسلة |
الخميس 21 شباط (فبراير) عند الساعة 13:13:39 بتوقيت المحيط الهادئ 2019 |
|
صحيح |
هل أنت في طريقك؟ |
الخميس 21 شباط (فبراير) عند الساعة 13:15:03 بتوقيت المحيط الهادئ 2019 |
FRIEND0 |
false |
عذرًا، لقد تأخّرت. |
الردود المقترَحة
الاقتراح رقم 1 |
الاقتراح الثاني |
الاقتراح الثالث |
لا داعي للقلق. |
😞 |
حسنًا، لا مشكلة. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 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! |"]]