# ChatGPT

## 1. API Key

**Bước 1**: đăng nhập vào link: <https://platform.openai.com/settings/profile?tab=api-keys>

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/L4ZpiRTPDFkzLK4Nt9NH" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/vScnqFxiRt0ZKV5I6Jlv" alt=""><figcaption><p><em>Màn hình danh sách các khóa</em></p></figcaption></figure>

**Bước 3**: Nhấp chuột để sao chép khóa

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

**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 ]** > **\[ ChatGPT ]** và dán API key đã copy vào ô tương ứng

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

## 2. Model

**Bước 1:** Vào link: <https://platform.openai.com/docs/models>

**Bước 2**: Copy tên 1 trong các model như **gpt-4** hoặc **gpt-3.5-turbo**\
**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 ]** > **\[ ChatGPT ]** và dán vào ô Model

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

## 3. Kích hoạt

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

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

**Bước 2**: Bấm **\[ Lưu cài đặt ]** để lưu cấu hình

## 4. Kiểm tra cấu hình

Sau khi lưu, bấm **\[ Kiểm tra thiết lập ]**

Nếu thông báo trả về như minh họa phía dưới thì việc cấu hình đã hoàn tất

<figure><img src="/files/FYP6V0qdWoB7fvNL6c1p" 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/chatgpt.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.
