cs-icon.svg

Azure ChatGPT

The Azure ChatGPT connector lets you generate the content via chat responses and prompt responses using the Azure cloud network.

Enterprises and businesses can deploy their ChatGPT versions on the Azure cloud and use the Azure ChatGPT connector to generate responses by integrating their Azure account within the Azure ChatGPT connector.

Set up Azure ChatGPT

Perform the following steps to set up the Azure ChatGPT action connector:

  1. Click Configure Action Step from the left navigation panel.
  2. Click Action Step to configure third-party services.
  3. Within the Configure Action Step, click the Azure ChatGPT connector.
    Select_the_Connector_Azure_ChatGPT.png
  4. You will see two actions under the Choose an Action tab: Chat and Prompt. Let’s look at each of them in detail.

Chat Action

  1. Under Choose an Action tab, select the Chat action.
    Select_Chat_Action.png
  2. Click the + Add New Account button to add your Azure ChatGPT account.
    Add_New_Account.png
  3. In the Authorize modal, enter the Title, Resource Name, API Key, Deployment Name/ID, and API Version retrieved from the Azure platform.
    1. Log in to the Azure Platform.
    2. You must create a resource (if not created already). Click + Create Resource.
    3. Click the resource created. Click to manage the keys or create one in the Manage Keys section.
    4. In the Model Deployments section, click Manage Deployments -> Authorize your account. You will see a list of all the deployments created in the Azure platform. Click + Create new deployment to create a new deployment.

      Note: Refer to the Azure OpenAI Service REST API Reference document for more information on API Version.

  4. Click the Authorize button.
    Click_the_Authorize_Button
  5. In the Prompt Text field, provide your query to generate the chat response(s).
  6. Select the Role from the dropdown options to send to the API model request. By default, the role is set to the user.

    Additional Resource: There are three types of roles provided by the OpenAI platform. The system role sets the response context, the assistant role provides the response content, and the user role asks the prompt.

    Select_Fields.png
  7. Enable the Show optional fields toggle button to display the Number of Tokens, Randomness of Responses, Number of Chat Responses, User Identifier, Frequency of Repeated Words, Presence of Repeated Responses, and Additional Prompt Text fields.
  8. Enter the Number of Tokens to generate the content. This must be within the range of 1 to 2048.
  9. Enter a value for the Randomness of Responses of the generated content. 0 being the most precise and 2 being the most random content predictions. This must be within the range of 0 to 2.
  10. Enter the Number of Chat Responses you want to be generated in the automation response. This must be within the range of 1 to 3.
    Select_show_Optional_Field_one
  11. Provide the User Identifier name, which helps the OpenAI platform to monitor and detect abuse.
  12. Provide the value to set the Frequency of Repeated Words. The most positive value is likely to avoid the use of repeated words. This must be within the range of -2 to 2.
  13. Provide the value to set the Presence of Repeated Responses. The most positive value is likely to generate a new response. This must be within the range of -2 to 2.
    Show_Optional_Fields_two
  14. With the Additional Prompt Text field, you can add multiple queries based on the Role. The output generates a combined response provided in the Prompt Text field and adds the response(s) for your queries afterwards.
  15. You can mark the Sanitize text checkbox to remove special characters or spaces from the chat response. By enabling this checkbox, any special characters or spaces in the chat response will be eliminated, resulting in a clean and compatible text.
    Sanitize_Text.png
  16. Click Proceed.
  17. To test the configured action, click the Test Action button.
    Test_Action.png
  18. You will get the response(s). Once set, click the Save and Exit button.
    Save_and_Exit.png

Prompt Action

  1. Under Choose an Action tab, select the Prompt action.
    Select_Prompt_Action.png
  2. Click the + Add New Account button to add your Azure ChatGPT account.
    Add_New_Account.png
  3. In the Authorize modal, enter the Title, Resource Name, API Key, Deployment Name/ID, and API Version retrieved from the Azure platform.
    1. Log in to the Azure Platform.
    2. You must create a resource (if not created already). Click + Create Resource.
    3. Click the resource created. Click to manage the keys or create one in the Manage Keys section.
    4. In the Model Deployments section, click Manage Deployments -> Authorize your account. You will see a list of all the deployments created in the Azure platform. Click + Create new deployment to create a new deployment.

      Note: Refer to the Azure OpenAI Service REST API Reference document for more information on API Version.

  4. Click the Authorize button.
    Click_the_Authorize_Button
  5. Provide the Prompt Text to generate response(s).
    Select_Fields.png
  6. Enable the Show optional fields toggle button to display the Number of Tokens, Randomness of Responses, Number of Prompt Responses, User Identifier, Frequency of Repeated Words, and Presence of Repeated Responses fields.
  7. Enter the Number of Tokens to generate the content. This must be within the range of 1 to 2048.
  8. Enter a value for the Randomness of Responses of the generated content. 0 being the most precise and 2 being the most random content predictions. This must be within the range of 0 to 2.
  9. Enter the Number of Prompt Responses you want to be generated in the automation response. This must be within the range of 1 to 3.
  10. Provide the User Identifier name which helps the OpenAI platform to monitor and detect abuse.
  11. Provide the value to set the Frequency of Repeated Words. The most positive value is likely to avoid the use of repeated words. This must be within the range of -2 to 2.
  12. Provide the value to set the Presence of Repeated Responses. The most positive value is likely to generate a new response. This must be within the range of -2 to 2.
  13. You can mark the Sanitize text checkbox to remove special characters or spaces from the chat response. By enabling this checkbox, any special characters or spaces in the chat response will be eliminated, resulting in a clean and compatible text.
    Prompt_Text_Sanitize.png
  14. Click Proceed.
  15. To test the configured action, click the Test Action button.
    Test_Action.png
  16. You will get the response(s). Once set, click the Save and Exit button.
    Save_Exit.png

This sets the Azure ChatGPT action connector.

Was this article helpful?
^