> For the complete documentation index, see [llms.txt](https://docs.gpmautomate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gpmautomate.com/huong-dan-cac-action/cookie/import-cookie.md).

# Import cookie

Import cookie là hành động nạp một chuỗi hoặc tệp dữ liệu cấu trúc cookie có sẵn vào trình duyệt để tài khoản tự động vào trạng thái đăng nhập thành công mà không cần điền Username/Password.

#### Tham số cấu hình:

* Cookie file: Đường dẫn tuyệt đối dẫn tới tệp tin `.json` chứa cấu trúc cookie (hoặc truyền thẳng biến dữ liệu).
* Định dạng cấu trúc: Bắt buộc phải là định dạng JSON chuẩn.

#### Lưu ý vận hành quan trọng:

* Cần Go to URL trước: Bạn bắt buộc phải cho trình duyệt truy cập vào đúng trang web mục tiêu trước khi gọi hành động này (Ví dụ: Vào `facebook.com` trước rồi mới Import cookie Facebook, lúc đó cookie mới ăn khớp vào đúng tên miền).
* Chỉ có giá trị trong session hiện tại: Toàn bộ dữ liệu cookie được nạp vào chỉ có hiệu lực tạm thời trong phiên làm việc đó. Ngay khi tắt Profile trình duyệt, lượng cookie này sẽ tự động biến mất và không lưu đè vào dữ liệu gốc của Profile.

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

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


---

# 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.gpmautomate.com/huong-dan-cac-action/cookie/import-cookie.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.
