ChatGPT Connector 1.0.0.0

The ChatGPT Connector lets you use ChatGPT within RunMyJobs.

Prerequisites

Contents

Object Type Name Description
Folder GLOBAL.Redwood.REDWOOD.ChatGPT.$2 Integration Connector with ChatGPT
Constraint Definition REDWOOD.Redwood_ChatGPTConnectionConstraint Constraint for ChatGPT Connection fields
Constraint Definition REDWOOD.Redwood_ChatGPTModelConstraint Constraint for ChatGPT Models
Extension Point REDWOOD.Redwood_ChatGPTConnection ChatGPT Connector
Job Definition REDWOOD.Redwood_ChatGPT_Request Perform a request to ChatGPT
Job Definition Type REDWOOD.Redwood_ChatGPT ChatGPT Connector
Library REDWOOD.Redwood_ChatGPT Library for ChatGPT Connector

Job Definitions

Redwood_ChatGPT_Request

This Job Definition lets you perform a request to ChatGPT. It returns both a string containing the ChatGPT response and a table containing the conversation so far.

Parameters

Tab Name Description Documentation Data Type Direction
Parameters connection Connection The Connection object that defines the connection to ChatGPT. String In
Parameters model Model to use for the request Choose the ChatGPT model to use in this request String In
Parameters request Request to ChatGPT Fill in the request to send to ChatGPT String In
Parameters chatHistory Chat history The chat history leading up to this follow up request Table In
Parameters chatResponse Complete chat response The complete chat including the response from ChatGPT Table Out
Parameters requestResponse Direct request response The specific response provided against this request String Out

Procedures

Creating a Connection To ChatGPT

  1. Navigate to Configure > Extensions > Connections.

  2. Click New.

  3. Under Select a Connection Type, choose ChatGPT Connection.
  4. Click Next or Basic Properties and create a Queue and Job Server for your ChatGPT Connection. All required settings will be set automatically.
  5. ClickNext or Security, then click to specify which roles can access the Connection.
  6. Click Next or ChatGPT Connection Properties.

    • Enter your ChatGPT API token in the Token field.
    • Enter your Organization ID from the OpenAI web site in the Organization field.
  7. Navigate to Environment > Job Server, locate your ChatGPT Job Server, start it, and make sure it reaches status Running.

Sending a ChatGPT Request

  1. Navigate to Configure > Automate > Job Definitions.
  2. Run the Redwood_ChatGPT_Request Job.
  3. Select the Connection in the Connection field. RunMyJobs queries ChatGPT for a list of models and makes them available in the Model to use for this request field.
  4. Choose a model from the Model to use for the request field.
  5. Enter the ChatGPT request in the Request to ChatGPT field.
  6. Click Run.

Maintaining a Contextual Conversation with ChatGPT

To maintain a contextual conversation with ChatGPT, create a Workflow that maps the chatResponse Out Parameter to the chatHistory In Parameter on the next request.