Grok
Use an approved Grok model for selected conversation and reasoning steps.
Description
AIM AI can be configured to send approved call context to Grok and return a response to the workflow. Model choice, prompts, retention, and permitted data are agreed before implementation.
Authentication
- An xAI API 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 Grok models
- Execute chat completions with Grok models
Available Models
- Latest
- grok-3-latest
- grok-3-mini
- Previous
- grok-2-latest
- grok-2-mini
Examples
Use these representative payloads as a technical starting point, then replace the sample values with the approved workflow data.
Representative workflow configuration for Grok - List Models.
{
"automationType": "ai_chat",
"nodeId": "ai-node-001",
"nodeParams": {
"action": "listModels",
"params": {
"provider": "xai"
}
}
}Representative workflow configuration for Grok - Chat Completion (Grok 3).
{
"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."
}
]
}
}
}Representative workflow configuration for Grok - Chat Completion (Grok 3 Mini).
{
"automationType": "ai_chat",
"nodeId": "ai-node-grok-mini-001",
"nodeParams": {
"action": "chat",
"params": {
"provider": "xai",
"model": "grok-3-mini",
"apiKey": "YOUR_XAI_API_KEY",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant with access to real-time information."
},
{
"role": "user",
"content": "What are the latest trends in AI development?"
}
],
"temperature": 0.7,
"maxTokens": 300
}
}
}Representative workflow configuration for Grok - Chat Completion (Grok 2).
{
"automationType": "ai_chat",
"nodeId": "ai-node-grok-2-001",
"nodeParams": {
"action": "chat",
"params": {
"provider": "xai",
"model": "grok-2-latest",
"apiKey": "YOUR_XAI_API_KEY",
"messages": [
{
"role": "user",
"content": "Explain quantum computing in simple terms."
}
],
"temperature": 0.5,
"maxTokens": 400
}
}
}Representative workflow configuration for Grok - Chat Completion (Grok 2 Mini).
{
"automationType": "ai_chat",
"nodeId": "ai-node-grok-2-mini-001",
"nodeParams": {
"action": "chat",
"params": {
"provider": "xai",
"model": "grok-2-mini",
"apiKey": "YOUR_XAI_API_KEY",
"messages": [
{
"role": "system",
"content": "You are a concise technical assistant."
},
{
"role": "user",
"content": "What is the difference between REST and GraphQL?"
}
],
"temperature": 0.3,
"maxTokens": 200
}
}
}