Question
Vodafone
Vodafone
IN
Vodafone
Posted: Oct 9, 2024
Last activity: Jan 16, 2025
Last activity: 16 Jan 2025 8:19 EST
Closed
Solved
How to embed web messaging gadget in constellation application
Hello team ,
How do we embed web messaging chat bot created in pega to be displayed in constellation portal . There are articles that talks about how do we ingest javascript file in other web pages . Installing Web Messaging widget (pega.com).. Is there any widget exist in constellation OOTB that we configure as part of portal to show chat bot created in pega ?
***Edited by Moderator Rupashree S. to add Capability tags***
To see attachments, please log in.
Workaround for this problem
@PraveenkumarN9639 , @RameshSangili , @MarissaRogers : There is a work around till pega releases widget for this use case. There is an HTML fragment called pyPortalIcon which will be rendered in all constellation portals. We can add digital messaging script url in this rule such that web messaging widget gets rendered in the portal.
Relevant code snippet:
String portalName = tools.findPage("pxThread").getString("pxPortal");
<% if(portalName.equals("WebPortal") || portalName.equals("EndUserPortal")){
%>
<script id="pega-wm-chat" src="https://widget.use1.chat.pega.digital/*****/widget.js"></script>
<%
}
%>