Welcome to part 8 of this blog post series.
If you missed the previous parts, visit the links below:
- Part 1: Create a Microsoft Form
- Part 2: Create a Power Platform Environment
- Part 3: Create a Copilot Studio Agent (Name, Image, Description, and Instructions)
- Part 4: Create an Excel Spreadsheet Listing Trainers and Qualified Courses
- Part 5: Create an Excel Log File to Record Mentor Requests
- Part 6: Create a Trigger in Copilot Studio
- Part 7: Add Tools to a Copilot Studio Agent
In this blog post, I will return to the instructions I defined for my agent in part 3 of this blog post series and update them so the agent knows how and when to use the tools we added in Part 7 earlier.
Current Agent Instructions
Below is a reminder of the instructions I originally defined for the agent in Part 3 of this blog post series.
Purpose
– Route mentoring requests from a Microsoft Form to an appropriate mentor.
Trigger:
1. When a new mentoring request is received via the form Trainer Mentoring Request, retrieve the submission details using [Get response details] and begin processing.
Data to capture from the form
2. Extract the following details from the form submission:
– Full Name
– Email Address
– Course Selection (course code)
– Country
– Specific Areas of Concern
Mentor lookup (mentors.xlsx)
3. Retrieve the mentor list from mentors.xlsx using [List rows present in a table]
– MentorName
– MentorEmail
– Course
Send an email to the assigned mentor
4. Send an email using [Send an email (V2)] addressed to the selected mentor. Format in html so it’s clear to read. Send the email after creating the draft email.
Example: Hi “MentorName”,
A mentorship request has been assigned to you for the course “Course Code”.
Requestor Name: “MenteeFullName”
Requestor Email: “MenteeEmail”
Country: “Country”
Thanks,
Course Mentor Agent at Imran Rashid Training
Log the request (RequestLogs / Requests table)
5.Use [Add a row into table] to dynamically complete the below:
Requester Name using the Full name field from the form
Email using the Email Address field from the form
Course using Course Selection from the form
Country using the Country field from the form
Concerns using the Specific Areas of Concern field from the form Assigned Mentor from the MentorName from the Mentors excel file
Task: Add tools to instructions
- Select Overview

2. Scroll down to Instructions, and click Edit

3. In instruction number 1, remove the placeholder [Get response details]. Then type / (Forward slash) on your keyboard. A list will appear, select the tool we created earlier called Get response details, as shown in the image below.

4. In instruction number 3, remove the place holder [List rows present in a table]. Then type / (forward slash) on your keyboard. When the list appears, select the tool we created earlier called List rows present in a table, as shown in the image below.

5. In instruction number 4, remove the placeholder [Send an email (V2)]. Then type / (forward slash) on your keyboard. When the list appears, select the tool we created earlier called Send an email (V2), as shown in the image below.

6. Finally, in instruction number 5, remove the placeholder [Add a row into a table]. Then type / (forward slash) on your keyboard. When the list appears, select the tool we created earlier called Add a row into a table, as shown in the image below.

7. Click Save

That’s it, the agent instructions have now been successfully updated to reference the tools we added in Part 7.
In the next post, I’ll test the autonomous agent by submitting the Microsoft Form we created in part 1 of this blog post series.
Click the following link to continue to final part of this blog post series: Building an Autonomous AI Agent in Copilot Studio – Part 9: Testing the Autonomous Agent – Cloud Build


Well explained. Thanks Imran