# Cấu trúc AI Workflow

## **Cấu trúc cơ bản của AI Workflow**

Đơ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="info" %}
Có thể sử dụng @ để gọi các giá trị input hoặc kết quả đầu ra của từng bước
{% endhint %}

### Phần 1: **Thiết Lập Input**

<figure><img src="/files/kMb6Re8ltZwsOGtUUM1P" 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:** 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/uC5gOflRjIENd015Kv9l" alt=""><figcaption></figcaption></figure>

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

***

### Phần 2: **Thiết Lập Hành Động**

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

* Các hành động phổ biến gồm:
  * **AI Agent:** Xử lý nội dung, tạo nội dung, phân tích dữ liệu.
  * **Webhook:** Kết nối hệ thống bên ngoài.
  * **AI Photo:** Tạo hình ảnh AI.
  * **AI Deep Search (Sắp ra mắt):** Tìm kiếm thông tin thông minh.
  * **Crawl Data (Sắp ra mắt):** Thu thập dữ liệu từ website.

***

### Phần 3: Lưu & Thực Thi


---

# 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/bothive-ho-tro-or-lovinbot/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.
