
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 offer 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.
If you are adding a Buddy to a Pega application, the KnowledgeBuddyGadget component provides you with a Buddy widget that has a Knowledge Buddy integration. If you are using Pega Knowledge, the PegaKnowledgeGadget component provides a Knowledge Widget that has a Knowledge Buddy integration.
Note: The steps described in the following sections assume you have successfully completed the installation and set up process that is required for Pega Knowledge Buddy. For more information about this process, click the following link Pega GenAI Knowledge Buddy implementation steps.
Adding the Buddy 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 KnowledgeBuddyGadget
- In the Version field, add the appropriate version.
- Click Save.
Updating the Dynamic System Settings
Ensure that two Dynamic system settings (DSS), ConstellationPegaStaticURL and KnowledgeBuddySvcURL, are properly configured before you can use the Buddy widget. Navigate to Dynamic System Settings in Dev Studio to make this verification:
- In the navigation pane of Dev Studio, click Records.
- Expand SysAdmin, then click Dynamic System Settings.
- Search for and then open ConstellationPegaStaticURL.
- In the Value field, enter https://cs-cdn.constellation.pega.io/prod, then click Save.
Note: You can use the filter function in the Setting purpose column to find the dynamic system setting.
- Search for and then open KnowledgeBuddySvcURL.
- Update the Value field to the end point URL, such as https://{Sample URL}/prweb, then click Save.
Updating the Authentication profile
For a Buddy to be able 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 navigation pane of Dev Studio, click Records > Security > Authentication profile.
- Click KnowledgeBuddy_OAuth_EndUser.
- Ensure that the Client Identifier, Client Secret, and Endpoint Configuration are updated with the keys you generated on step 3.
- Click Save.
Note: For more information, see Setting up OAuth authentication.
This Topic is available in the following Module:
If you are having problems with your training, please review the Pega Academy Support FAQs.
Want to help us improve this content?