Integrating ChatGPT with UiPath

Integrating ChatGPT with UiPath

Hi friends, welcome to my channel. Today, we are going to see how we can integrate ChatGPT with UiPath. So, without wasting any time, let’s get started.

In this tutorial, we will be using an input dialog box to enter the question we want to ask to ChatGPT. The question will be stored in a variable called ‘Str question’. To generate the chat completion, we will use the ‘Generate Chat Completion’ activity. Please note that this activity is not available by default in the activity panel. You will need to install the ‘Open AI’ package from the Manage Packages section.

Once you have installed the package, drag and drop the ‘Generate Chat Completion’ activity into your workflow. In the properties panel, select the ‘Open AI’ workspace. Now, let’s go to the Orchestrator to configure the integration services.

In the Orchestrator, click on Integration Services. Here, you will find the folder that we are using in our project. Make sure it is connected to the Open AI connector. To connect the Open AI connector, you will need to provide the API key. You can obtain the API key from the Open AI website. Go to the Open AI website, navigate to the Developers API reference, and create a new secret key. Copy the key and paste it in the Open AI connector settings in UiPath.

Once the connection is successful, go back to UiPath and configure the ‘Generate Chat Completion’ activity. The input for this activity is the prompt, which is the question we want to ask. The output is the generated text, which will be stored in the ‘Str output’ variable. You can display the output in the logs using the ‘Log Message’ activity and show it in a message box.

Now, let’s run the code. Enter the question in the input dialog box and click OK. You will receive a response from ChatGPT in the message box and logs. ChatGPT is an advanced language model developed by Open AI, designed to generate human-like text responses.

In conclusion, we have successfully integrated ChatGPT with UiPath. If you want to explore another method of integrating UiPath with ChatGPT, stay tuned for the next video. Don’t forget to subscribe to my channel and hit the bell icon to receive notifications. Thank you for watching!

Creating a Beautiful Pattern with SwiftUI
Older post

Creating a Beautiful Pattern with SwiftUI

Newer post

Exciting News: Custom Instructions Now Available for ChatGPT

Exciting News: Custom Instructions Now Available for ChatGPT