Skip to main content


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

Suggest edit Updated on January 22, 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:
    <!-- Getting the Customer ID value -->
    <script src ='http://host:port/prweb?pyActivity=pzIncludeMashupScripts'></script>
    pega.web.api.setAuthenticationParameters("PEGAGADGETTWO", {
    UserIdentifier: 'your NBAMashupSysAdmin operator',
    Password: btoa('your NBAMashupSysAdmin password'
    <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"
    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-redirectguests ='true'
    PegaA_params='{UserIdentifier:"your NBAMashupSysAdmin operator",Password:"your NBAMashupSysAdmin hashed password",pzSkinName:"CSEndUser",CustomerID:"CustomerID of a sample customer",ActionID:"NBA"}' >
    <!-- ********************** End Pega content ********************** -->
  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
Did you find this content helpful? YesNo

Have a question? Get answers now.

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

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us