Learn how to extend your Copilot Studio agents by integrating agent flows that perform real-time actions, fetch external data, and return dynamic responses. With agent flows, your bot can go beyond conversations and execute powerful backend logic seamlessly.
This guide walks you through creating flows, modifying existing ones, calling them from agents and topics, passing data using input/output variables, and returning structured or list-based results. By the end, you'll be able to build intelligent, action-driven agents that interact with APIs, databases, and enterprise systems efficiently.
Agent flows allow your Copilot agent to:
In short, it turns your bot into a smart, action-driven assistant.
Keep flows fast to avoid timeout issues.
Add inputs in trigger:
Use MSN Weather connector β "Get forecast for today" and map dynamic inputs.
Once added, the flow is available as an action node.
The agent calls the flow and responds with real-time data.
Agent flows transform your bot into a powerful assistant capable of real-world actions and integrations.
You can reuse an existing flow by updating it to work with agents.
Agent flows must return data synchronously.
Check this in Respond to the agent β Settings.
Add Copilot trigger and Respond action. These are mandatory for agent integration.
Flows must be inside a solution in the same environment as your agent.
Ensure your flow and agent are in the same environment. Use the environment selector in Power Automate.
Use agent flows to dynamically respond to user requests like weather forecasts.
Ensure you have already created the weather forecast flow before calling it.
Helps the agent decide when to use the tool.
Use an Action node inside a topic to trigger the flow.
Pass collected variables into the flow inputs (City & ZIP code).
Display results using flow output variables.
Use dynamic values in message nodes.
If something fails, the agent shows an error message. Always test after making changes.
Variables allow you to pass data between agent flows and Copilot agents.
Agents can receive up to 1 MB of data per flow response. Thereβs no limit on data sent to flows.
Update flow name to Echo parameter for clarity.
This will echo the user input back to them.
Use variables effectively to build dynamic, reusable, and interactive agent experiences.
Agents can fetch and return multiple results from external systems using flows.
Use Dataverse connector to search accounts and return: account name, city, and account number.
Use Organization entity to extract company names automatically.
Create new agent flow and publish it before editing.
Convert Dataverse response into structured data using Parse JSON action.
Use Apply to each and append formatted data into variable.
Append results using format:
Insert FoundAccounts variable in message node to show list.
Always format and structure list data properly for better readability in agent responses.