xAI Grok
Updated
Integrate xAI Grok as the LLM with the Conversational AI Engine.
xAI provides access to Grok large language models through an OpenAI-compatible chat completions API for conversational AI applications.
Sample configuration
The following example shows a starting llm parameter configuration you can use when you Start a conversational AI agent.
"llm": {
"url": "https://api.x.ai/v1/chat/completions",
"api_key": "<your_llm_key>",
"system_messages": [
{
"role": "system",
"content": "You are a helpful chatbot."
}
],
"max_history": 32,
"greeting_message": "Hello, how can I assist you?",
"failure_message": "Please hold on a second.",
"params": {
"model": "grok-4.3"
},
"vendor": "xai"
}Key parameters
urlstringThe xAI chat completions endpoint. Set to https://api.x.ai/v1/chat/completions.
api_keystringThe xAI API key used to authenticate requests.
vendorstringThe LLM vendor. Set to xai.
paramsobjectAdditional parameters passed directly to the xAI API.
modelstringThe Grok model to use. For example, grok-4.3. For available models, refer to the xAI models documentation.
For more information, refer to the xAI Chat Completions documentation.
