Our IT team got tired of answering “what’s the status of my ticket?” in Teams. They asked for the SPGuides help desk agent to look up a service request by its number and reply with the status, priority and owner.
The agent can’t read our SharePoint list on its own, so a Power Automate flow does the lookup and hands the result back. The agent decides when to call it, fills in the request number, and writes the answer.
In this tutorial, we’ll add a Power Automate flow to Copilot Studio as a tool, connect an existing cloud flow, and call a flow from a topic. Everything below comes from a real build I finished today.
Here’s what we’re building. One question, one turn, and the answer comes straight from the list:

- An agent flow with one Number input, a SharePoint Get item action and one Text output.
- A tool on the agent that points to that flow, with a description the orchestrator can match.
- A tuned input so the agent reads the number from the user’s message instead of asking for it.
Before You Start
You need a Copilot Studio license that includes flows, plus edit rights on the agent and read access to the list. I used a standard agent, SPGuides IT Help Desk – SharePoint, with generative orchestration on. If you don’t have one yet, create a new agent in Copilot Studio first.
The data is our Service Requests list on the SPGuides site, about 620 demo items. These are the columns the flow reads:
| Column | Type | Notes |
|---|---|---|
| ID | Number (built in) | The request number users type, like 42 |
| Title | Single line of text | Short summary, for example Laptop replacement #1060 |
| Status | Choice | New, In Progress, Closed |
| Priority | Choice | Low, Normal, High |
| Requester | Single line of text | The requester’s name |
Three rows we’ll test against: request 42 (Closed, High), request 57 (New, Low) and request 63 (New, Low).
Step 1: Open the Tools Page and Pick Agent Flow
We’ll create the flow from inside the agent, so it gets the right trigger automatically. (If you’d rather build it with a prompt, see how to create an agent flow with natural language.)
- Open the agent and select Tools. Ours was empty and showed Create your first tool.
- Select Add a tool.
- Under Create new, select Agent flow.
The Add tool dialog also lists Prompt, Model Context Protocol, Computer use and filter chips like Connector and Flow:

Step 2: Check the Starter Template
The agent flows designer opens with two cards already in place: When an agent calls the flow and Respond to the agent. Those two are what make a flow usable by an agent, so don’t delete them.

Checkpoint: you see the Overview, Designer, Activity and Analytics tabs and a Publish button in the toolbar.
Step 3: Add the Request Number Input
The trigger defines what the agent must pass in. We need one number.
- Select the trigger card, then + Add an input.
- In Choose the type of user input, select Number (the other options are Text, Yes/No, File, Email and Date).

- Name it RequestID.
- Set the description to The ID number of the service request to look up.
I left the Express mode (Preview) toggle off. Watch out: typing “/” anywhere opens the insert menu, and a stray one landed in my description.

Step 4: Get the SharePoint List Item
Now the flow needs to fetch the row. Select + between the two cards and search for SharePoint get item.
- Pick Get item from the SharePoint group. My existing SharePoint connection was picked up with no sign-in prompt.
- Site Address: SPGuides (the /sites/SPGuides site).
- List Name: Service Requests.
- Id: type “/”, choose Insert dynamic content, then RequestID under When an agent calls the flow.

Step 5: Send the Answer Back With Respond to the Agent
The agent only sees what this action returns, so we’ll pack the useful columns into one text output.
- On Respond to the agent, select + Add an output and choose Text.
- Name it RequestSummary with the description Title, status, priority and requester of the service request.
- Build the value with “/” > Insert dynamic content tokens from Get item, typing the separators between them.
The value reads like this, where each bracket is a dynamic content token:
[Title] | Status: [Status Value] | Priority: [Priority Value] | Requester: [Requester]

Note: I first tried a concat() expression in Insert expression and got “This expression has a problem.” The tokens worked right away, so use them.
Step 6: Publish the Flow and Give It a Name
Select Publish. A tool can only use a published flow. The banner confirms it and adds that flow runs consume capacity based on the number of actions, while test runs don’t.

My flow was still called Untitled. On Overview, select Edit next to Details, set Flow name to Get Service Request Status, add a description, and select Save.

Checkpoint: Overview shows Status On, Plan Copilot Studio and a SharePoint connection reference.
Step 7: Add the Flow to the Agent as a Tool
Here’s the part that surprised me. I chose Stay in Flow, and back on the Tools page the flow wasn’t added yet. Publishing doesn’t attach it; you add it yourself.
- On the agent’s Tools page, select Add a tool.
- Select the Flow chip. It lists only flows that can be tools.
- Select Get Service Request Status, then Add and configure.

Step 8: Describe the Tool and Its Input
With generative orchestration, the description is how the agent decides to call the tool. Copilot Studio filled it with just the flow name, which tells the orchestrator almost nothing. I replaced it with this:
Use this tool when an employee asks about the status of an IT service request and gives a request number. It returns the request title, status, priority and requester from the SPGuides Service Requests list.

Under Inputs, RequestID is set to Dynamically fill with AI. Completion stays on Don’t respond (default), so the agent writes the reply itself. Select Save.

The Tools page now lists the flow with Type Flow, Trigger By agent and Enabled On:

Checkpoint: you see “The tool was saved.” and one row on the Tools page.
Test the Agent Flow
In Test your agent, I asked, “What’s the status of service request 42?” The activity map showed the agent picking the tool, but it still asked for the RequestID:

After I typed 42, the flow returned the request title, Status: Closed, Priority: High and the requester’s name. The first run after publishing took 22.79 seconds:

A new session with “Can you check request ID 57 for me?” asked again, so the input needed work. In the tool, under Inputs, select Customize on RequestID:
- Display name: Request number.
- Description: The service request number the user mentions, for example 42 in ‘what’s the status of request 42’.
- Identify as: Number (already set). Select Save.

Then I asked about request 63 in a fresh session. The agent read the number from the message and answered in one turn: request 63 is New, Laptop replacement #1060, Low priority. The tool finished in 0.54 seconds, as the screenshot at the top shows.
Add an Existing Power Automate Cloud Flow
Already have a cloud flow with an Instant, Automated or Scheduled trigger? It won’t show under the Flow chip until it uses the agent trigger and response. (This is different from a flow that adds Copilot Studio knowledge files, which never talks to the agent.)
- In Power Automate, pick the agent’s environment, open My flows, select the flow and select Edit.
- On the old trigger, select … > Delete.
- Under Add a trigger, search Copilot and select When an agent calls the flow. Re-add the inputs.
- At the end, add the Copilot connector’s Respond to the agent. In several branches, every copy needs the same outputs.
- Open its Settings and set Asynchronous response to Off.
- Save and publish, then add it from Tools > Add a tool > Flow.
The flow must also sit in a solution in the agent’s environment. The Default Solution works, or use Solutions > Add existing > Automation > Cloud flow. Our guide to create a solution in Copilot Studio covers the rest.
Call the Flow From a Topic Instead
An agent-level tool lets the orchestrator decide when to run it. For a fixed path, like a form that always looks up the request after a question, add it inside a custom topic in Copilot Studio.
- Open Topics and select the topic.
- Select the Add node (+) icon below a node, then Add a tool.
- Select the flow. A new Action node appears; map its input to a topic variable and use its output later.
A flow added this way works only in that topic. The same Action node pattern lets you create a SharePoint list item using Copilot Studio.
Make It Production-Ready
- Stay under 100 seconds. Put slow actions after Respond to the agent; they can keep running for up to 30 days.
- Return less data. One text summary beats a whole item; the agent reads faster and you stay under the limit.
- Write tool and input descriptions for the orchestrator, with an example of what the user says.
- Check credentials. In authenticated agents, flows can run with the user’s credentials, so test with a non-admin account.
- Watch capacity. Published runs consume capacity per action. Use the Power Automate tutorials to slim the flow.
Troubleshooting
- The agent asks for the number you already gave. Rewrite the input’s display name and description with an example, as in the test above.
- “This expression has a problem.” Build the output with dynamic content tokens instead of a typed expression.
- Your cloud flow isn’t in the Flow list. It’s missing the agent trigger or Respond to the agent, isn’t published, or isn’t in a solution in the same environment.
- “Error code: 3000.” Asynchronous response is on. Turn it off in the Respond to the agent settings.
- The tool never fires. The description is still just the flow name. Say when to use it and what it returns.
Important: Start a new test session after each tool change, or the old conversation keeps the old behavior.
Where to Take It Next
Want more control over the flow logic? See how to create an agent flow using the designer with conditions and loops. To see tools inside a full agent, we built a smart HR assistant bot the same way.
Our Copilot Studio tutorials page has the full list. For a guided path, the Copilot Studio training course covers tools, topics and flows end to end.
A few more Copilot Studio guides I’d read next:
Frequently Asked Questions
How do I add a Power Automate flow to Copilot Studio?
Open the agent, go to Tools, select Add a tool, then Flow to pick a published agent flow, or Agent flow under Create new to build one. Select Add and configure, write a clear description, set the inputs and select Save.
Why doesn’t my Power Automate cloud flow show up in Copilot Studio?
Only flows with the When an agent calls the flow trigger and the Respond to the agent action appear. It must also be published and stored in a solution in the same environment. Microsoft explains the steps in Modify an existing flow to use with an agent.
What is the time limit for a flow called by a Copilot Studio agent?
The flow has to respond within the 100-second action limit. Actions placed after Respond to the agent can keep running up to the 30-day flow run limit, so move slow steps there.
What does the Asynchronous response setting do?
It must be Off for agent flows. With it on, the agent may fail with “Something unexpected happened” and error code 3000. Flows created from Copilot Studio have it off by default; check it on older flows you modify.
Do agent flows need a separate Power Automate license?
Agent flows run on Copilot Studio, and the license must include flows in Copilot Studio. Published runs consume capacity based on the actions used; test runs don’t. See Add an agent flow as a tool to an agent for the requirements.

Hey! I’m Bijay Kumar, founder of SPGuides.com and a Microsoft Business Applications MVP (Power Automate, Power Apps). I launched this site in 2020 because I truly enjoy working with SharePoint, Power Platform, and SharePoint Framework (SPFx), and wanted to share that passion through step-by-step tutorials, guides, and training videos. My mission is to help you learn these technologies so you can utilize SharePoint, enhance productivity, and potentially build business solutions along the way.