ChatGPT Connector 1.0.0.0

The ChatGPT Connector allows you to use ChatGPT within RunMyJobs.

Prerequisites

Contents of the Component

Object Type Name Description
Application 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
Process Definition REDWOOD.Redwood_ChatGPT_Request Perform a request to ChatGPT
Process Definition Type REDWOOD.Redwood_ChatGPT ChatGPT Connector
Library REDWOOD.Redwood_ChatGPT Library for ChatGPT connector

Process Definitions

Redwood_ChatGPT_Request

This Process 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

Procedure

Create a Connection To ChatGPT

  1. Navigate to Custom > Connections.

  2. Click .

  3. Choose ChatGPT Connection under Select a Connection Type.
  4. Click Next or Basic Properties and create a Queue and Process 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 information.
  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 > Process Server, locate your ChatGPT Process Server, start it, and ensure it reaches status Running.

Sending a ChatGPT Request

  1. Navigate to Definitions > Processes.
  2. Choose Submit from the context menu of Redwood_ChatGPT_Request.
  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 Submit.

Maintaining a Contextual Conversation with ChatGPT

To maintain a contextual conversation with ChatGPT, Chain the chatResponse output parameter to the chatHistory input parameter on the next request.

See Also