5 min readUpdated Mar 2, 2026

Grok Integration Documentation

Overview

The Grok Integration provides a seamless interface to interact with the X.AI Grok API, which is designed for advanced chat completions and AI-generated summaries specific to data dashboards. This integration allows users to leverage AI capabilities for generating insights, chat interactions, and automated summaries based on various data inputs.

Purpose

The primary purpose of the Grok Integration is to facilitate:

Settings

The Grok integration comprises several essential settings, which need to be configured to establish robust API interactions.

1. apiKey

2. model

3. messages

4. maxTokens

5. temperature

6. stream

7. system

How It Works

The integration operates by sending structured requests to the Grok API endpoint, utilizing Bearer token authentication for secure and authenticated access. Users can configure the various settings to tailor the integration to fulfill their specific analytic and conversational requirements.

  1. Initialization of the integration is performed with a provided API key.
  2. Users can set or change the AI model being used for interactions.
  3. When a chat or summary request is initiated, messages and configuration options are validated.
  4. Data is formatted and sent to the Grok API, where responses are generated based on the provided inputs.
  5. The integration can handle both single-request completions and streaming responses for ongoing interaction.

Expected Data

The Grok integration expects structured JSON data for several key functions, above all:

AI Integrations

The Grok integration leverages AI capabilities specifically designed for analytical tasks:

Billing Impact

Utilizing the Grok integration may incur costs based on:

It is essential for users to review their usage statistics regularly to manage costs effectively.

Use Cases & Examples

Use Case 1: Automated Insight Generation for Dashboards

A product management team uses the Grok integration to automatically generate summaries for their analytics dashboard. This saves time and improves understanding among team members who might not be data-savvy.

Use Case 2: Chat Interaction for User Queries

Customer support teams can leverage the Grok integration to respond to user inquiries about data directly from the dashboard, providing immediate context-aware support.

Detailed Example Configuration

For the first use case, the following is a sample configuration that automatically summarizes a product analytics dashboard:

json
{
  "tileTitle": "Product Performance Overview",
  "tileType": "bar",
  "tileData": [
    {"product": "A", "sales": 1200, "returns": 50},
    {"product": "B", "sales": 900, "returns": 30},
    {"product": "C", "sales": 1500, "returns": 75}
  ],
  "tileConfig": {
    "visualizationType": "bar"
  },
  "context": "Analyze the overall performance of products to identify trends.",
  "userQuestion": "What can you tell me about the products in Q1 2023?",
  "dataFilterInfo": "Sales data for the first quarter."
}

By utilizing this configuration with the generateTileSummary method, the integration can produce actionable insights that inform strategic decisions for the product management team.