# Gemini

## 1. API Key

**Bước 1**: đăng nhập vào link: <https://aistudio.google.com/app/apikey>

Tại màn hình này bấm vào **“Create an API key”** Tiến hành tạo khóa

<figure><img src="/files/fvu5XNbdEpTFZ61csvR1" alt=""><figcaption></figcaption></figure>

**Bước 2**: Tạo khóa thành công

<figure><img src="/files/uQsu0Mcvu9R9QL6HKqYR" alt=""><figcaption><p><em>Màn hình hiển thị danh sách các key được tạo</em></p></figcaption></figure>

**Bước 3**: Nhấp chuột vào cột API key tương ứng để copy key\
**Bước 4**: Truy cập tài khoản admin của SlimCRM mục **\[ Hệ thống ] > \[ Cài đặt ] > \[ Trợ lý AI ]** > **\[ Gemini ]** và dán API key đã copy vào ô tương ứng

<figure><img src="/files/0UrolX49ukmkPME09kDK" alt=""><figcaption><p>Dán <em>key đã copy trước đó vào ô API key</em></p></figcaption></figure>

## 2. Phiên bản

**Bước 1**: Vào link: <https://ai.google.dev/gemini-api/docs/api-versions?hl=vi>

<figure><img src="/files/cLAaHKnJviaYI7HdkosI" alt=""><figcaption><p><em>Các version và tính năng tương ứng</em></p></figcaption></figure>

**Bước 2**: Tìm hiểu kỹ về các phiên bản, lựa chọn v1 hoặc v1beta.

**Bước 3**: Truy cập tài khoản admin của SlimCRM mục **\[ Hệ thống] > \[ Cài đặt ] > \[ Trợ lý AI ] > \[ Gemini ]** và nhập tên phiên bản vào ô Version

<figure><img src="/files/IOy7dtXegliM0t8NGAHR" alt=""><figcaption></figcaption></figure>

## 3. Model

**Bước 1**: Vào link: <https://ai.google.dev/gemini-api/docs/models/gemini?hl=vi>

**Bước 2**: Lựa chọn copy tên model như **gemini-1.5-pro** hoặc **gemini-1.0-pro**

<figure><img src="/files/nE6FqsNp20yDbr1AV83m" alt=""><figcaption><p><em>Các model và thông số tương ứng</em></p></figcaption></figure>

**Bước 3**: Truy cập tài khoản admin của SlimCRM mục **\[ Hệ thống] > \[ Cài đặt ] > \[ Trợ lý AI ] > \[ Gemini ]** và dán vào ô Model

<figure><img src="/files/NN6Np1E7wY2bSdZhCnpL" alt=""><figcaption></figcaption></figure>

## 4. Kích hoạt

**Bước 1**: Chọn **\[ Có ]** để kích hoạt sử dụng Trợ lý ảo Gemini

<figure><img src="/files/E9FaxP35GeTh6773TSry" alt=""><figcaption></figcaption></figure>

**Bước 2**: Bấm **\[ Lưu cài đặt ]** ở footer để lưu thông số

## 5. Kiểm tra cấu hình API Gemini

Sau khi đã lưu thành công, trên màn hình thiết lập nhấp **\[ Kiểm tra thiết lập trợ lý AI ]** để kiểm tra

Thông báo nền xanh hiện lên như dưới đây thì cấu hình đã chính xác

<figure><img src="/files/LNDWz3ggLiqYaTrVE22H" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://help.slimcrm.vn/tich-hop/gemini.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
