P

How to Write Cold Outreach Emails with GitHub Copilot

GitHub Copilot, GitHub's AI assistant, is not limited to code generation. With its chat feature integrated into VS Code, it can help you write compelling and personalized cold outreach emails. By leveraging its text generation capabilities, you can create professional email sequences, adapt your tone to different prospect segments, and quickly iterate on your messages. This tutorial guides you step by step to transform GitHub Copilot into a real business writing tool, from the initial brief to optimizing your subject lines, including personalization at scale. You'll discover how to structure your prompts to get convincing results and avoid the classic pitfalls of automated prospecting.

Prerequisites

  • 1.Have an active GitHub Copilot subscription (Individual, Business, or Enterprise)
  • 2.Have Visual Studio Code installed with the GitHub Copilot Chat extension
  • 3.Know the basics of your business offer and your prospecting target

Steps

1

Define the context and target persona

Open the GitHub Copilot chat in VS Code (Ctrl+Shift+I) and start by providing detailed context to the AI. Describe your company, your value proposition, and the exact profile of the prospect you are targeting. The richer the context, the more relevant and personalized the generated email will be. Create a context.md file in your project to store this information and reference it in future conversations.

You are a B2B copywriting expert. I work for [COMPANY_NAME], we offer [OFFER_DESCRIPTION]. Our target: [JOB_TITLE] at companies in [INDUSTRY/SIZE]. The main pain point of our prospects is [PROBLEM]. Generate a prospecting brief that I can reuse to create my emails.

Tip: Create a .md file with your brief so you can reference it with @file in the Copilot chat during future sessions.
2

Generate the first cold outreach email

Ask Copilot to draft a first cold outreach email. The goal is to get a short message (under 150 words) with a catchy subject line, personalized opening, clear value proposition, and simple call to action. Request multiple variants for A/B testing.

Based on the brief above, write 3 variants of a cold outreach email. Each email should include: a subject line under 50 characters, a personalized opening in 1 sentence, the prospect's pain point, our solution in 1-2 sentences, and a CTA in the form of a question. Tone: professional but conversational. Maximum 120 words per email.

Tip: Ask Copilot to number the variants and explain the strategy behind each approach (curiosity, social proof, urgency) to help you choose.
3

Create a 3-email follow-up sequence

A single email is never enough in prospecting. Ask Copilot to generate a complete follow-up sequence with different angles at each step. Each follow-up email should bring new value (case study, statistic, free content) rather than just nudging. Specify the desired spacing between each send.

Create a sequence of 3 follow-up emails after the initial cold email. Follow-up email 1 (D+3): social proof angle with a client result with numbers. Follow-up email 2 (D+7): value content angle, offer a free resource. Follow-up email 3 (D+14): break-up angle, last message with a touch of humor. Keep the same tone and stay under 100 words per email.

Tip: Ask Copilot to add personalization tags like {{first_name}}, {{company}}, {{industry}} for easy integration into your emailing tool.
4

Personalize emails for different segments

Use Copilot to adapt your sequence to different prospect segments. Provide the specifics of each segment (industry, company size, digital maturity) and ask the AI to adjust the vocabulary, examples, and pain points accordingly. This allows you to scale your prospecting while maintaining a high level of personalization.

Adapt the initial cold email for these 3 different segments: 1) Marketing directors at SaaS startups (20-50 employees), 2) Sales managers at industrial SMEs (100-500 employees), 3) CEOs of consulting firms (5-20 employees). For each segment, adjust: the main pain point, industry vocabulary, client result example, and CTA.

Tip: Store each segmented variant in separate files (segment-saas.md, segment-industry.md, etc.) to build a library of reusable templates.
5

Optimize subject lines and open rate

The subject line is the number one factor for open rate. Ask Copilot to generate many subject line variants using different copywriting techniques (curiosity, numbers, personalization, question). Then ask it to evaluate each subject line according to specific criteria to select the best candidates to test.

Generate 10 alternative email subject lines for my cold email using these techniques: 2 with a number/statistic, 2 as a question, 2 with the prospect's first name, 2 creating curiosity, 2 mentioning a direct benefit. Then rank them from most to least effective, justifying your choice with a score of 1 to 10 on: curiosity, clarity, and relevance.

Tip: Systematically test 2-3 different subject lines per campaign. Subject lines of 6-10 words starting with a lowercase letter often perform better in B2B as they resemble a real email.

Common mistakes to avoid

  • Providing too vague a context to Copilot, which generates generic emails without any personalization or relevance to the targeted prospect
  • Using the generated emails as-is without proofreading or adapting them, resulting in an artificial tone and phrasing that doesn't match your brand voice
  • Writing emails that are too long: in cold outreach, going over 150 words drastically reduces your response rate
  • Forgetting to ask Copilot for multiple variants and settling for the first suggestion without iterating or testing different approaches
  • Not including a clear and single CTA in each email, leaving the prospect with no concrete action to take

FAQ

Is GitHub Copilot really suitable for writing cold outreach emails?
Yes, GitHub Copilot Chat uses the same advanced language models as other AI assistants. Its strength lies in its direct integration with VS Code, allowing you to work on emails like code: versioning with Git, reusable Markdown templates, and rapid iteration. For tech teams already using VS Code daily, it's a natural and efficient workflow.
How can I prevent my AI-generated emails from being flagged as spam?
Three essential rules: personalize each email with specific elements about the prospect (name, company, recent news), vary your templates to avoid sending the same text to hundreds of people, and always proofread to replace overly generic phrasing. Also avoid trigger words for spam filters like 'free', 'limited offer', or 'urgent'.
How many email variants should I generate before launching a campaign?
Generate at least 3 variants per email in your sequence, with different angles (social proof, direct benefit, curiosity). Test them on samples of 50 to 100 prospects each before scaling the winning variant. For email subject lines, aim for 5 to 10 variants and select the top 2-3 for an A/B test in real conditions.

Related tutorials

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 tutorials

How to Write Product Descriptions with Gemini

Writing convincing product descriptions is a challenge for any e-commerce merchant. Each product requires a unique, SEO-optimized description that is persuasive enough to trigger a purchase. In this tutorial, you'll learn how to use Gemini to produce professional product descriptions in minutes.

How to Write Subtitles with DALL-E

DALL-E, the artificial intelligence image generator developed by OpenAI, can be a valuable ally for creating visuals that include impactful subtitles.

How to Write a Blog Post with Claude

Writing a quality blog post takes time, research, and a good structure. With Claude, Anthropic's AI assistant, you can speed up

How to Write a Blog Post with Midjourney

Midjourney is an AI-powered image generation tool that can radically transform the visual quality of your blog posts. Rather than searching for generic stock photos, you can create unique illustrations perfectly tailored to your content. In this tutorial, we'll explore how to use Midjourney to produce impactful visuals for each section of your article: cover image, concept illustrations, stylized infographics, and brand graphic elements. Whether you're a blogger, web writer, or content creator, mastering Midjourney will enable you to publish professionally-looking articles without a graphic designer, while maintaining a consistent visual identity across your entire blog.

How to Write a Business Proposal with Midjourney

Midjourney is an AI image generation tool that can transform your business proposals into visually striking documents.

How to Write a Business Proposal with Mistral

Writing a compelling business proposal is a strategic exercise that requires both rigor and creativity. Thanks to Mistral, the leading French AI, you can significantly accelerate this process while maintaining a high level of quality. Mistral helps you structure your pitch, customize your offer according to the prospect, and produce a professional document ready to send. In this tutorial, you will learn how to leverage Mistral step by step to create impactful business proposals that maximize your conversion chances. Whether you are a freelancer, a salesperson, or a SME manager, this method will save you valuable time while improving the quality of your business documents.

Get new prompts every week

Join our newsletter.