Create Additional Topics - Multi-Topic Agent Design
By the end of this lab, you will be able to:
- Understand how to create multiple topics for different agent capabilities
- Design topics with branching logic and conditions
- Create different prompts for different use cases
- Integrate flows across multiple topics
- Build a complete multi-capability agent
- Microsoft 365 account with Copilot Studio access
- Sales Agent with Meeting Recap and Flow (from Labs 6-8)
- SharePoint documents or knowledge sources
- Onedrive for business or SharePoint site with Excel access
- Email access for testing
- Learn how to create topics for different use cases:
- Different topics for different user intents
- Reuse knowledge and flows across topics
- Build a complete agent experience
- Understand topic triggering:
- Each topic has a description that helps the agent know when to use it
- Users can explicitly ask for a topic ("create a meeting recap")
- Agent can intelligently route to topics based on user input
- In your Sales Agent, add another topic
- Select Topics → Add a topic → From blank
- Configure:
- In the Price Calculator topic, add a node
- Select Ask with adaptive card
- Click on the three dot(...) to open Adaptive Card Node Properties
- Select Edit adaptive card
- In the Adaptive Card Designer, by default it is a blank template

- Configure the card structure:
- Click on the middle(Under Empty Adaptivecard) to add elements
- Double click/drag and drop TextBlock for the title:
- Add input fields to the card:
- Add a Submit button:
- Save the adaptive card by clicking Save at the top right corner
- Close the designer and return to the topic
- Configure the adaptive card response variables:
- The card will automatically create variables from the input fields:
productName- from the Product Name inputquantity- from the Quantity inputunitPrice- from the Unit Price input
- These variables will be available for use in subsequent nodes

- The card will automatically create variables from the input fields:
-
Select + to add a node
-
Select Add a tool → New prompt
-
Configure:
- Name:
Calculate price and create quote - Instructions:
Based on this product request provided, calculate a realistic price quote. Include: - Product Name /productName - Unit price (use provided price or look up based on product) /unitPrice - Quantity ordered /quantity - Subtotal (Quantity × Unit Price) - Any applicable discount (if quantity > 10, apply 10% discount) - Final total price - Payment terms suggestion (e.g., Net 30) Format as a professional quote with clear formatting. Return ONLY valid JSON in the following format. Do not include explanations, markdown, or extra text. { "itemName": "", "qty": 0, "unitPrice": 0, "subtotal": 0, "discount": 0, "finalTotal": 0 } Rules: - subtotal = unitPrice * qty - discount = 0 unless qty > 10 then discount = subtotal * 0.10 - finalTotal = subtotal - discount - paymentTerms default "Net 30" - note should be empty unless an input is missing or invalid, then explain briefly what is missing.
- Name:
-
Add the adaptive card inputs as content:
- Name the first input:
productName - Add another content field
- Name it:
quantity - Add another content field (Optional)
- Name it:
unitPrice
- Test the prompt by clicking Test prompt at the top
- Review the output and ensure it change the output to JSON format

- Save the prompt by clicking Save at the bottom right corner
- Name the first input:
-
Create output variables for each field:
-
Add a Send a message node
-
Configure:
-
Insert the individual variables from the prompt using the insert variable button {x}:
-
Product: {x} itemName
-
Quantity: {x} qty
-
Unit Price: ${x} unitPrice
-
Subtotal: ${x} subtotal
-
Discount: ${x} discount
-
Final Total: ${x} finalTotal
-
Payment Terms: {x} paymentTerms
-
Note: {x} note
4 . Save the topic by clicking the Save button at the top right corner -
- Create the Excel file outside Copilot Studio first
- Go to OneDrive for business or SharePoint Site [Note: You can use either OneDrive or SharePoint for storing the Excel file. Ensure you have edit permissions. If you are unsure how to create an Excel file in OneDrive or SharePoint, follow the guide on Course Setup]
- Create a new file named:
PriceQuote.xlsx
- Open the file and inside it:
- Ensure you have a worksheet (default is Sheet1)
- Create column headers in the first row:
- Column A: Item
- Column B: Quantity
- Column C: Unit Price
- Column D: Total
- Column E: Discount
- Column F: Final Total
- Column G: Payment Terms
- Column H: Note
- Select the header row and all empty rows below it (e.g., A1:F100)
- Convert the range into a Table:
- Highlight the range
- On the Insert tab, select Table option
- A prompt will appear, ensure "My table has headers" is checked
- Click on OK

- Name the table:
- Save the file
- This pre-created table allows Power Automate to insert data into it dynamically
- In the Price Calculator topic, add another node after the message
- Select Add a tool → New Agent flow
- In the Power Automate designer:
- Add inputs from the prompt outputs:
- Create an action: Add a row into a table (from Excel Online)
- Configure the Excel action:
- Location: Select your OneDrive or SharePoint location
- Document Library: Select the library where PriceQuote.xlsx is stored
- File:
PriceQuote.xlsx - Table:
QuoteTable
- Map the fields directly to the Excel columns:
- No parsing or expressions needed—the prompt already returns segregated, clean data ready for direct insertion
- Optionally add another action:
- Use Send an email to email the quote details to the user
- Include a link to the PriceQuote.xlsx file in OneDrive/SharePoint
- Format the email professionally
- Save and publish the flow
- Return to the topic and connect it
- Refresh the test pane
- Test Topic 1 - Meeting Recap:
I want to create a meeting recap- Upload a transcript
- Verify email draft creation
- Test Topic 2 - Price Calculator:
Can you calculate a price for me?- Request a quote for a product
- Verify the price calculation and that it's added to the QuoteTable in PriceQuote.xlsx
- Check the PriceQuote.xlsx file in OneDrive/SharePoint to verify the data was inserted into the QuoteTable
- Observe how the agent intelligently routes between topics
- Navigate to the agent Overview
- Edit the Instructions to include:
- Reference to the new Price Calculator topic
- Examples of when to use each topic
- Save changes
~75 minutes
Proceed to Lab 10: Create Conditional Logic and Multi-Path Conversations













