Edit

Share via


Add the image generator capability to your agent

The image generator capability enables declarative agents for Microsoft 365 Copilot to generate images based on user prompts. Image generator uses the existing Designer functionality to create visually appealing and contextually relevant graphics, and includes the following features:

  • Multiple image generation: For each user prompt, the agent generates four images.
  • Interactive image options: Users can select each generated image to view it in full size. They can download, copy, or view content credentials for the full-size image. They can also select the side arrow to scroll through the four images.
  • Image modification: Users can follow up with subsequent prompts to modify the original images without losing context. For example, first prompt: "Create a photo of a happy puppy running around in a yard." Second prompt: "Include a tennis ball."
  • Feedback mechanism: Users can provide feedback on the generated images by giving a thumbs up or thumbs down. This feedback helps improve the quality of future image generations.
  • Clipboard and sharing: Users can copy the generated images to their clipboard to paste into other applications, or they can share the generated images directly from the interface.

The image generator capability is available to Copilot Chat users with no metered usage or Microsoft 365 Copilot license.

Image generator examples

The following examples show what users can do with the image generation capability in your agent.

User prompt: Create an image of a serene beach at sunset with palm trees and gentle waves.

The following image shows the result.

Beach image response to the user prompt

User prompt: Design a flyer for a summer music festival and add a date for May 15, 2024.

The following image shows the result.

Festival flyer image response to the user prompt

Enable image generator

Agents Toolkit

If you're using Microsoft 365 Agents Toolkit (an evolution of Teams Toolkit) to create your agent, to enable image generator in your agent, add the GraphicArt value to the capabilities property in your manifest file, as shown in the following example.

Note

You must be using version 1.2 or later of the declarative agent manifest schema to add the GraphicArt capability.

{
  "capabilities": [
    {
      "name": "GraphicArt"
    }
  ]
}

Copilot Studio agent builder

If you're using Copilot Studio agent builder to create your agent, on the Configure tab, under Capabilities, choose the toggle next to Image generator.

Screenshot of the Capabilities section of the agent builder

Note

The image generator doesn't currently work in the test pane in Copilot Studio agent builder.