Skip to main content

Notifications

Community site session details

Community site session details

Session Id : s18qAKWlItyWT2Dzn3/rRA
Power Apps - Power Apps Experimental Features
Answered

Unable to integrate Copilot bot into powerapps(canvas app)

Like (1) ShareShare
ReportReport
Posted on 26 Nov 2024 06:26:17 by 12
Hi ,
 
I have created a bot using copilot studio and it is working as expected.
But could find any option to integrate bot with powerapps.
 
Then I create a bot through powerapps, but getting below error while testing.
 
Error Message: The expression on the 'PublicSiteSearchDataSource' node at 'cr4da_bot38100.topic.ConversationalBoosting/main/main/conditionGroup_TM3TIy/conditionGroup_TM3TIyElseActions/search-content' failed to return output of type 'RuntimeType'. Error Code: ContentValidationError Conversation Id: 4cb804ca-7ce1-44e0-b5d9-dbb9c44682ed Time (UTC): 2024-11-26T05:51:54.995Z
 
Appreciate any help here
 
  • Verified answer
    ShaneMeisnerTH Profile Picture
    175 on 04 Dec 2024 at 12:30:08
    Unable to integrate Copilot bot into powerapps(canvas app)
    We opened a ticket with Microsoft about issues using the Copilot Component.
     
    After a month of meetings and discussions we were told "It is in preview and is not to be used in production. It won't be fully operational until May 2025"

    There was a Insert - ChatBot option previously which worked great.
    Unfortunately, Microsoft has removed that from the Insert menu.
     
    We luckily had captured the code for the Chatbot Component and Microsoft has told us that is the only work around for now.
    Here is how to use it.

    Make sure your Power App and your Copilot Agent are in the same Power Platform Environment.
     
    Here is the code that you will use( make sure to copy it all):

    - Chatbot:
        Control: Chatbot
        Properties:
          EnvironmentId: ="ADD YOUR ENVIRONMENT ID"
          SchemaName: ="Add your Copilot's Schema name"
          Height: =602
          Width: =555
          X: =372
          Y: =65

    In your Power App, click on the screen, then the ellipses - Paste - Paste Code:

    Which will add the Chatbot to your App.
     
    Next, add your Power Platform Environment ID


    Then, on the righthand side, click the "Schema Name" Link:


    Select your Agent from the List:

    And now your agent is in your Power App and you can customize the look as you'd like:
  • CU26110618-0 Profile Picture
    12 on 04 Dec 2024 at 07:46:09
    Unable to integrate Copilot bot into powerapps(canvas app)
    @KeithAtherton , thanks for your response.
     
    I am not getting any error but the chat response is not correct. Is there any other configuration we needd to do except the data source?
  • KeithAtherton Profile Picture
    3,641 Most Valuable Professional on 03 Dec 2024 at 15:20:04
    Unable to integrate Copilot bot into powerapps(canvas app)
    Hey. Thanks for the follow-up. Do you have details on the error you're experiencing?
  • CU26110618-0 Profile Picture
    12 on 26 Nov 2024 at 17:23:07
    Unable to integrate Copilot bot into powerapps(canvas app)
    @KeithAtherton , Thanks a lot for your response.
     
    Already integrated a Copilot bot into a canvas app, go to the app's Settings > Copilot. Able to see the copilot on the browser and its working fine as expected.
     
    But my question was how to customize the copilot control with custom copilot bot created in copilot studio. I was getting the error when edit the copilot by clicking on the "Edit" from properties(please refer the below screen shot)
     
     
     
  • KeithAtherton Profile Picture
    3,641 Most Valuable Professional on 26 Nov 2024 at 16:57:10
    Unable to integrate Copilot bot into powerapps(canvas app)
    Hey. To integrate a Copilot bot into a canvas app, go to the app's Settings > Copilot, see below.
     
    Please note that this feature is still in preview.
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,513 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,631 Most Valuable Professional

Leaderboard

Featured topics