P

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, appropriate level of formality, and essential information. The major advantage lies in direct integration into your work environment: no need to switch tools, you stay in VS Code or your favorite IDE. Copilot particularly excels at technical emails, meeting minutes, review requests, and inter-team communication, leveraging the context of files open in your project.

The prompt

GitHub Copilot

// Write a professional email with the following parameters:
// Recipient: [RECIPIENT_NAME_AND_ROLE]
// Subject: [EXACT_EMAIL_SUBJECT]
// Context: [ONGOING_SITUATION_OR_PROJECT]
// Objective: [DESIRED_RESPONSE_OR_ACTION]
// Tone: [FORMAL / SEMI-FORMAL / FRIENDLY]
// Key points to address:
// 1. [FIRST_IMPORTANT_POINT]
// 2. [SECOND_IMPORTANT_POINT]
// 3. [THIRD_POINT_IF_NECESSARY]
// Constraint: the email must be concise (max 200 words), include an appropriate closing formula, 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 it 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 and a targeted email is obtained from the first generation. The length constraint and call to action force Copilot to produce a directly usable result rather than generic text.

Expected result

Copilot generates a complete email with subject, personalized greeting, 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.

Variants by level

FAQ

How to use GitHub Copilot to write an email from VS Code?
Create a .md or .txt file in your project, write your instructions in comments describing the recipient, purpose, and desired tone, then let Copilot autocomplete. You can also use Copilot Chat (Ctrl+I) to directly ask it to draft an 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, 'friendly' 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 formula.
Can Copilot use the context of my project to enrich the email?
This is one of Copilot's distinctive advantages over generalist AI tools. If you have files open related to the email's subject (README, changelog, tickets), Copilot can draw inspiration from them to include relevant technical details. For example, if you're writing a release email, open the CHANGELOG.md and Copilot will naturally integrate the latest changes into your communication. With Copilot Chat, you can even reference specific files with @workspace.

Related prompts

How to use this prompt

  1. Copy the prompt with the button above.
  2. Paste it into ChatGPT, Claude or your favorite AI assistant.
  3. Replace the bracketed variables with your details, then refine the result.

About Prompt Guide

Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.

More prompts to explore

Midjourney Prompt for Analyzing a Contract

Midjourney, as an AI image generation tool, cannot analyze the textual content of a contract in the legal sense. However, it excels at creating impactful visuals to illustrate complex contractual concepts: negotiation process infographics, visual representations of key clauses, decision flow diagrams, or professional illustrations for legal presentations. These visuals transform dry documents into engaging communication materials, making them easier to understand for non-legal audiences. Whether you are a lawyer preparing a client presentation, a legal officer training your teams, or an entrepreneur looking to simplify your terms and conditions, Midjourney allows you to create professional-quality visual representations. The following prompts are designed to generate clear, structured illustrations that are appropriate for the legal and contractual context, respecting the visual codes of the sector: sobriety, clarity, and professionalism. Discover how to turn contract analysis into a visual experience with optimized prompts for Midjourney.

Midjourney Prompt for Creating E2E Tests

Midjourney, renowned for its power in AI image generation, can play an unexpected but strategic role in the creation of E2E tests.

Midjourney Prompt for Organizing a Project

Midjourney is primarily known for generating artistic images, but it proves to be a powerful tool for creating impactful project management visuals.

Midjourney Prompt for Planning a Product Launch

Midjourney has become an essential tool for marketing teams and entrepreneurs who want to bring their product launch vision to life before

Midjourney Prompt for Writing a Newsletter

Midjourney has become an essential tool for creating impactful visuals that accompany your newsletters. In a context where inboxes are saturated, the header image or illustrations embedded in your newsletter make all the difference between an email that's opened and one that's ignored. With Midjourney, you can generate custom visuals that reinforce your editorial message, illustrate your sections, and create a consistent visual identity from one edition to the next. Whether you produce a weekly tech newsletter, a monthly digest for your community, or a corporate newsletter, Midjourney lets you produce professional-quality images without hiring a graphic designer. The prompts presented on this page are specifically designed to generate visuals suitable for newsletter format: horizontal banners, section illustrations, thematic icons, and mood images. Each prompt includes essential technical parameters such as the aspect ratio suited for emails and a visual style consistent with email marketing standards. Discover how to transform your newsletters into memorable visual experiences.

Midjourney Prompt to Optimize SEO

Midjourney has become an essential tool for SEO professionals who want to enrich their visual content without blowing their budget. Search engines increasingly value pages that feature original and relevant images, at the expense of overused generic stock photos. By generating unique visuals with Midjourney, you improve time on page, reduce bounce rate, and increase your chances of appearing in Google Images — a source of organic traffic often overlooked. SEO optimization through images involves creating contextual visuals that reinforce content understanding for users and crawlers. A well-crafted Midjourney prompt allows you to produce blog illustrations, stylized infographics, featured images, and explanatory diagrams that capture attention in SERPs. By combining precise descriptions, web-friendly format parameters, and visual consistency with your brand guidelines, you turn each image into a natural search engine optimization lever. This guide provides optimized prompts to create visuals that directly serve your SEO strategy.

Go further

Get new prompts every week

Join our newsletter.

GitHub Copilot Prompt for Writing an Email | Prompt Guide