Edit

Share via


Custom engine agent user experience features

Microsoft 365 Copilot is the user interface for AI. Custom engine agents are specialized chat experiences designed to harness the powerful capabilities of Large Language Models (LLMs) for seamless user interaction. Agents act as automated helpers that users interact with to perform tasks grounded in organizational data.

The agent user experience (UX) provides intuitive, efficient, and contextually relevant interactions to enhance user satisfaction and productivity. This article describes the native UX features on Copilot chat and Teams platform that you can apply and customize in your custom engine agents to enhance user interactions.

Prompt starters

Prompt starters, also known as conversation starters, provide predefined prompts in your agent to help users initiate interactions. You can define the initial conversation messages in the latest manifest.json.

A screenshot of zero prompt

For more information, see Create prompt suggestions.

Suggested prompts

Suggested prompts guide users to the next best actions based on the conversation context, user profiles, and organizational preferences. These prompts replace the existing dynamic suggested actions functionality and can also be displayed within Adaptive Card responses.

A screenshot of Suggested prompt

For more information, see Create prompt suggestions.

Streaming responses

Streaming responses are designed to enhance the user experience by providing visual real-time updates as the agent processes a request. This helps to prevent noticeable delays and makes interactions feel faster and more engaging.

A screenshot of streaming response

You can implement streaming responses by using the Teams AI library. For more information, see Streaming messages.

Citations

Citations are references to the sources of information used by the agent to generate its responses. These citations help to ensure transparency, credibility, and trustworthiness in agent interactions.

A screenshot of citations

Citations are returned by the model, and you can interact them with Teams AI Library. See the SDK reference.

AI labels

AI labels are automatically added to all agents' messages to indicate that Ai generated a response. This transparency helps users distinguish between AI-generated and human-generated content and fosters trust in agent responses. These labels are automatically added to AI-generated messages when you use the Teams AI library.

A screenshot of AI labels

For more information, see Enhance AI-generated messages.

Feedback loop

Feedback loops are mechanisms that allow users to provide feedback on an agent's responses. This feedback helps refine and improve the agent's performance over time to help it become more accurate and useful.

A screenshot of feedback loop

For more information, see Feedback buttons.

Asynchronous patterns

Custom engine agents can handle multiple tasks concurrently without blocking the main thread. Users can keep chatting with an agent while a task is in process, even when the task takes a few minutes or days. After the task is completed, the agent sends a notification to the user. These patterns are common scenarios for Teams bots, and are available in Copilot chat as well.

For more information, see Implement asynchronous and proactive messaging in custom engine agents.

Follow-up messages

Follow-up messages on user-initiated workflows keep users informed about the status of their requests or jobs. For example, an IT agent updates the user when a new laptop purchase request is approved.

Note

Custom engine agents build with Copilot Studio don't support asynchronous messages.

Long-running task

Long-running tasks are another type of user-initiated workflow where a process takes a long time to complete. For instance, a business document management agent might handle batch processing of multiple contract documents. While the process is still running, the user can continue chatting since the messages are nonblocking.

To send a follow-up message or wait for a long-tunning task, you can use the turn context object's SendActivity (or SendActivityAsync in C#) in the async/await pattern with Teams AI Library.

Proactive messages

Proactive messages are agent-initiated messages based on predefined triggers; for example, sending reminders and alerts.