Building an Autonomous AI Agent in Copilot Studio – Part 9: Testing the Autonomous Agent

Reading Time: 3 minutes


Welcome to part 9 and the final part of this blog post series.

If you missed the previous parts, visit the links below:

In this blog post, I’ll test the autonomous agent end to end to ensure everything works as expected.

During this test, I will:

  1. Submit the Microsoft Form created in part 1, selecting SC-401 as the requested course
  2. Wait for the agent to trigger automatically
  3. Verify that the agent reads the Mentors.xlsx file and identifies a suitable mentor
  4. Confirm that an email is sent to the mentor associated with the SC-401 course
  5. Check that a new row is added to the RequestLogs.xlsx file with the request and assignment details

Task: Test the autonomous agent

  1. Access the Microsoft Form created in part 1 of this blog post series and submit a new response.
Agent19
Agent20


2. Check that the Microsoft Form has been submitted successfully.

Agent21


3. Now we wait for the autonomous agent to do its job. In my case, it took less than a minute for the agent to start processing the request.



Email sent to Mentor


An image is shown below confirming that the mentor received the email notification

Agent22



Mentor Assignment Confirmed


Hannah Doe has been correctly identified as the mentor for the SC‑401 course. The file shown below confirms that Hannah is listed as the mentor for SC‑401.

Agent23



Log file updated with requester details and assigned mentor ✅


RequestLogs.xlsx file has been automatically updated with the requester’s details and the assigned mentor.

The image below shows the log entry confirming Hannah Doe was assigned as the mentor for the SC‑401 course.

Agent27



The next step is optional. If you’d like to test the trigger manually without submitting another Microsoft Form response, follow the steps below.

  • Go to Copilot Studio at copilotstudio.microsoft.com and select the agent
  • Click Test, located in the top right corner of the Copilot Studio interface
  • Click the three dots, as shown in the image below
  • Click Test Trigger
  • Select When a new response is submitted
Agent24


Select the response you want to test, then click Start testing

Agent26


The screenshot below illustrates how the agent processed each task step by step, from detecting the form submission to completing all configured actions.

Agent28


And that’s it.

I hope you enjoyed following this blog post series and learned something new.

If you have any feedback or thoughts, I’d love to hear them, please feel free to leave a comment below.