# Create Element

* **Bộ chọn phần tử**\
  Bộ chọn phần tử của phần tử mục tiêu.
* **Chèn phần tử**\
  Biểu thị vị trí tương đối so với phần tử mục tiêu.
  * **Là phần tử con đầu tiên**\
    Chèn nó làm phần tử con đầu tiên của phần tử mục tiêu.
  * **Là phần tử con cuối cùng**\
    Chèn nó làm phần tử con cuối cùng của phần tử mục tiêu.
  * **Là phần tử cùng cấp trước đó**\
    Chèn nó vào làm phần tử cùng cấp trước đó của phần tử mục tiêu.
  * **Là phần tử anh em tiếp theo**\
    Chèn nó làm phần tử anh em tiếp theo của phần tử mục tiêu.
  * **Thay thế phần tử mục tiêu**\
    Thay thế phần tử mục tiêu bằng phần tử đã được tạo.
* **HTML**\
  HTML của phần tử mà bạn muốn tạo
* **CSS**\
  CSS sẽ được đưa vào trang
* **JavaScript**\
  JavaScript sẽ được đưa vào trang
* `AutomaRefData(keyword, path?)`chức năng\
  Sử dụng chức năng này để tham chiếu dữ liệu .\
  Để biết thêm chi tiết, hãy mở trang Javascript Block
* `AutomaExecWorkflow(detail)`hàm để thực hiện một quy trình công việc.\
  Tham `detail`số là nơi bạn nhập chi tiết của quy trình công việc như id hoặc `publicId`quy trình công việc bạn muốn thực hiện. Ví dụ:

```json
// execute workflow based on its id
gemloginExecWorkflow({ id: 'workflow-id' });

// execute workflow based on its publicId
gemloginExecWorkflow({ publicId: 'workflow-public-id' });
```

Bạn cũng có thể nhập các biến sẽ được đưa vào quy trình làm việc khi nó đang chạy.

```json
gemloginExecWorkflow({
	id: 'workflow-id',
	data: {
		variables: {
			varA: 'Variable A value',
			postCode: 1212,
			numbers: [1, 2, 3, 4],
		}
	}
})
```

* Tải trước tập lệnh\
  Tải tập lệnh hoặc kiểu trước khi đưa phần tử vào.


---

# 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://minhtien192057s-organization.gitbook.io/gemlogin-book/khoi/web-interaction/create-element.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.
