5 min readUpdated Mar 2, 2026

Claude Integration Documentation

Overview

The Claude Integration provides powerful capabilities for interacting with the Anthropic Claude API. This includes functions for chat completions, generating AI summaries for dashboard tiles, and continuing conversations based on previous interactions. This integration empowers users to leverage sophisticated language models for analytics, summarization, and conversational interfaces.

Settings

The settings for the Claude Integration are crucial for configuring its functionalities. Below are the detailed descriptions of each available setting.

1. model

2. apiKey

3. maxTokens

4. temperature

5. system

How It Works

The Claude Integration interacts with the Anthropic API through clearly defined methods:

  1. Getting the Model: The getModel() method retrieves the desired model, automatically mapping outdated versions to their current equivalents.

  2. Setting the Model: The setModel(model) method allows users to specify the preferred model for API calls.

  3. Authorization: The authorize(requestInit) method is responsible for preparing the request headers, ensuring that the API key is included for authentication.

  4. Chat Completions and Streaming: The chatCompletion() and streamChatCompletion() methods facilitate both immediate and stream-based conversations, where users can provide messages and receive responses from the Claude model.

  5. Tile Summary Generation: The generateTileSummary() method constructs prompts based on a dashboard tile's metadata and data, generating summaries using the model.

  6. Continuing Conversations: The chatWithContext() method provides a way to have extended conversations, maintaining context through the conversation history.

Data Expectations

The Claude Integration expects the following types of data:

Use Cases & Examples

Use Case 1: Automated Customer Support

Companies can use the Claude Integration to automate customer service inquiries. By feeding the integration with customer questions and capturing responses, businesses can create a streamlined support experience while reducing personnel costs.

Use Case 2: Analytics Insight Generation

Data analysts can use this integration to automatically generate insights from complex datasets. For instance, if analysts have a dashboard with sales data, they can use the integration to summarize trends and anomalies.

Example Configuration for Use Case 2:

To configure Claude for generating insights from a sales analytics dashboard, the following configuration can be set up:

json
{
    "tileTitle": "Monthly Sales Overview",
    "tileType": "bar",
    "tileData": [ 
        { "month": "January", "sales": 1000 },
        { "month": "February", "sales": 1200 },
        { "month": "March", "sales": 1500 }
    ],
    "tileConfig": {},
    "context": "Q1 2023.",
    "userQuestion": "What trends do we see in the sales data?",
    "dataFilterInfo": "Includes only products with sales above $500."
}

The integration can analyze this data and respond with a concise summary of sales trends, key performance indicators, and relevant recommendations.

Billing Impacts

Integrating with the Claude API may incur costs based on usage, such as the number of tokens processed during requests. Users should monitor the token usage closely to manage their billing effectively, particularly in high-traffic applications. Standard pricing for the Anthropic API can vary and should be reviewed on the Anthropic pricing page for accuracy.