GitHub Copilot Prompt for Writing an Email
GitHub Copilot, initially designed as a development assistant, proves remarkably effective for writing professional emails directly from your code editor. Whether you are a developer communicating with your team, a project manager coordinating sprints, or a tech professional drafting client emails, Copilot understands the context of your work and generates structured, clear emails tailored to your audience. By using comments as instructions in a Markdown or text file, you can guide Copilot to produce emails with the right tone, level of formality, and essential information. The major advantage lies in direct integration with your work environment: no need to switch tools; you stay within VS Code or your favorite IDE. Copilot particularly excels at technical emails, meeting notes, review requests, and cross-team communication, leveraging the context of files open in your project.
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
// Write a professional email with the following parameters:
// Recipient: [RECIPIENT_NAME_AND_ROLE]
// Subject: [EMAIL_TOPIC]
// Context: [SITUATION_OR_ONGOING_PROJECT]
// Goal: [EXPECTED_RESPONSE_OR_ACTION]
// Tone: [FORMAL / SEMI-FORMAL / CORDIAL]
// Key points to cover:
// 1. [FIRST_KEY_POINT]
// 2. [SECOND_KEY_POINT]
// 3. [THIRD_KEY_POINT_IF_NEEDED]
// Constraint: the email must be concise (max 200 words), include an appropriate salutation and a clear call to action.
const email = `
Personalize this prompt with Léa
Answer 3 questions and Léa tailors the prompt to your situation.
Why this prompt works
This prompt leverages Copilot's ability to interpret structured comments as generation instructions. By explicitly specifying the recipient, tone, and key points, ambiguity is reduced, yielding a targeted email from the first generation. The length constraint and call to action force Copilot to produce a directly usable result rather than generic text.
Use Cases
Variants
Expected Output
Copilot generates a complete email with subject line, personalized salutation, structured body in short paragraphs covering each key point, and a conclusion with a precise call to action. The tone is consistent with the chosen directive, and the text stays under the requested word limit, ready to be copied and pasted into your email client.
Frequently Asked Questions
How to use GitHub Copilot to draft an email from VS Code?
Create a .md or .txt file in your project, write your instructions in comments describing the recipient, objective, and desired tone, then let Copilot autocomplete. You can also use Copilot Chat (Ctrl+I) to ask it directly to draft the email in a conversation. The trick is to start with a structured template that Copilot can intelligently complete.
Can GitHub Copilot adapt the tone of an email based on the recipient?
Yes, Copilot effectively adjusts the language register when you specify the tone in your instructions. Indicate 'formal' for an email to a client or superior, 'cordial' for a colleague, or 'casual' for informal internal communication. For best results, also mention the recipient's role and your professional relationship, which helps Copilot calibrate the level of technical detail and the closing salutation.
Can Copilot use my project context to enrich the email?
This is one of Copilot's distinctive advantages over generalist AI tools. If you have open files related to the email subject (README, changelog, tickets), Copilot can draw from them to include relevant technical details. For instance, when drafting a release email, open the CHANGELOG.md and Copilot will naturally incorporate the latest changes into your communication. With Copilot Chat, you can even reference specific files using @workspace.
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
Be the first to comment on this prompt.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Go further
Similar Prompts
Extract Trends and Insights from Social Media
Analyze social media conversations to identify emerging trends and strategic opportunities.
Detect Misinformation and Fake News in Content
Analyze content to spot signs of misinformation, manipulation, and information bias.
GitHub Copilot Prompt for Translating a Text
GitHub Copilot, the AI development assistant created by GitHub and OpenAI, is not limited to code generation. Integrated directly into your editor (VS Code, JetBrains, Neovim), it can also serve as a powerful translation tool for your multilingual projects. Whether you need to translate localization files (i18n), code comments, technical documentation, or user interfaces, Copilot understands your project context and produces translations consistent with your existing terminology. Its main advantage lies in its ability to maintain source code formatting intact — HTML tags, interpolation variables, JSON keys — while translating only the textual content. This editor-integrated approach avoids back-and-forth with external tools and ensures your translations respect your codebase's technical conventions. Here is an optimized prompt to fully leverage GitHub Copilot in your translation tasks.
Send Time Optimization
Optimizing send times