6 min readUpdated Mar 2, 2026

Gemini Integration Documentation

Overview

The Gemini Integration for the Vantage analytics and data platform provides methods for interacting with the Google Gemini API. This integration enables functionalities such as receiving chat completions and generating summaries for dashboard tiles using advanced AI capabilities.

The integration specifically utilizes Google's generative language models to provide insights, answers, and other informative outputs based on user inputs and provided data.

For more details on the API, refer to the official Gemini API Documentation.

Settings

The Gemini Integration contains several configurable settings that allow users to customize its behavior and functionality. Below is a detailed breakdown of each setting.

1. Model

2. API Key

3. Maximum Tokens

4. Temperature

5. System Instruction

How It Works

The Gemini Integration is built on top of a base integration class, the base integration, which manages the connection to the Gemini API. Upon initialization, it captures settings like the API key and model selection.

The integration interacts with the Gemini API primarily through the following methods:

  1. Chat Completion: This method allows users to send a series of messages to the AI and receive a generated response. Various parameters — including model choice, message contents, maximum tokens, and response temperature — influence the results.

  2. Streaming Chat Completion: Similar to chat completion, but designed for more continuous exchanges, allowing partial responses to be processed in real-time.

  3. Generate Tile Summary: This method summarizes data displayed in dashboard tiles, helping users gain insights quickly based on complex datasets. It builds context-sensitive prompts based on the provided data.

  4. Chat with Context: Engages users in an interactive conversation regarding specific dashboard tiles, responding to follow-up questions and maintaining context throughout the interaction.

Each of these methods sends structured requests to the Gemini API and handles responses, converting them into formats compatible with user needs.

Expected Data

The integration expects specific types of data depending on the method being called:

Use Cases & Examples

Use Case 1: Customer Support Automation

Using the Gemini Integration, a company can automate customer support responses by integrating the chat completion functionality into its service portal. This allows customers to receive instant responses to common inquiries, improving response times significantly.

Use Case 2: Business Intelligence Reports

A business analyst can use the Generate Tile Summary feature to prepare concise reports on dashboard visualizations. By summarizing complex data, stakeholders can quickly grasp insights without diving deeply into raw datasets.

Example Scenario: Automated Reporting

Suppose a retail company wishes to analyze sales data presented in a dashboard tile. The configuration for generating a summary might look like this:

json
{
    "tileTitle": "Monthly Sales Overview",
    "tileType": "line",
    "tileData": {
        "January": 10000,
        "February": 15000,
        "March": 18000
    },
    "tileConfig": {},
    "context": "User wants a summary of the sales trends over the last three months.",
    "userQuestion": ""
}

With this configuration, the Gemini Integration processes the input and returns a structured summary with key insights and recommendations, such as:

Billing Impacts

Utilizing the Gemini Integration may incur costs based on the number of API calls made, the number of tokens processed in requests and responses, and the specific model chosen. It's essential for users to monitor their usage to understand the financial implications of leveraging AI capabilities within their applications. Detailed billing information can typically be found in the platform's billing documentation or can be obtained by contacting customer support.

By leveraging the capabilities outlined in this documentation, users can effectively integrate and utilize the Gemini API within their environment, harnessing AI-powered insights to enhance decision-making and operational efficiency.