ChatGPT Connector 1.0.0.0
The ChatGPT Connector lets you use ChatGPT within RunMyJobs.
Prerequisites
- RunMyJobs 9.2.9 or later
- Connection Management Extension 1.0.0.3 or later. Note that the Connection Management Extension will be installed or updated automatically if necessary when you install this Connector.
- Privileges Required to Use Connections
- Privileges Required to Use ChatGPT Connector
- OpenAI account with a valid API key
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
-
Navigate to Configure > Extensions > Connections.
-
Click New.
- Under Select a Connection Type, choose ChatGPT Connection.
- Click Next or Basic Properties and create a Queue and Job Server for your ChatGPT Connection. All required settings will be set automatically.
- ClickNext or Security, then click
to specify which roles can access the Connection.
-
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.
- Navigate to Environment > Job Server, locate your ChatGPT Job Server, start it, and make sure it reaches status Running.
Sending a ChatGPT Request
- Navigate to Configure > Automate > Job Definitions.
- Run the Redwood_ChatGPT_Request Job.
- 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.
- Choose a model from the Model to use for the request field.
- Enter the ChatGPT request in the Request to ChatGPT field.
- 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.