web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Cannot find Agent in t...
Power Automate
Answered

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

(2) ShareShare
ReportReport
Posted on by 28
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!
Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at
     
    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!
     
  • stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    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.
     
  • Suggested answer
    Riyaz_riz11 Profile Picture
    3,878 Super User 2025 Season 2 on at
    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
     
  • CU05021423-0 Profile Picture
    28 on at
    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. 
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at
     
    I created a test bot and tried calling it in Power Automate. Below are my observations: 
    1. The flow runs successfully but it does not return a response (it just returns the conversation ID that you can track in the copilot studio). So if the intended use is to get the response and perform further actions in the flow, this may not work. 
     
    2. The triggers appear in copilot studio activity and you can see that the automated ones are identified. 
     
     
    You can check out this thread where it is mentioned that this particular action is supposed to be used in context of a chat session with the copilot agent: 
     
    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!
  • CU05021423-0 Profile Picture
    28 on at
    This answers my question perfectly. Thank you! Super helpful and informative. I really want to get the response to pass to other actions in my flow, but it seems that this is not the solution, which is really disappointing. Thanks again for being actually helpful and knowing your stuff!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard