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

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

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 4800+ 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

GitHub Copilot Prompt for Writing Cold Emails

GitHub Copilot, the AI-powered coding assistant from GitHub, is not limited to code generation. Thanks to its advanced language understanding capabilities, it can become a powerful ally for writing impactful cold emails. By using Copilot Chat directly from your IDE, you can generate personalized emails structured according to best practices in sales copywriting, tailored to your target. Whether you are a developer prospecting for a freelance project, a tech startup founder seeking first clients, or a salesperson at a SaaS company, GitHub Copilot allows you to produce professional cold emails in seconds. The major advantage lies in direct integration into your workflow: no need to switch tools or context. You describe your target, value proposition, and desired tone, and Copilot generates a ready-to-send email. This approach saves you considerable time while maintaining a high level of quality and personalization, two essential factors for maximizing open and reply rates in B2B prospecting.

GitHub Copilot Prompt for Writing Product Sheets

GitHub Copilot, the AI-powered coding assistant, proves to be a remarkably effective tool for writing professional product sheets directly from your code editor.

GitHub Copilot Prompt to Analyze a Contract

Contract analysis is a time-consuming task that requires careful attention to legal details. GitHub Copilot, with its natural language understanding capabilities, can assist you in quickly identifying key clauses, contractual obligations, and potential risk areas.

GitHub Copilot Prompt to Analyze a Financial Balance Sheet

GitHub Copilot, the AI-powered coding assistant, is not limited to code generation. With its data analysis and processing capabilities,

GitHub Copilot Prompt to Create a Business Plan

GitHub Copilot, the AI-powered programming assistant from GitHub, is not limited to code generation. With its advanced contextual understanding and structured text generation capabilities, it becomes a formidable ally for creating a complete and professional business plan. By leveraging the right prompts directly in your code editor, you can produce entire sections of your business plan: market analysis, business model, financial projections, and growth strategy. Copilot's major advantage lies in its ability to maintain consistency between different sections of your document, while adapting to the specific context of your entrepreneurial project. Whether you're a developer launching a tech startup or an entrepreneur looking to structure your vision, the prompts presented on this page will guide you to extract the maximum from GitHub Copilot in writing your business plan. Each variant is calibrated for a different level of expertise, from the beginner founder to the seasoned serial entrepreneur.

GitHub Copilot Prompt to Create a Knowledge Base

GitHub Copilot, the AI development assistant integrated into code editors, proves to be a powerful ally for creating structured and maintainable knowledge bases.

Go further

Get new prompts every week

Join our newsletter.