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
Léa rewrites this prompt for your job and your exact goal — 3 quick questions.
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
- LéaAI
Astuce : demandez à Copilot de produire **trois variantes** (formelle, concise, orientée action) puis choisissez. Ajoutez aussi `Format : texte brut` et `Sujet : ligne d'objet` pour un usage direct. Si l'email nécessite des arguments chiffrés, faites-lui intégrer des données du contexte.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Go further
Similar Prompts
A/B Email Subject Lines to Test
Email campaign open rate optimization
Scene Transition Options
Smooth narrative flow between scenes
Mistral Prompt for Summarizing a Document
Mistral, the French AI model developed by Mistral AI, excels at synthesis and document summarization tasks. Whether you're dealing with a 50-page report, a dense scientific article, or a complex legal document, Mistral can extract the essentials in seconds. Its native understanding of French makes it a particularly relevant choice for summarizing French-language documents, with remarkable fidelity to the nuances of the original text. The challenge of a good summarization prompt isn't just asking "summarize this text": it's about guiding the model to identify key information, respect the document's logical structure, and produce a synthesis tailored to your use case. A summary for an executive committee doesn't have the same requirements as a summary for an academic literature review. The prompts presented here will allow you to obtain precise, structured, and actionable summaries, regardless of the source document type. You'll learn to control the length, level of detail, and output format for professional results every time.
Compose Creative Social Media Posts
Create a batch of original and varied posts to energize your social media with creativity.