The OpenAI Analyse Data Connector enables you to use ChatGPT to analyse text. Using this Data Connector you can extract key information about textual data including keywords, sentiment and classification.
This Data Connector extends the functionality of the OpenAI Data Connector.
Once this and the OpenAI Data Connector have been installed and added to a Form, you can access this Data Connector in the Form's server event scripts using: connectors.verjio.openai
.
openai.keywords
returns a configurable number keywords or tags from a piece of text.
openai.sentiment
determines the tone of some text. The sentiment can be used to tell if the text is positive or negative, in agreement or opposition, biased or unbiased.
openai.classification
classifies the provided text. For example, you may wish to determine the genre of a short story.
Code example:
var result = connectors.verjio.openai.keywords(
`The Apollo program was a series of rocket launches made by NASA with the aim of landing men on the moon.
Eventually, in 1969, the program was successful as Neil Armstrong and Buzz Aldrin became the first people to walk on the lunar surface.`
);
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.