P
✍️RedactionIntermediateAll AIs

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

Writing an Email

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 Optimizer

Comments

  • 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

✍️RedactionIntermediateAll AIs

Stable Diffusion Prompt for Writing a Professional Bio

Stable Diffusion is an AI image generation tool that can transform the presentation of your professional bio with custom visuals. While text-based bio writing falls to language models, Stable Diffusion addresses an equally crucial aspect: the image accompanying your profile. An AI-generated professional portrait, a personal branding illustration, or a header visual consistent with your identity can make the difference between a bio that goes unnoticed and one that leaves a mark. In a context where LinkedIn, personal websites, and online portfolios demand quality visuals, Stable Diffusion enables the creation of realistic profile photos, professional banners, and thematic illustrations without hiring a photographer or graphic designer. This guide provides optimized prompts for generating the essential visual elements of a compelling professional bio, from classic corporate portraits to creative illustrations that reflect your expertise and personality in your industry.

0239
✍️RedactionBeginnerAll AIs

Story Premise Generator

Finding your next story idea

0236
✍️RedactionAdvancedAll AIs

Prose Style Analysis

Understanding and improving your own style

0234
✍️RedactionAdvancedAll AIs

Write Professional Blog Posts and White Papers

Create engaging blog posts and professional white papers that strengthen your industry expertise.

296947