---
title: Openai Chatgpt
slug: connectors/openai-chatgpt
docTags: 
createdAt: 2026-06-09T16:29:47.809Z
---

The OpenAI ChatGPT connector enables automated interaction with OpenAI's advanced natural language processing tools, facilitating AI-powered conversations and text analysis within user workflows.

OpenAI's ChatGPT is a cutting-edge language model that offers conversational AI capabilities. The OpenAI ChatGPT connector for Swimlane Turbine allows users to integrate AI-driven insights directly into their security workflows. By leveraging this connector, users can submit questions and receive AI-generated responses, enrich security playbooks with advanced AI context, and enhance decision-making processes. The connector supports various models, including the latest GPT versions, and offers customizable parameters for tailored AI responses.

## Prerequisites

To effectively utilize the OpenAI ChatGPT connector within Swimlane Turbine, ensure you have the following:

- API Key Authentication:
  - API Key: A valid OpenAI API key required to authenticate requests.

## Capabilities

The OpenAI ChatGPT connector has the following capabilities:

- Generate responses to user input

# Configurations

## OpenAI API Key

Authenticates using an API Key

### Configuration Parameters

| **Parameter** | **Description**                          | **Type** | **Required** |
| ------------- | ---------------------------------------- | -------- | ------------ |
| apiKey        | API key                                  | string   | Required     |
| base\_url     | The base URL of the OpenAI API endpoint. | string   | Optional     |

# Actions

## Ask ChatGPT

Submits a question to OpenAI ChatGPT and retrieves the AI-generated response for seamless workflow integration.

### Endpoint

- **Method:** `GET`

### Input

| **Argument Name** | **Type** | **Required** | **Description**                                                                                                                                                                      |
| ----------------- | -------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `question_to_ask` | string   | Required     | Parameter for Ask ChatGPT                                                                                                                                                            |
| `model`           | string   | Optional     | The model to use for generating the response.                                                                                                                                        |
| `max_tokens`      | number   | Optional     | The maximum number of tokens to generate in the response. Default is 2000.                                                                                                           |
| `temperature`     | number   | Optional     | Controls the randomness of the output. Higher values (e.g., 0.9) make the output more random, while lower values (e.g., 0.1) make it more focused and deterministic. Default is 0.9. |
| `top_p`           | number   | Optional     | An alternative to sampling with temperature, called nucleus sampling. Default is 1.                                                                                                  |
| `img_url`         | string   | Optional     | URL of the image to be used as context for generating the response.                                                                                                                  |
| `file`            | object   | Optional     | File to be uploaded and used as context for generating the response.                                                                                                                 |
| `file.file`       | string   | Optional     | Parameter for Ask ChatGPT                                                                                                                                                            |
| `file.file_name`  | string   | Optional     | Name of the resource                                                                                                                                                                 |

### Input Example

`{"question_to_ask":"What is Monday","model":"gpt-4.1","img_url":"https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png"}`

### Output

| **Parameter** | **Type** | **Description**                  |
| ------------- | -------- | -------------------------------- |
| `message`     | string   | Response message                 |
| `status_code` | number   | HTTP status code of the response |
| `headers`     | object   | HTTP headers for the request     |
| `reason`      | string   | Response reason phrase           |

### Output Example

`{"message":"Certainly! Here are the details of **Swimlane** as of June 2024:\n\n---\n\n### **Ove...","status_code":200,"headers":null,"reason":"OK"}`

# Response Headers

| **Header**   | **Description**                                       | **Example**                   |
| ------------ | ----------------------------------------------------- | ----------------------------- |
| Content-Type | The media type of the resource                        | application/json              |
| Date         | The date and time at which the message was originated | Thu, 01 Jan 2024 00:00:00 GMT |
