hub.eb?material_id=761
AI

OpenAI

Interact with ChatGPT to edit text, ask questions and chat.

Overview

The OpenAI Data Connector uses OpenAI's Artificial Intelligence assistants, such as ChatGPT, to provide the ability to make text-based edits, queries and completions. 

Once installed and added to a Form, you can access this Data Connector in the Form's server event scripts using: connectors.verjio.openai.

  • openai.edit modifies some text in some way. For example, you might ask it to make some text more empathetic.
  • openai.query returns an answer to a question.
  • openai.completion allows you to have a chat with ChatGPT. It takes the previous messages to and from ChatGPT and then can expand on that conversation. For example, you might ask it to make the previous response have a more light-hearted tone.

Code Example:

var result = connectors.verjio.openai.query("Who has landed on the moon?");

For comprehensive information on how to use and develop applications with this Data Connector please refer to the Support section.

The Installation section has instructions on installing it into your Workspace.

Complete JavaScript API documentation for this Data Connector can be found in the Documentation section.

Documentation

Installation

Install this Data Connector into your Workspace in the Verj.io Studio:

  1. Right-click on the location in the Entity Tree you want the Data Connector to be added.
  2. Select New >  Data Connector from the context menu.
  3. In the resulting dialog, select this Data Connector from the list of available Data Connectors.
  4. Click OK to download it into your Workspace.

Once the Data Connector is installed into your Workspace, it can be added to any number of Forms:

  1. Open the Form by double-clicking it in the Entity Tree.
  2. Drag the downloaded Data Connector from the Entity Tree into the Form's  Data Connectors View.

Before this Data Connector can connect to OpenAI at runtime, it must be configured with an OpenAI API key.

For comprehensive information on how to customise, use, and configure Data Connectors, please refer to the Support section.

Support

The OpenAI API uses API keys for authentication.

You can create API keys at a user or service account level after you have created an OpenAI account and logged into it.

OpenAI Support

Data Connector Support

OpenAI Support

Compatible Verj.io Versions

FromV5.13

Required For

Support

Supported by Ebase.