> ## 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.

# AI Chat

> Manage AI chat providers like ChatGPT, Claude, Gemini, and Grok

### Description

Manage AI chat providers like ChatGPT, Claude, Gemini, and Grok. Use this integration to list providers, list models, and execute chat completions.

### Authentication

* Provider-specific API keys (OpenAI, Anthropic, xAI, Google Gemini).

### Available Actions

* List AI chat providers
* List models for a provider
* List models for all providers
* Execute chat completions

### Examples

**Example 1: AI Chat - List Providers**

List available AI chat providers.

```json theme={null}
{
  "automationType": "ai_chat",
  "nodeId": "ai-node-000",
  "nodeParams": {
    "action": "listProviders",
    "params": {}
  }
}
```

**Example 2: AI Chat - List Models (Provider)**

List models for a specific provider.

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

**Example 3: AI Chat - List Models (All Providers)**

List models for all providers.

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

**Example 4: AI Chat - Chat (OpenAI)**

Execute a chat completion using OpenAI provider.

```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 5: AI Chat - Chat (Anthropic)**

Execute a chat completion using Anthropic provider.

```json theme={null}
{
  "automationType": "ai_chat",
  "nodeId": "ai-node-004",
  "nodeParams": {
    "action": "chat",
    "params": {
      "provider": "anthropic",
      "model": "claude-4-haiku-latest",
      "apiKey": "YOUR_ANTHROPIC_API_KEY",
      "messages": [
        { "role": "user", "content": "Summarize this sentence in 10 words." }
      ]
    }
  }
}
```

**Example 6: AI Chat - Chat (xAI)**

Execute a chat completion using xAI provider.

```json theme={null}
{
  "automationType": "ai_chat",
  "nodeId": "ai-node-005",
  "nodeParams": {
    "action": "chat",
    "params": {
      "provider": "xai",
      "model": "grok-3-latest",
      "apiKey": "YOUR_XAI_API_KEY",
      "messages": [
        { "role": "user", "content": "Tell a short joke about databases." }
      ]
    }
  }
}
```

**Example 7: AI Chat - Chat (Gemini)**

Execute a chat completion using Google Gemini provider.

```json theme={null}
{
  "automationType": "ai_chat",
  "nodeId": "ai-node-006",
  "nodeParams": {
    "action": "chat",
    "params": {
      "provider": "gemini",
      "model": "gemini-2.0-flash",
      "apiKey": "YOUR_GEMINI_API_KEY",
      "messages": [
        { "role": "system", "content": "You are a helpful assistant." },
        { "role": "user", "content": "List 3 fun weekend activities." }
      ],
      "temperature": 0.2,
      "maxTokens": 64
    }
  }
}
```

### Third-Party Documentation

* [https://platform.openai.com/docs/api-reference](https://platform.openai.com/docs/api-reference)
* [https://docs.anthropic.com/claude/reference/getting-started-with-the-api](https://docs.anthropic.com/claude/reference/getting-started-with-the-api)
* [https://ai.google.dev/docs](https://ai.google.dev/docs)
* [https://docs.x.ai/](https://docs.x.ai/)
