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.
Learn more
Check the full skill on Prompt Guide to master this technique from A to Z.
View on Prompt Guide📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Similar Prompts
Generate Batch SEO Meta Descriptions
Generates unique SEO meta descriptions and title tags in batch for multiple pages, with character count and short variant.
Perplexity Prompt for Writing a Press Release
Writing an effective press release requires mastery of journalistic codes, a rigorous structure, and a compelling hook. Perplexity, thanks to its real-time research and intelligent synthesis capabilities, becomes a valuable ally for this task. Unlike a simple text generator, Perplexity can cross-reference current sources, verify facts, and produce a press release grounded in current media reality. Whether you are announcing a product launch, a funding round, a strategic partnership, or an event, the tool helps you structure your message according to PR standards: inverted pyramid, executive quote, data, and clear call to action. By crafting a precise prompt, you get a professional first draft that you can refine in minutes, whereas traditional writing would require several hours of research and formatting. This page offers optimized prompts to get the most out of Perplexity for writing your press releases, regardless of your level of communication expertise.
Write Your Professional Biography
Creates 4 professional biography versions adapted to Twitter, LinkedIn, conferences, and web pages, with optimal usage context for each.
B2B Prospecting Cold Email That Gets Replies
Generates 3 cold email B2B variants with different approaches (problem, value, curiosity), 3 testable subject lines, and Day+5 follow-up for each.