Skip to main content

Notifications

Power Platform Community / Forums / Bot Administration / How to call different ...
Bot Administration
Unanswered

How to call different bots on different web pages

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?

  • adilei Profile Picture
    adilei on at
    Re: How to call different bots on different web pages

    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.

  • AkshayJJ Profile Picture
    AkshayJJ 6 on at
    Re: How to call different bots on different web pages

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

  • adilei Profile Picture
    adilei on at
    Re: How to call different bots on different web pages

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

  • AkshayJJ Profile Picture
    AkshayJJ 6 on at
    Re: How to call different bots on different web pages

    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
    adilei on at
    Re: How to call different bots on different web pages

    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
    AkshayJJ 6 on at
    Re: How to call different bots on different web pages

    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
    adilei on at
    Re: How to call different bots on different web pages

    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

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Getting Started…

Welcome to the Power Platform Community! We appreciate your visit…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 138,006

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,059

Leaderboard

Featured topics