Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Optional: Embedding Pega Next-Best-Action Advisor with Pega Web Mashup

Updated on November 9, 2021

You can embed Pega Next-Best-Action Advisor in your third-party customer service application as a Pega Web Mashup gadget. This allows you to display next-best-action recommendations in the context of your customer service application.

Before you begin: If you want to implement Pega Next-Best-Action Advisor as a standalone application or as part of your Pega Customer Service application, you can skip this procedure.
  1. Deploy and configure Pega Web Mashup.
    For more information, see Pega Web Mashup.
  2. Create an operator based on the sample NBAMashupSysAdmin operator account.
  3. Save this sample code in the local Tomcat server:
    <html>
    <head>
    <!-- Getting the Customer ID value -->
    <script src ='http://host:port/prweb?pyActivity=pzIncludeMashupScripts'></script>
    <script>
    pega.web.api.setAuthenticationParameters("PEGAGADGETTWO", {
    UserIdentifier: 'your NBAMashupSysAdmin operator',
    Password: btoa('your NBAMashupSysAdmin password'
    });
    </script>
    </head>
    <body style="text-align:center"  >
    <!--Note: The values for UserIdentifier and Password may be assigned dynamically. The values shown here are for a specific user.-->
    <div id="NBAMashup"
    style="overflow:auto;padding-top:20px;"
    data-pega-gadgetname ='PEGAGADGETTWO'
    data-pega-action ='display'
    data-pega-action-param-classname ='CPM-Portal'
    data-pega-action-param-harnessname ='CSAdvisor'
    data-pega-action-param-model =''
    data-pega-action-param-readonly ='true'
    data-pega-applicationname ='NBAMashup'
    data-pega-threadname ='STANDARD'
    data-pega-systemid ='pega'
    data-pega-resizetype ='stretch'
    data-pega-url="http://host:port/prweb"
    data-pega-redirectguests ='true'
    PegaA_params='{UserIdentifier:"your NBAMashupSysAdmin operator",Password:"your NBAMashupSysAdmin hashed password",pzSkinName:"CSEndUser",CustomerID:"CustomerID of a sample customer",ActionID:"NBA"}' >
    </div>
    <!-- ********************** End Pega content ********************** -->
    </body>
    </html>
  4. Update the following values in the sample code to the correct values for your Pega Next-Best-Action Advisor application:
    • host:port
    • your NBAMashupSysAdmin operator
    • your NBAMashupSysAdmin password
    • your NBAMashupSysAdmin hashed password
    • CustomerID of a sample customer
    • Previous topic Optional: Creating generic operator accounts for the Pega Next-Best-Action Advisor sample application

    Have a question? Get answers now.

    Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

    Did you find this content helpful?

    Want to help us improve this content?

    We'd prefer it if you saw us at our best.

    Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

    Close Deprecation Notice
    Contact us