إعطاء موضوع ما، كتابة رسائل البريد الإلكتروني بطريقة موجزة ومهنية
أمثلة على الطلبات
المستخدِم
طلب وقت عطلة الأسبوع المقبل
الطراز
مرحبًا [Manager's name]،
أتواصل معك لطلب وقت عطلة من [start date] إلى [end date]. سأستخدم وقت إجازتي المتراكمة في هذه الرحلة.
لقد أكملتُ جميع مشاريعي ومهامي الحالية، واتّخذتُ الترتيبات اللازمة لزملائي لتغطية مسؤولياتي أثناء غيابي عن المنزل. سأكون متاحًا عبر البريد الإلكتروني والهاتف إذا لزم الأمر.
أتطلّع إلى هذه الفترة للاسترخاء واستعادة طاقتي. سأعود إلى المكتب في [return date].
شكرًا على موافقتك.
مع أطيب التحيّات، [اسمك]
المستخدِم
جعله أقصر
الطراز
مرحبًا [Manager's name]،
أتواصل معك لطلب عطلة من [start date] إلى [end date]. لقد أكملت جميع مشاريعي ومهامي الحالية، واتّخذت الترتيبات اللازمة لزملائي لتغطية مسؤولياتي. سأكون متاحًا عبر البريد الإلكتروني والهاتف إذا لزم الأمر.
شكرًا على موافقتك.
مع أطيب التحيّات، [اسمك]
نماذج الردود
المستخدِم
إجراء حجز
الطراز
مرحبًا [اسم الفندق]،
أتواصل معك لإجراء حجز للإقامة في فندقك من [تاريخ البدء] إلى [تاريخ الانتهاء]. أود حجز غرفة [نوع الغرفة] فيها سرير كينغ.
أريد الاستفادة من وسائل الراحة التالية:
* خدمة Wi-Fi مجانية
* تشمل وجبة الفطور
* إمكانية الدخول إلى المسبح
أود أيضًا طلب غرفة لغير المدخنين.
يُرجى إعلامنا إذا كان لديك أي سؤال. شكرًا على وقتك واهتمامك.
يمكنك طلب هذا الطلب من واجهة برمجة تطبيقات Gemini عن طريق دمج الرمز التالي في مشروعك.
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],[],[],[],null,["# Email writer\n\n[Prompt gallery](/prompt-gallery)\n\nEmail writer\n============\n\nGenerate an email based on a given topic \nPrompt type: [chat_bubble_outline\nChat](/prompt-gallery/?type=chat) \nUse case: \nCreate Data Processing Rewrite \nRelated: \n[Generate questions from fiction](/prompts/questions-from-fiction) [Product descriptions](/prompts/product-descriptions) [Step by step instructions from paragraph](/prompts/step-by-step-instructions)\n[Open in Google AI Studio](https://makersuite.google.com/app/prompts/email-writer) \n\n#### Context\n\nGiven a topic, write emails in a concise, professional manner\n\n#### Prompt examples\n\n##### User\n\nRequest vacation time next week \n\n##### Model\n\nDear \\[Manager's name\\], \n\nI am writing to request vacation time from \\[start date\\] to \\[end date\\]. I will be using my accrued vacation time for this trip. \n\nI have already completed all of my current projects and tasks, and I have made arrangements for my colleagues to cover my responsibilities while I am away. I will be available by email and phone if needed. \n\nI am looking forward to this time to relax and recharge. I will be back in the office on \\[return date\\]. \n\nThank you for your approval. \n\nSincerely, \n\\[Your name\\] \n\n##### User\n\nMake it shorter \n\n##### Model\n\nDear \\[Manager's name\\], \n\nI am writing to request vacation from \\[start date\\] to \\[end date\\]. I have completed all of my current projects and tasks, and I have made arrangements for my colleagues to cover my responsibilities. I will be available by email and phone if needed. \n\nThank you for your approval. \n\nSincerely, \n\\[Your name\\] \n\n#### Sample responses\n\n##### User\n\nMake a reservation \n\n##### Model\n\nDear \\[Hotel name\\],\n\nI am writing to make a reservation for a stay at your hotel from \\[start date\\] to \\[end date\\]. I would like to book a \\[room type\\] room with a king-size bed.\n\nI am interested in the following amenities:\n\\* Free Wi-Fi\n\\* Breakfast included\n\\* Pool access\n\nI would also like to request a non-smoking room.\n\nPlease let me know if you have any questions. Thank you for your time and consideration.\n\nSincerely,\n\\[Your name\\] \n\nGet code\n--------\n\n[Enable API key](https://makersuite.google.com/app/apikey) to develop with the Gemini API\n\nYou can call this prompt from our Gemini API by integrating the following code into your project. \nPython \nJavascript \n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 \n\"\"\" At the command line, only need to run once to install the package via pip: $ pip install google-generativeai \"\"\" import google.generativeai as genai genai.configure(api_key=\"YOUR API KEY\") defaults = { 'model': 'models/chat-bison-001', 'temperature': 0.25, 'candidate_count': 1, 'top_k': 40, 'top_p': 0.95, } context = \"Given a topic, write emails in a concise, professional manner\" examples = \\[ \\[ \"Request vacation time next week\", \"Dear \\[Manager's name\\],nnI am writing to request vacation time from \\[start date\\] to \\[end date\\]. I will be using my accrued vacation time for this trip.nnI have already completed all of my current projects and tasks, and I have made arrangements for my colleagues to cover my responsibilities while I am away. I will be available by email and phone if needed.nnI am looking forward to this time to relax and recharge. I will be back in the office on \\[return date\\].nnThank you for your approval.nnSincerely,n\\[Your name\\]\" \\], \\[ \"Make it shorter\", \"Dear \\[Manager's name\\],nnI am writing to request vacation from \\[start date\\] to \\[end date\\]. I have completed all of my current projects and tasks, and I have made arrangements for my colleagues to cover my responsibilities. I will be available by email and phone if needed.nnThank you for your approval.nnSincerely,n\\[Your name\\]\" \\] \\] messages = \\[\\] messages.append(\"NEXT REQUEST\") response = genai.chat( \\*\\*defaults, context=context, examples=examples, messages=messages ) print(response.last) # Response of the AI to your most recent request \n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 \nconst { DiscussServiceClient } = require(\"@google-ai/generativelanguage\"); const { GoogleAuth } = require(\"google-auth-library\"); const MODEL_NAME = \"models/chat-bison-001\"; const API_KEY = \"YOUR API KEY\"; const client = new DiscussServiceClient({ authClient: new GoogleAuth().fromAPIKey(API_KEY), }); const context = \"Given a topic, write emails in a concise, professional manner\"; const examples = \\[ { \"input\": { \"content\": \"Request vacation time next week\" }, \"output\": { \"content\": \"Dear \\[Manager's name\\],nnI am writing to request vacation time from \\[start date\\] to \\[end date\\]. I will be using my accrued vacation time for this trip.nnI have already completed all of my current projects and tasks, and I have made arrangements for my colleagues to cover my responsibilities while I am away. I will be available by email and phone if needed.nnI am looking forward to this time to relax and recharge. I will be back in the office on \\[return date\\].nnThank you for your approval.nnSincerely,n\\[Your name\\]\" } }, { \"input\": { \"content\": \"Make it shorter\" }, \"output\": { \"content\": \"Dear \\[Manager's name\\],nnI am writing to request vacation from \\[start date\\] to \\[end date\\]. I have completed all of my current projects and tasks, and I have made arrangements for my colleagues to cover my responsibilities. I will be available by email and phone if needed.nnThank you for your approval.nnSincerely,n\\[Your name\\]\" } } \\]; const messages = \\[\\]; messages.push({ \"content\": \"NEXT REQUEST\" }); client.generateMessage({ // required, which model to use to generate the result model: MODEL_NAME, // optional, 0.0 always uses the highest-probability result temperature: 0.25, // optional, how many candidate results to generate candidateCount: 1, // optional, number of most probable tokens to consider for generation top_k: 40, // optional, for nucleus sampling decoding strategy top_p: 0.95, prompt: { // optional, sent on every request and prioritized over history context: context, // optional, examples to further finetune responses examples: examples, // required, alternating prompt/response messages messages: messages, }, }).then(result =\\\u003e { console.log(JSON.stringify(result, null, 2)); }); \ncontent_copy done Copy to clipboard"]]