---
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/voice-generator/use-cases/generate-ivr-prompts/copilot
---
# How to Generate IVR Prompts with Copilot

Copilot generates IVR prompts within your IDE and can produce the phone system integration code alongside the audio files. This is ideal for developers building or maintaining Twilio, Asterisk, or RingCentral phone systems who want to manage voice assets as part of their infrastructure code.

## Setup

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

## Steps

1. Add ToolRouter to Copilot MCP config
2. In Copilot Chat: "Generate IVR prompt audio files for these menu options" and list them
3. Copilot generates each prompt and provides download links
4. Ask for Twilio or Asterisk integration code alongside the audio
5. Upload the files to your phone system programmatically

## Example Prompt

```
Generate IVR prompts for a Twilio-based phone system: greeting, sales transfer, support transfer, and voicemail instructions.
```

## Tips

- Copilot can generate both the audio files and the Twilio routing code
- Useful for developers building or maintaining phone system infrastructure
- Keep prompts under 30 seconds -- callers hang up on long menus
