---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/generate-image/use-cases/generate-email-headers/copilot
---
# How to Generate Email Headers with Copilot

Copilot generates email headers within your IDE, making it natural to create marketing visuals alongside email template code. Generate header images and the HTML embed code in the same session, keeping visual assets synchronized with your email development workflow.

## Setup

{"mcpServers":{"toolrouter":{"command":"npx","args":["-y","toolrouter-mcp"]}}}

## Steps

1. Add ToolRouter to Copilot MCP config
2. In Copilot Chat: "Generate an email header for our developer newsletter"
3. Copilot creates the header via ToolRouter
4. Ask for code: "Show me the HTML email template to embed this header"
5. Save the image and use it in your email template

## Example Prompt

```
Generate a 600x200 email header for a developer changelog newsletter. Dark theme with code aesthetics and the text "Dev Updates" in monospace font.
```

## Tips

- Copilot can generate both the header image and the HTML template code
- Great for developer newsletters and product changelog emails
- Keep the file size in mind — optimize for fast email loading
