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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / How to call different ...
Copilot Studio
Unanswered

How to call different bots on different web pages

(0) ShareShare
ReportReport
Posted on by 6

Hi,

 

In Power Pages I have multiple pages like Home Page, Customer Page etc

Is it possible to have different PVA bots embedded in each page?

 

I know it was possible earlier in PowerApps Portals. 

Anyone knows how to add page specific bots?

Categories:
I have the same question (0)
  • adilei Profile Picture
    Microsoft Employee on at

    It is possible with some minimal JavaScript. Just click on "edit code" in the Power Pages designer and add a copilot widget.

     

    Here is a sample floating widget to get you started:

     

    https://gist.github.com/adilei/964ec8ade6051648144d8d5ee456e58d

  • AkshayJJ Profile Picture
    6 on at

    Hi adilei,
    Thanks for the prompt response.

     

    I did try the solution that you suggested but, i'm unable connect to my PVA bot and getting the below error.

    AkshayJJ_0-1712390486941.png

    Instead of using the mobile app API code
    is it possible to directly use the custom website frame code?

  • adilei Profile Picture
    Microsoft Employee on at

    It is possible to use the iframe "embed code" but you would still need to create the floating widget yourself. 

     

    Can you see any client side errors in dev tools?

  • AkshayJJ Profile Picture
    6 on at

    Hi,

     

    How can we embed the iframe code in the floating widget?

    Is it possible to make the bot aware of the user who is logged in to the portal?

     

    Like when we launch the bot, it should greet the user based on the username

    example Hi username. I have created a global variable context for storing the username.

    is it also possible to embed the iframe code in the omnichannel chat widget too?

  • adilei Profile Picture
    Microsoft Employee on at

    Not sure I'm following, are you wanting to set up Omnichannel or a standalone copilot/bot?

  • AkshayJJ Profile Picture
    6 on at

    I'm trying both the options, wanted to check the best possible.

  • adilei Profile Picture
    Microsoft Employee on at

    But the best option in this context has to be determined by whether you need Omnichannel capabilities or not (e.g. escalate to a live agent). If you don't, don't use Omnichannel.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 633

#2
Vish WR Profile Picture

Vish WR 301

#3
Haque Profile Picture

Haque 216

Last 30 days Overall leaderboard