> For the complete documentation index, see [llms.txt](https://docs.kognitos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kognitos.com/guides/platform/integrations/gemini.md).

# Gemini

{% hint style="info" %}
The following documentation is for **Gemini v3.0.1**.
{% endhint %}

## Overview

This integration connects to Google's Gemini AI models, enabling you to leverage advanced multimodal AI capabilities for text generation, analysis, and intelligent automation workflows.

## Setup

The following integrations need to be connected to your Kognitos workspace:

* **Gemini**

### Steps

Follow these steps to connect the integration in Kognitos:

{% stepper %}
{% step %}

#### Navigate

Using the left navigation menu, go to **Integrations** → **Explore Integrations**.
{% endstep %}

{% step %}

#### Find

Search for the integration and click on it.
{% endstep %}

{% step %}

#### Connect

Click on <kbd>**Connect**</kbd> to add a connection to the integration.
{% endstep %}

{% step %}

#### Configure

Add a name for the connection. You'll be prompted for [**authentication**](#authentication) details if needed. Then, click on <kbd>**Connect**</kbd>.
{% endstep %}
{% endstepper %}

## Authentication

Use one of the following authentication methods to connect this integration in Kognitos. Each method has its own configuration requirements.

### Connect using API Key

Connect using an API key.

| Label   | Description                     | Type        |
| ------- | ------------------------------- | ----------- |
| API Key | The API key for authentication. | `sensitive` |

### Connect using Service Account JSON and Location

Connect to Gemini using a Google Cloud service account (Vertex AI).

| Label                | Description                                      | Type        |
| -------------------- | ------------------------------------------------ | ----------- |
| Service Account JSON | The complete service account JSON.               | `sensitive` |
| Location             | The Google Cloud location (e.g., 'us-central1'). | `text`      |

## Actions

The following actions are available in the **Gemini** integration:

### 1. Classify text with gemini

Classify text into one of the supplied categories using Gemini.

### 2. Extract data with gemini

Extract structured fields from text using Google's Gemini models.

### 3. Prompt gemini

Send a prompt to the Gemini LLM and get a response.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.kognitos.com/guides/platform/integrations/gemini.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
