In this POC I have done the configuration and case type creation using Generative AI
Pre-requisite:
Get your community edition from Pega.
Create an application – in this case we have MyCoApp
To enable Generative AI
- Add Build on application – GenerativeAPIProviders
![](https://mypegapoc.com/wp-content/uploads/2023/11/image.png)
2. Then go to Toggles – Configure – System – Release – Toggles
![](https://mypegapoc.com/wp-content/uploads/2023/11/image-1.png)
Enable this toggle
![](https://mypegapoc.com/wp-content/uploads/2023/11/image-2.png)
![](https://mypegapoc.com/wp-content/uploads/2023/11/image-3.png)
Now go to App studio – Settings – Configuration
Check the following
Default Generative AI provider – PegaAzureChat
Pega Azure Chat DeploymentID – gpt-35-turbo
OpenAI API key – get it from the OpenAI site
![](https://mypegapoc.com/wp-content/uploads/2023/11/image-4.png)
Now go to openAI
Login to OpenAI
![](https://mypegapoc.com/wp-content/uploads/2023/11/image-5.png)
![](https://mypegapoc.com/wp-content/uploads/2023/11/image-6.png)
View API keys
![](https://mypegapoc.com/wp-content/uploads/2023/11/image-7.png)
Click Create new secret key
![](https://mypegapoc.com/wp-content/uploads/2023/11/image-8.png)
Click Create secret key – you will get a key – copy that key
Go to the App Studio – Settings – Configuration again
Click the gear icon of OpenAI API key row and paste the API key you generated
![](https://mypegapoc.com/wp-content/uploads/2023/11/ss-1024x475.jpg)
Now go to Case Type – Add Case Type
![](https://mypegapoc.com/wp-content/uploads/2023/11/image-9.png)
Add Case Type
![](https://mypegapoc.com/wp-content/uploads/2023/11/image-11.png)
I have selected order processing – check the radio button – Use AI to suggest a life cycle and data model
![](https://mypegapoc.com/wp-content/uploads/2023/11/image-12.png)
You will get the stages
![](https://mypegapoc.com/wp-content/uploads/2023/11/image-13.png)
Click Next for the fields
![](https://mypegapoc.com/wp-content/uploads/2023/11/image-14.png)
Click Submit – your case is ready
![](https://mypegapoc.com/wp-content/uploads/2023/11/image-15.png)
Well explained Deb ji..