---
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/qr-code-generator/use-cases/generate-payment-link-codes/copilot
---
# How to Generate Payment Link Codes with Copilot

Copilot generates QR codes from within your development environment and embeds them directly in your project artifacts. Create codes for your application, documentation, email templates, or invoice systems, then wire them into your build pipeline so QR codes are regenerated automatically when URLs or product data change. This workflow treats QR codes as code-managed assets rather than manually created images, ensuring they stay in sync with the data they represent across deployments.

## Setup

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

## Steps

1. Add ToolRouter to Copilot MCP config
2. In Copilot Chat: "Generate a QR code for our checkout URL using qr-code-generator"
3. Copilot generates the payment QR code
4. Embed the code in your invoice template or checkout page
5. Ask Copilot to add scan-to-pay functionality to your point-of-sale display

## Example Prompt

```
Generate a QR code for our Stripe checkout link and embed it in the invoice HTML template at templates/invoice.html.
```

## Tips

- Copilot can embed payment QR codes directly in invoice templates
- Use for generating QR codes programmatically in billing systems
- Ask Copilot to add the QR code to your pricing page for mobile-first checkout
