---
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/create-product-packaging-codes/copilot
---
# How to Create Product Packaging 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 QR codes for each product in products.json using qr-code-generator"
3. Copilot generates codes and provides URLs for each product
4. Save codes to your packaging assets directory
5. Ask Copilot to update the product database with QR code references

## Example Prompt

```
Generate QR codes for all products in data/products.json linking to /products/{slug}/setup. Save to assets/qr/.
```

## Tips

- Automate QR code generation as part of your product data pipeline
- Copilot can update product databases with QR code file references
- Use for generating codes in CI/CD when new products are added to the catalog
