The docfinder declarative agent demonstrates how you users can easily discover documents in SharePoint and OneDrive based on those created, modified or viewed by them. As a agent builder, it illustrates how you can use instructions to steer Copilot to help the user. Take a look at the instructions file to see more.
Prerequisites
To run this app you will need:
- Node.js, supported versions: 18, 20
- A Microsoft 365 account with permission to sideload Teams applications.
- Teams Toolkit Visual Studio Code Extension version 5.0.0 and higher
- Microsoft 365 Copilot license
- First, select the Teams Toolkit icon on the left in the VS Code toolbar.
- In the Account section, sign in with your Microsoft 365 account if you haven't already. Ensure that both "Custom App Upload Enabled" and "Copilot Access Enabled" have green checkmarks
- Create and provision the Teams app by clicking
Provisionin "Lifecycle" section. - Select the "Run and Debug" icon in the left sidebar, and then select
Preview in Copilot (Edge)orPreview in Copilot (Chrome)from the launch configuration dropdown. - Once the Copilot app is loaded in the browser, click on the "…" menu and select "Copilot agents". You will see your declarative agent on the right rail. Clicking on it will change the experience to showcase the logo and name of the declarative agent.
- Ask a question to your declarative agent and it should respond based on the instructions provided.
Please check out the author's YouTube short where he explains and demos the solution

