Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Suggested answer

Cannot find Agent in the Execute Copilot action in my cloud flow

(2) ShareShare
ReportReport
Posted on by 8
Hi,
I have created an agent in Copilot, but I am not able to select the agent from the dropdown list of options from the Execute Copilot action in Power Automate cloud flow.

I work in Power Automate across four different accounts and it's like this for all of them. Does this action just not work? If that's the case, what are my alternatives? I want to pass a query to Copilot using Power Automate so I can take further actions on the response.
Thank you!
  • CU05021423-0 Profile Picture
    8 on at
    Cannot find Agent in the Execute Copilot action in my cloud flow
    Hey man, seriously you're just going to copy and paste from ChatGPT? At least TRY and clean it up before you post it. You didn't even consider that I used AI to find my answer first before coming here? Community is the LAST place I go to find help after exausting all other avenues. Now I won't even bother coming here anymore if all that I'm going to receive is replies from people just pasting AI, and clearly doing so just to get on the leaderboard. Unbelievable.
     
    Thank you to the two people who replied asking if my copilot was in the same environment. Yes, it is, but still it doesn't appear in the Copilot field menu. Nor does it appear when I use List Rows. In fact, the same is true across all four environments I work in.

    I would love to hear from someone who has used this action successfully in their flow. 
  • Suggested answer
    Riyaz_riz11 Profile Picture
    3,552 Super User 2025 Season 2 on at
    Cannot find Agent in the Execute Copilot action in my cloud flow
    Hi,
     

    Alternative 1: HTTP Request to Copilot Studio Agent (Recommended)

    This is the most reliable method currently available:

    Step 1: Get Your Agent's Direct URL


    • Go to your Copilot Studio agent

    • Click on "Channels" → "Demo website"

    • Copy the agent URL


    •  
     

    Step 2: Use HTTP Action in Power Automate

    json
    Method: POST
    URI: [Your Copilot Agent URL]/api/botFramework
    Headers:
    - Content-Type: application/json
    - Authorization: Bearer [Your Token]
    
    Body:
    {
        "type": "message",
        "text": "Your query here",
        "from": {
            "id": "PowerAutomate"
        }
    }
     

    Alternative 2: Power Virtual Agent Connector

    If your agent was originally a Power Virtual Agent:


    1. Use the "Power Virtual Agents" connector

    2. Action: "Trigger a chatbot"

    3. This method is more stable than Execute Copilot

    4.  

    Alternative 3: Custom Connector Approach

    Step 1: Create Custom Connector


    • Export your Copilot Studio agent's API definition

    • Import as custom connector in Power Automate

    • Configure authentication

    •  

    Step 2: Use Custom Connector


    • More reliable than built-in Execute Copilot action

    • Full control over request/response handling

    •  

    Alternative 4: Microsoft Graph API Integration

    For enterprise scenarios:

     
    json
    POST https://graph.microsoft.com/beta/me/chats/{chat-id}/messages
    {
        "@odata.type": "#microsoft.graph.chatMessage",
        "body": {
            "content": "Your query to Copilot"
        }
    }

    Immediate Workaround Solutions

    Solution 1: Environment Variables


    1. Create environment variables for your agent details

    2. Use these in HTTP requests instead of relying on dropdown

    3. More portable across different environments

    4.  

    Solution 2: Flow Template Approach


    1. Create a "parent flow" that handles Copilot communication

    2. Call this flow from your main automation flows

    3. Centralized management of Copilot integration
     
    If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
    Regards,
    Riyaz
     
  • stampcoin Profile Picture
    3,237 Super User 2025 Season 2 on at
    Cannot find Agent in the Execute Copilot action in my cloud flow
    Just want to double confirm that the flow with the agent are in the same environment .
    Can you list the records via Dataverse connector , action =  List Rows ? 
    If you can, check the output if you have the values.
     
  • yashag2255 Profile Picture
    24,601 Super User 2024 Season 1 on at
    Cannot find Agent in the Execute Copilot action in my cloud flow
     
    Can you verify that the environment where the copilot agent is created is the same environment where you are trying to create the flow? 
     
    The action will list only the copilot agents present in that specific environment where you are creating the flow. 
     
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2