Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
This article reflects the new experiences for creating agents and workflows in Microsoft Copilot Studio. The new agent experience is currently available as a production-ready preview. Learn about the two agent experiences in Classic vs. new agent experience. The new workflows experience is in public preview. Learn about the two workflows experiences in Workflows overview.
- Public preview features aren't meant for production use and might have restricted functionality.
- Production-ready and public previews are subject to supplemental terms of use.
- Some capabilities available in the classic experience aren't yet available in the new experience.
- Agents and workflows created in the new experience can't be converted to the classic experience.
Workflows can be added to agents as tools to create larger automation scenarios.
To add a flow as a tool to an agent, the flow must satisfy the following criteria:
- Have the When an agent calls the flow trigger and a Respond to the agent action.
- Be configured to respond in real time, not asynchronously. The Asynchronous response toggle must be set to Off under Networking in the Respond to the agent action settings.
- Be published.
- Respond to the agent within the 100-second action limit. Optimize the flow logic, queries, and the amount of data returned so that a typical run is below this 100-second limit.
If you don't already have a workflow configured for use with an agent, create one in the workflow designer. For more information, see Edit and manage your workflow in the designer.
Add a workflow to an agent as an agent-level tool
When you add a workflow at the agent level, the agent orchestrator can trigger it directly at runtime.
In Copilot Studio, select Agents, and then select the agent that you want to add the workflow to.
Go to Tools and select Add a tool. The Add tool panel appears.
To list the workflows that are available as tools, select Workflows. The available workflows are listed. The list includes published workflows that have the When an agent calls the flow trigger and a Respond to the agent action.
If the workflow you want to add isn't listed, make sure the workflow is published and that it has the When an agent calls the flow trigger and a Respond to the agent action.
Select the workflow you want to add. The workflow is added as a tool to the agent, and a tab for the workflow appears in the agent's list of tools.
Configure the workflow as an agent tool
Once you add the workflow to the agent, select the workflow tab in the agent's list of tools. The Workflow details panel appears.
On the Details tab, you can view the workflow's name and description. Write a clear description of the workflow's purpose and functionality to help the agent understand when to use it. You can also view information about any input parameters that the workflow requires and output parameters the workflow produces.
Select Save as needed to save configuration changes.