> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plura.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat GPT

> Send a message to OpenAI GPT-4 and get a response

### Description

Send AI chat messages using OpenAI's Chat GPT provider through Plura. Use this integration when you want to power conversations with OpenAI models (such as GPT-5, GPT-4.5, GPT-4o) from within your Plura workflows.

### Authentication

* Configure your OpenAI API key or organization credentials in your Plura workspace settings.

### Available Actions

* List available OpenAI models
* Execute chat completions with OpenAI models
* Support for multiple GPT models (GPT-5, GPT-4.5, GPT-4o, GPT-4.1)

### Examples

**Example 1: Chat GPT - List Models**

List all available OpenAI models.

```json theme={null}
{
  "automationType": "ai_chat",
  "nodeId": "ai-node-001",
  "nodeParams": {
    "action": "listModels",
    "params": {
      "provider": "openai"
    }
  }
}
```

**Example 2: Chat GPT - Chat Completion (GPT-5 Mini)**

Execute a chat completion using GPT-5 Mini model.

```json theme={null}
{
  "automationType": "ai_chat",
  "nodeId": "ai-node-003",
  "nodeParams": {
    "action": "chat",
    "params": {
      "provider": "openai",
      "model": "gpt-5-mini",
      "apiKey": "YOUR_OPENAI_API_KEY",
      "messages": [
        {
          "role": "system",
          "content": "You are a helpful assistant."
        },
        {
          "role": "user",
          "content": "Write a one-line haiku about winter."
        }
      ],
      "temperature": 0.1,
      "maxTokens": 64
    }
  }
}
```

**Example 3: Chat GPT - Chat Completion (GPT-5)**

Execute a chat completion using GPT-5 model with more tokens.

```json theme={null}
{
  "automationType": "ai_chat",
  "nodeId": "ai-node-chatgpt-gpt5-001",
  "nodeParams": {
    "action": "chat",
    "params": {
      "provider": "openai",
      "model": "gpt-5",
      "apiKey": "YOUR_OPENAI_API_KEY",
      "messages": [
        {
          "role": "system",
          "content": "You are an expert technical writer."
        },
        {
          "role": "user",
          "content": "Explain how REST APIs work in 3 paragraphs."
        }
      ],
      "temperature": 0.7,
      "maxTokens": 500
    }
  }
}
```

**Example 4: Chat GPT - Chat Completion (GPT-4.5)**

Execute a chat completion using GPT-4.5 model.

```json theme={null}
{
  "automationType": "ai_chat",
  "nodeId": "ai-node-chatgpt-gpt45-001",
  "nodeParams": {
    "action": "chat",
    "params": {
      "provider": "openai",
      "model": "gpt-4.5",
      "apiKey": "YOUR_OPENAI_API_KEY",
      "messages": [
        {
          "role": "user",
          "content": "What are the key features of GPT-4.5?"
        }
      ],
      "temperature": 0.5,
      "maxTokens": 200
    }
  }
}
```

**Example 5: Chat GPT - Chat Completion (GPT-4o)**

Execute a chat completion using GPT-4o model.

```json theme={null}
{
  "automationType": "ai_chat",
  "nodeId": "ai-node-chatgpt-gpt4o-001",
  "nodeParams": {
    "action": "chat",
    "params": {
      "provider": "openai",
      "model": "gpt-4o",
      "apiKey": "YOUR_OPENAI_API_KEY",
      "messages": [
        {
          "role": "system",
          "content": "You are a customer service representative."
        },
        {
          "role": "user",
          "content": "How can I reset my password?"
        }
      ],
      "temperature": 0.3,
      "maxTokens": 150
    }
  }
}
```

**Example 6: Chat GPT - Chat Completion (GPT-4o Mini)**

Execute a chat completion using GPT-4o Mini model for faster, cost-effective responses.

```json theme={null}
{
  "automationType": "ai_chat",
  "nodeId": "ai-node-chatgpt-gpt4o-mini-001",
  "nodeParams": {
    "action": "chat",
    "params": {
      "provider": "openai",
      "model": "gpt-4o-mini",
      "apiKey": "YOUR_OPENAI_API_KEY",
      "messages": [
        {
          "role": "user",
          "content": "Give me a quick summary of machine learning."
        }
      ],
      "temperature": 0.2,
      "maxTokens": 100
    }
  }
}
```

### Available Models

* **Latest:** gpt-5-mini, gpt-5, gpt-4.5-mini, gpt-4.5
* **Previous:** gpt-4o-mini, gpt-4o, gpt-4.1-mini, gpt-4.1

### Third-Party Documentation

* [OpenAI API Reference](https://platform.openai.com/docs/api-reference)
* [OpenAI Chat Completions](https://platform.openai.com/docs/api-reference/chat)
