Integration library
Provider capability

AI Chat

Choose an approved AI provider and model for a specific phone workflow.

Description

AIM AI can be configured to use ChatGPT, Claude, Gemini, or Grok for selected reasoning and response tasks. The provider, model, prompts, and data boundaries are confirmed during workflow scoping.

Authentication

  • A provider-specific API credential is required.
  • Exact permissions and approved actions are confirmed during workflow scoping.

Supported Actions (4)

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

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

Examples

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

AI Chat - List Providers

Representative workflow configuration for AI Chat - List Providers.

JSON
{
  "automationType": "ai_chat",
  "nodeId": "ai-node-000",
  "nodeParams": {
    "action": "listProviders",
    "params": {}
  }
}
AI Chat - List Models (Provider)

Representative workflow configuration for AI Chat - List Models (Provider).

JSON
{
  "automationType": "ai_chat",
  "nodeId": "ai-node-001",
  "nodeParams": {
    "action": "listModels",
    "params": {
      "provider": "openai"
    }
  }
}
AI Chat - List Models (All Providers)

Representative workflow configuration for AI Chat - List Models (All Providers).

JSON
{
  "automationType": "ai_chat",
  "nodeId": "ai-node-002",
  "nodeParams": {
    "action": "listModels",
    "params": {}
  }
}
AI Chat - Chat (OpenAI)

Representative workflow configuration for AI Chat - Chat (OpenAI).

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
    }
  }
}
AI Chat - Chat (Anthropic)

Representative workflow configuration for AI Chat - Chat (Anthropic).

JSON
{
  "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." }
      ]
    }
  }
}
AI Chat - Chat (xAI)

Representative workflow configuration for AI Chat - Chat (xAI).

JSON
{
  "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." }
      ]
    }
  }
}
AI Chat - Chat (Gemini)

Representative workflow configuration for AI Chat - Chat (Gemini).

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