Integrating a Buddy into a Pega application
You can enable a Pega GenAI Knowledge Buddy™ in any Pega application by adding the KnowledgeBuddyGadget application component. This component offers out-of-the-box integration infrastructures, configuration, and UI widgets for quick integration of a Pega Knowledge Buddy in your application. Ensure you follow the steps described in this topic before consulting the other topics in the Knowledge Buddy integration module that explain the specifics of integrating a Buddy in a UI Kit or Constellation application.
Pega Customer Servier™, Pega Sales Automation™ and Pega Knowledge™ include built in Knowledge Buddy integration but require additional configuration. If you are using Pega Knowledge, the PegaKnowledgeGadget component provides a Knowledge Widget that has a Knowledge Buddy integration. Please note that while in release '25 of these applications you can add the PegaKnowledgeBuddy Widget to your application, this widget will be deprecated in future releases.
Adding the Knowledge component to your application
- In the header of Dev Studio, click Application > Definition.
- In the Enabled components section, click Add component.
- In the Component field, add PegaKnowledgeGadget
- In the Version field, add the appropriate version.
- Click Save.
Note: With the PegaKnowledgeGadget component added to your application, you can utilize all KnowledgeBuddy features without the need to add the PegaKnowledgeBuddy gadget separately.
Updating the Dynamic System Settings
Ensure that two dynamic system settings (DSS), ConstellationPegaStaticURL and KnowledgeBuddySvcURL, are properly configured before you can use Knowledge Buddy in the Knowledge widget. Navigate to Dynamic System Settings in Dev Studio to make this verification.
- In the navigation pane of Dev Studio, click Records.
- Expand SysAdmin, and then click Dynamic System Settings.
- Search for and then open ConstellationPegaStaticURL.
Note: You can also use the filter function in the Setting purpose column to find the dynamic system setting.
- In the Value field, enter https://release.constellation.pega.io/cs, and then click Save.
- Search for and then open KnowledgeBuddySvcURL,
- Update the Value field to the endpoint URL, such as https://{Sample URL}/prweb, and then click Save.
Updating the Authentication profile
For a Buddy to answer questions, the Authentication profile must use the correct configurations.
- In the Pega Knowledge Buddy application, in the navigation pane of Dev Studio, click Records > Security > OAuth 2.0 Client registration.
- Search for and then open KnowledgeBuddy_OAuth_EndUser.
- Click Regenerate client secret > Regenerate, and then click View and download.
- Click Save.
- In the application where you added the Buddy gadget, in the navigation pane of Dev Studio, click Records > Security > Authentication profile.
- Click KnowledgeBuddy_OAuth_EndUser.
- Ensure that the Client Identifier, Client Secret, and Endpoint Configuration use the keys you generated in step 3.
- Click Save.
Note: For more information, see Setting up OAuth authentication.
This Topic is available in the following Module:
Want to help us improve this content?