# Gen AI case creation steps

**URL:** <https://forums.pega.com/t/gen-ai-case-creation-steps/5090>\
**Category:** General\
**Tags:** pega-infinity, generative-ai\
**Created:** [September 27, 2023, 4:42pm UTC](https://forums.pega.com/t/gen-ai-case-creation-steps/5090 "2023-09-27T16:42:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![PraveenK16718305](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@PraveenK16718305](https://forums.pega.com/u/PraveenK16718305)\
**Post date:** [September 27, 2023, 4:42pm UTC](https://forums.pega.com/t/gen-ai-case-creation-steps/5090/1 "2023-09-27T16:42:49Z")

</div>

I’m trying to explore Gen AI capabilities for case types but im not seeing option for Build with Pega GenAI

Please provide detailed steps to create case type using Pega GenAI

---

<div class="post-metadata">

**Author:** ![MarijeSchillern](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/marijeschillern/32/23321_2.png) [@MarijeSchillern](https://forums.pega.com/u/MarijeSchillern)\
**Post date:** [September 28, 2023, 8:55am UTC](https://forums.pega.com/t/gen-ai-case-creation-steps/5090/2 "2023-09-28T08:55:36Z")

</div>

@PraveenK16718305 See the demo here: [Enterprise Generative AI Interactive Demo | Pega GenAI](https://www.pega.com/technology/generative-ai/demo)

Refer to [What’s new in generative AI](https://docs.pega.com/bundle/platform/page/platform/release-notes/gen-ai.html)

Can you confirm whether you are running on **Cloud**? **You need to make sure you are enabled on Pega Cloud.**

[Enabling Pega GenAI in Pega Cloud](https://docs.pega.com/bundle/pega-cloud/page/pega-cloud/pc/learning-about/genai-in-pega-cloud.html)

[Connecting to the generative AI provider in Pega Cloud](https://docs.pega.com/bundle/platform/page/platform/gen-ai/connecting-to-gen-ai-1.html)

You need to turn the functionally on/off using Admin Studio. See [Connecting to the generative AI provider in Pega Cloud](https://docs.pega.com/bundle/platform/page/platform/gen-ai/connecting-to-gen-ai-1.html) for details. You will have the ability to turn it on/off only **after** you are enabled on Pega Cloud.

See another user who solved their issue with [Unable to see AI suggestions in Community Edition](https://support.pega.com/question/gen-ai).

If you need further help, please raise a ticket with GCS via the MSP. They will assist you to update to Infinity 23 by opening a Cloud Change Ticket.

---

<div class="post-metadata">

**Author:** ![Mohd\_Qizer\_Uddin](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/mohd_qizer_uddin/32/8753_2.png) [@Mohd\_Qizer\_Uddin](https://forums.pega.com/u/Mohd_Qizer_Uddin)\
**Post date:** [September 28, 2023, 9:56am UTC](https://forums.pega.com/t/gen-ai-case-creation-steps/5090/3 "2023-09-28T09:56:11Z")

</div>

Hi @PraveenK16718305,

We have to follow the few pre-requests for create case type using Pega GenAI

1. Add build on application **GenerativeAIProviders version 01.01**

 ![Gen AI.jpg](https://pega1.discourse-cdn.com/pega/original/2X/8/8eaefc5c9fb9c4cc99ca40f65c6d64568138dbd4.jpeg)

1. Enable ootb toggle button Confi-\>System-\>Release-\>Toggles "

**pzToggle\_EnableGenerativeAI"**

 ![Gen AI.jpg](https://pega1.discourse-cdn.com/pega/original/2X/5/5c77a3f616c624a89122209d0556d309a0699c5c.jpeg)

1. Do some changes in app studio Setting-\> configuration and we have app valid AI key

 ![Gen AI.jpg](https://pega1.discourse-cdn.com/pega/original/2X/3/34bed04e2bc15f3c37a8252801d250cd22724521.jpeg)

---

<div class="post-metadata">

**Author:** ![padak](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@padak](https://forums.pega.com/u/padak)\
**Post date:** [October 9, 2023, 11:45am UTC](https://forums.pega.com/t/gen-ai-case-creation-steps/5090/4 "2023-10-09T11:45:29Z")

</div>

@Mohd Qizer Uddin Hi, I have done the above mentioned steps but still getting the error in pega community trail systems. Getting json parsing exceptions in the tracer. It used to work but it suddenly stopped showing the AI suggestions.

 ![Picture showing no AI suggestions.png](https://pega1.discourse-cdn.com/pega/original/2X/6/68b222847a7de9f2c316a0ced5de911dd899594d.png)

---

<div class="post-metadata">

**Author:** ![Mallikarjuna\_M](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/mallikarjuna_m/32/12773_2.png) [@Mallikarjuna\_M](https://forums.pega.com/u/Mallikarjuna_M)\
**Post date:** [October 10, 2023, 11:18am UTC](https://forums.pega.com/t/gen-ai-case-creation-steps/5090/5 "2023-10-10T11:18:52Z")

</div>

Hi @padak,

Please go through this link [Connecting to the generative AI provider in Pega Cloud](https://docs.pega.com/bundle/platform/page/platform/data-integration/connecting-to-gen-ai.html), make sure all configurations are as per the document

---

<div class="post-metadata">

**Author:** ![Sudar\_D](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/sudar_d/32/13762_2.png) [@Sudar\_D](https://forums.pega.com/u/Sudar_D)\
**Post date:** [October 12, 2023, 9:09am UTC](https://forums.pega.com/t/gen-ai-case-creation-steps/5090/6 "2023-10-12T09:09:20Z")

</div>

@PraveenK16718305

After creating application, go to application definition under the build on application add “ **Generative AI Providers** ” and it’s version.

 ![App definition.png](https://pega1.discourse-cdn.com/pega/original/2X/0/03a457988519abf421a7782bcc377c0102b6f4d4.png)

Then go to Configure → **System—\>Release—\>Toggles**

 ![Configuration.png](https://pega1.discourse-cdn.com/pega/original/2X/2/2dd34a771e035cea773e5252d9aa0eb15215a409.png)

In the Toggles Management search for **“pzToggle\_EnableGenerativeAI”** then edit this toggle and enable it.

 ![toggle.png](https://pega1.discourse-cdn.com/pega/original/2X/7/75bec5f580783ac7115ecb7dbd9ccf9530e356d4.png)

Then refresh the toggle mangement ,then you can see **“ pzToggle\_EnableGenerativeAI”** enabled for your id.

![id.png](https://pega1.discourse-cdn.com/pega/original/2X/5/5fae9bdbab6ddc1aca3cd39e2406fad8623753e4.png)

**IN APP STUDIO :**

Then go to **App studio**.

Click **setting** and click **configuration**.

 ![App studio.png](https://pega1.discourse-cdn.com/pega/original/2X/d/d0809196364a45336d323c9721edb705d6b1d79d.png)

**In configuration ‘Configuration set: Generative AI’**

For configuration name **‘Default Generative AI provider “** Value(default) should be **”gpt-35-turbo”**

For configuration name **“Pega Azure Chat Deployment ID”** Value(default) should be **“Pega Azure Chat”**

Sometimes above mentioned configuration will be inverse. Click setting icon then edit and change it.

 ![App studio.png](https://pega1.discourse-cdn.com/pega/original/1X/a171ec532ad6d0a7792dbef23190f166aef76d4d.png)

For configuration name “ **Open AI API Key** ” in the Value(default) Add your API Key.

Now we are in final step we want “Open AI API Key”

For Open AI API Key go to “**[https://platform.openai.com](https://platform.openai.com)**"

If you have account login otherwise sign up .Then click **View API Keys**.

 ![API Key.png](https://pega1.discourse-cdn.com/pega/original/2X/d/d20581d10e04e3a09ce22d233ad039947a7e8d38.png)

Then click Create new secret key.

When you creating the API Key Copy the API Key .

\*\*NOTE :\*\*You can see the API Key one time only during creating key ,that time copy and save the key.

 ![API Key.png](https://pega1.discourse-cdn.com/pega/original/2X/1/109a0dcd27eaeb2f82bf35e8177d0b9b003eb01d.png)

Now go to **App Studio**.Click the setting icon of “ **Open AI API Key** ”

For configuration name “ **Open AI API Key** ” in the Value(default) \< **Paste your API Key.** \>

 ![API Key.png](https://pega1.discourse-cdn.com/pega/original/2X/c/c16e05940294203c9b0dd9fca3d2729ee9c23dc9.png)

Final view of configuration.

 ![Final key.png](https://pega1.discourse-cdn.com/pega/original/1X/6d2034bcbfbb56d46b0dacd5042bdb7bfb2f889b.png)

Everything is done now. Go to case type create new case type.

 ![case.png](https://pega1.discourse-cdn.com/pega/original/2X/e/edf02e3c6eadb2f9fcf75366c73e5da9de2c12b4.png)

---

<div class="post-metadata">

**Author:** ![DennisGrady](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/dennisgrady/32/16317_2.png) [@DennisGrady](https://forums.pega.com/u/DennisGrady)\
**Post date:** [December 18, 2023, 5:46pm UTC](https://forums.pega.com/t/gen-ai-case-creation-steps/5090/7 "2023-12-18T17:46:58Z")

</div>

@Sudar D While the GenerativeAIProviders application lets you experiment with Generative AI using your own API keys to connect to third-party Generative AI providers, the only officially supported way of leveraging Pega GenAI is following the instructions provided in the first reply from @MarijeSchillern

We may remove this application at any point in a future release.

---

<div class="post-metadata">

**Author:** ![Shubham\_Kamble](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/shubham_kamble/32/2360_2.png) [@Shubham\_Kamble](https://forums.pega.com/u/Shubham_Kamble)\
**Post date:** [March 21, 2024, 12:07pm UTC](https://forums.pega.com/t/gen-ai-case-creation-steps/5090/8 "2024-03-21T12:07:40Z")

</div>

@Sudar D I followed all the steps suggested by you but I am still getting “AI suggestions are unavailable at the moment” message and unable to use it.

---

<div class="post-metadata">

**Author:** ![Mohd\_Qizer\_Uddin](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/mohd_qizer_uddin/32/8753_2.png) [@Mohd\_Qizer\_Uddin](https://forums.pega.com/u/Mohd_Qizer_Uddin)\
**Post date:** [October 10, 2023, 5:44am UTC](https://forums.pega.com/t/gen-ai-case-creation-steps/5090/9 "2023-10-10T05:44:00Z")

</div>

Hi @padak,

Please check whether the AI key you have configured may be invalid or expired. Configure valid AI key in app studio.

Thanks

Mohd Qizer Uddin
