# Cấu trúc AI Workflow

## <mark style="color:blue;">Cấu trúc cơ bản của AI Workflow</mark>

Đơn giản dễ hiểu: Bạn sẽ nhập một input đầu vào cho AI Workflow thực hiện và các công việc của AI Agent bên trong.

{% hint style="success" %}
Sử dụng @ để gọi các giá trị input hoặc kết quả đầu ra của từng bước
{% endhint %}

### <mark style="color:blue;">Phần 1:</mark> <mark style="color:blue;"></mark><mark style="color:blue;">**Thiết Lập Input**</mark>

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

* Các dạng dữ liệu đầu vào phổ biến:
  * **Văn bản ngắn:** Tiêu đề bài viết, từ khóa.
  * **Đoạn văn:** Mô tả chi tiết.
  * **Lựa chọn giá trị:** Dropdown để chọn danh mục hoặc phong cách.
  * **Số:** Giá trị số (ví dụ: ngân sách, số lượng,…).
  * **Tập tin:** Cho phép tải lên file văn bản hoặc hình ảnh.
  * **Hình ảnh:** Upload ảnh để AI xử lý.

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

* Đây là thông tin mà người dùng cần nhập để kích hoạt Workflow.

***

### <mark style="color:blue;">Phần 2:</mark> <mark style="color:blue;"></mark><mark style="color:blue;">**Thiết Lập Hành Động**</mark>

Tại đây, bạn sẽ thêm các **hành động xử lý** bằng cách chọn các công cụ AI có sẵn.

<figure><img src="/files/49wXP2ujKUlz5ha0mtmh" alt=""><figcaption></figcaption></figure>

* Các hành động phổ biến gồm:
  * **AI Agent:** Tạo và xử lý nội dung, phân tích dữ liệu.
  * **Webhook:** Kết nối hệ thống bên ngoài.
  * **Web Scraper:** Thu thập dữ liệu từ website.
  * **AI Deep Search** *(Sắp ra mắt)***:** Tìm kiếm thông tin thông minh.
  * **Tích hợp Internet** *(Sắp ra mắt):* Truy xuất thông tin trực tuyến.
  * **Text To PDF/ Word** *(Sắp ra mắt)***:** Chuyển đổi văn bản thành tệp PDF/Word

***

### <mark style="color:blue;">Phần 3: Lưu & Thực Thi</mark>

* Chọn **"Lưu Workflow"** khi bạn đã cấu hình xong workflow làm việc.
* Chọn **"Thực thi"** để chạy workflow.

<figure><img src="/files/yJAGYsiNLU5juhjn13j6" 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://hotro.lovinbot.ai/wiki/tinh-nang-chinh/ai-workflow/cau-truc-ai-workflow.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.
