Integration library
Integration

ChatGPT

Use an approved OpenAI model for selected conversation and reasoning steps.

Description

AIM AI can be configured to send approved call context to an OpenAI model and return a response to the workflow. Model choice, prompts, retention, and permitted data are agreed before implementation.

Authentication

  • An OpenAI API key or approved organization credential is required.
  • Exact model access and approved actions are confirmed during workflow scoping.

Supported Actions (2)

These are the operations this integration can perform after the required credentials and permissions are approved.

  • List available OpenAI models
  • Execute chat completions with OpenAI models

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

Examples

Use these representative payloads as a technical starting point, then replace the sample values with the approved workflow data.

Chat GPT - List Models

Representative workflow configuration for Chat GPT - List Models.

JSON
{
  "automationType": "ai_chat",
  "nodeId": "ai-node-001",
  "nodeParams": {
    "action": "listModels",
    "params": {
      "provider": "openai"
    }
  }
}
Chat GPT - Chat Completion (GPT-5 Mini)

Representative workflow configuration for Chat GPT - Chat Completion (GPT-5 Mini).

JSON
{
  "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
    }
  }
}
Chat GPT - Chat Completion (GPT-5)

Representative workflow configuration for Chat GPT - Chat Completion (GPT-5).

JSON
{
  "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
    }
  }
}
Chat GPT - Chat Completion (GPT-4.5)

Representative workflow configuration for Chat GPT - Chat Completion (GPT-4.5).

JSON
{
  "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
    }
  }
}
Chat GPT - Chat Completion (GPT-4o)

Representative workflow configuration for Chat GPT - Chat Completion (GPT-4o).

JSON
{
  "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
    }
  }
}
Chat GPT - Chat Completion (GPT-4o Mini)

Representative workflow configuration for Chat GPT - Chat Completion (GPT-4o Mini).

JSON
{
  "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
    }
  }
}