With this integration, you can query Application Workspace reporting data using natural language from Microsoft 365 Copilot and Microsoft Teams.
To set up the integration, you'll need to complete the following tasks:
- Create Application Workspace API Credentials
- Create the Copilot Studio Agent
- Create the Power Automate Agent Flow
- Configure the OData HTTP calls
- Publish the Agent Flow as an Agent Tool
For step-by-step instructions, see Set Up the Copilot Integration for Application Workspace Reporting.
In this scenario, the Copilot Studio agent does not treat the OData feed as static knowledge. Instead, it invokes an agent flow at runtime. The flow authenticates to Application Workspace, retrieves reporting datasets, and returns the results to the agent.
Runtime Sequence
The integration uses the following runtime sequence:
1. The user asks the Application Workspace agent a question in Microsoft 365 Copilot.
2. Copilot Studio decides that the Application Workspace reporting tool is needed and calls the published Power Automate agent flow.
3. The flow sends an authenticated GET request to https://<zone>/api/reports/v4/ to enumerate available datasets.
4. The flow parses the value array and loops through each dataset.
5. For each dataset, the flow sends another GET request, appends the response to an AllData string, and labels the block with the dataset name.
6. The flow returns AllData to the agent as text. The agent uses that output to answer the user.
The Application Workspace client-secret credential belongs to the flow, not to the person chatting with the agent. Unless you add another authorization layer, every authorized agent user can potentially receive data available to that shared credential.