Add a display name suffix to identify agents across environments (preview)

[This article is prerelease documentation and is subject to change.]

When you deploy the same agent solution to multiple environments (Development, Test, and Production), all agent instances use the same display name in Microsoft Teams and Microsoft 365 Copilot. As a result, users might have a harder time identifying which environment an agent belongs to.

To solve this problem, configure a Channel display name suffix that appends an environment variable value to your agent's display name in Teams and Microsoft 365 Copilot. Because environment variables can have different values in each environment, your agent automatically shows the correct environment identifier without changes to the solution itself.

For example, if your agent is named "HR Support Agent" and you configure a suffix environment variable:

Environment Environment variable value Display name in Teams
Development (Development) HR Support Agent (Development)
Test (Test) HR Support Agent (Test)
Production (blank) HR Support Agent

Note

The agent's display name in Copilot Studio doesn't change. The suffix only appears in the published channels (Teams and Microsoft 365 Copilot).

Important

This article contains Microsoft Copilot Studio preview documentation and is subject to change.

Preview features aren't meant for production use and may have restricted functionality. These features are available before an official release so that you can get early access and provide feedback.

If you're building a production-ready agent, see Microsoft Copilot Studio Overview.

Prerequisites

Configure the channel display name suffix

  1. In Copilot Studio, open the agent that you want to configure.

  2. Select Settings, and then select Advanced.

  3. Under Solutions, locate the Channel display name suffix field.

  4. From the dropdown, select an environment variable to use as the suffix. Only environment variables of type String are listed.

    To remove a previously configured suffix, clear the selection so the field is blank.

  5. Select Save.

  6. Publish your agent for the changes to take effect in Teams and Microsoft 365 Copilot.

Important

Only environment variables of type String are supported for the channel display name suffix. Other environment variable types, such as Number or JSON, don't appear in the dropdown.

How it works with application lifecycle management and solution deployments

When you use solutions for application lifecycle management, the solution is the source of truth for your agent configuration. The channel display name suffix setting is part of the solution. When you deploy, the display name suffix persists across environments.

Because you always deploy a managed solution, nothing changes in your target test or production environments except for the environment variable values, which you can update per environment. You can use Power Platform pipelines to deploy your solution and update environment variable values as part of the deployment process.

For example:

  1. In your Development environment, create a String environment variable (for example, dev_EnvironmentDescription) with a default value of (Development).

  2. Configure the agent's Channel display name suffix to use this environment variable.

  3. Export the solution and deploy it to your Test environment. Update the environment variable value to (Test).

  4. Deploy the solution to your Production environment. Leave the environment variable value blank so that nothing is appended to the agent name.

Important

The environment variable should be in the same solution as your agent. Environment variables from other solutions appear in the dropdown, but they might not exist in the target environment when you deploy, which causes the suffix to not be applied.

Supported channels

The channel display name suffix is applied only when you publish your agent to the following channels:

  • Microsoft Teams
  • Microsoft 365 Copilot

This setting doesn't affect other channels, such as Facebook, SharePoint, or custom websites.