No history yet

Configuring Agent Logic

The Brain of Your Agent: Topics

In Microsoft Copilot Studio, the core of your agent's intelligence lies in its Topics. Think of each Topic as a distinct conversation path designed to handle a specific user request, like checking store hours or tracking an order. When a user interacts with your agent, the AI's job is to match the user's intent to the correct Topic and kick off that dialogue.

You'll build these conversation paths on the authoring canvas, a visual tool that works like a flowchart. Each step in the conversation is a 'node'. You can add nodes to make the agent send a message, ask a question, run an action, or branch the logic based on a condition. This structure allows you to design everything from simple Q&A to complex, multi-step processes.

Triggering a Conversation

How does the agent know which Topic to use? It depends on the trigger you set. This is a critical design choice that determines how rigidly or flexibly your agent interprets user input. You have two main options: Classic triggers or Generative triggers.

In the Classic approach, you provide a list of specific trigger phrases, also known as utterances, for each Topic. For example, a 'Password Reset' Topic might have triggers like "I forgot my password," "reset password," and "can't log in." The agent looks for an exact or very close match between the user's message and one of these phrases. This method gives you precise control but can be brittle. If a user types something you didn't anticipate, like "my login isn't working," the agent might not find the right Topic.

Classic triggers are best when you need to map specific, predictable phrases to a Topic without ambiguity.

The alternative is using generative triggers, which leverage the power of Generative AI. Instead of providing a list of phrases, you simply describe what the Topic is about in natural language. For the password reset example, your description might be: "This topic helps users who have forgotten their password or are unable to log into their account."

The AI uses this description to understand the Topic's purpose contextually. It can then intelligently route users to it based on the meaning of their request, not just the specific words. This makes the conversation feel much more natural and robust.

OrchestrationBest ForProsCons
ClassicHighly structured, predictable tasksPrecise control, less ambiguityBrittle, requires anticipating user phrasing
GenerativeComplex or varied user intentsFlexible, more natural, less setupRelies on AI interpretation, may have less precision

System and Custom Topics

When you create a new agent, it comes with several pre-built System Topics. These handle the essential scaffolding of a conversation: greeting the user, confirming success, escalating to a human, and ending the chat. You can customise the dialogue in these topics, but you can't delete them. A key System Topic is the Fallback topic. This is the agent's safety net, triggered when it doesn't understand a user's request and can't match it to any other Topic. A well-designed Fallback topic is crucial for a good user experience, gently guiding the user to rephrase their question or offering other options.

Any new Topic you create is a Custom Topic. This is where you'll build the unique skills for your agent. For effective intent recognition, it's best to create focused, distinct Topics. Avoid creating large, monolithic Topics that try to handle too many different intents. If a user asks, "Can I track my order and see your return policy?" the agent needs to handle two separate intents. A good practice is to design separate 'Order Tracking' and 'Return Policy' Topics and let the agent address them one by one. This modular approach makes your agent easier to build, test, and maintain.

Quiz Questions 1/5

What is the primary function of a Topic in a Microsoft Copilot Studio agent?

Quiz Questions 2/5

What is the key difference between using Classic triggers and Generative triggers for a Topic?