How to set up a connection between ChatGPT and dejiren

This article explains how to set up the connection between dejiren and ChatGPT.

Prerequisites and required permissions

Services Required permissions Operations requiring permissions
ChatGPT OpenAI API paid subscription On the OpenAI Platform
– View Organization page
– Create an API secret key
dejiren Edit permissions for VA
(VA Admin or VA Editor)
– Create a connection setting

Setup procedure


Setup procedure

Step 1. View the OpenAI Organization ID and create an API secret key

  1. Go to the OpenAI Platform > Organization settings page.
    https://platform.openai.com/settings/organization/general

  2. Note the value for Organization ID.


  3. Go to the API keys page and click Create new secret key.
    https://platform.openai.com/api-keys


  4. In Create new secret key dialog, specify each setting as desired and click Create secret key.


  5. Click Copy under Save your key and note the created secret key.
    *The secret key can only be viewed here.


  6. Click Done to close the dialog.


  7. You can close the OpenAI Platform window.

Step 2. Create a connection setting in dejiren

  1. Go to the dejiren Virtual Assistant (VA) management screen.
    https://www.dejiren.com/va

  2. On the Virtual Assistant (VA) management page, click Connections.


  3. Under Connections, click New.


  4. In Create New Connection Settings dialog, select ChatGPT and click Next.


  5. In Create New Connection Settings dialog, enter values for each item and click Create.

    Settings Setting values Required?
    Connection name Enter any name to identify this connection setting. Required
    Organization ID Enter the Organization ID you noted in OpenAI Platform. Required
    API key Copy the secret key created in OpenAI Platform. Required
    ChatGPT model Select the generative AI model you want to use for the dialogue. Required
    System prompt Enter any given instructions for the generating AI. Optional
    Whisper (transcription) model Select the generative AI model you want to use for transcription. Required
    Vision model Select the generative AI model you want to use for image analysis. Required
    Personal Authentication Select this check box if you want to perform authentication for each user.
    Note: An additional step 3 is required.
    Optional

  6. Once you have completed entering and setting each item, click Test Connection to check that the connection is successful.


    If the connection is successful, the message “Connected successfully” will be displayed. Click Close.


    If the message “Connection failed” is displayed, check the settings.


  7. Click Create to complete the connection settings.

This completes the normal setup.
Please perform the following steps only if you want to enable personal authentication.

Step 3. Configure personal authentication settings (only if you want to authenticate each user)

If you enable personal authentication, you will not be able to connect to ChatGPT with only the settings up to this step.
When you run VA for the first time using the connection settings you created, a personal authentication dialog will be displayed.
Authentication must be performed by user.


  1. In the dejiren Virtual Assistant (VA) management screen, create a VA using this connection setting.


  2. You can chat with the VA you created in a direct chat or from a room where you’ve added the VA as a member.

  3. The VA will respond and provide you with a link to authenticate, click on it.


  4. The authentication screen will be displayed in your Web browser.
    Enter the secret key created in OpenAI Platform and click Save.


  5. When the connection is successful, the message “Connected” will be displayed. Click Close.


    You are now ready to connect to ChatGPT.


    Note: Authentication is performed for each user who runs a VA the first time the VA is called.